* [unittest] fix buildpiecirclechart.
This commit is contained in:
@@ -84,10 +84,11 @@ class screenTest
|
||||
foreach($screenList as $screen)
|
||||
{
|
||||
$componentList_ = array();
|
||||
if(!in_array($screen->id, array(5, 6, 8)))
|
||||
if(!in_array($screen->id, array(3, 5, 6, 8)))
|
||||
{
|
||||
|
||||
if(!$bultion) $componentList_ = json_decode($screen->scheme);
|
||||
$scheme = json_decode($screen->scheme);
|
||||
$componentList_ = $scheme->componentList;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ $component->option = (object)array('dataset' => 0);
|
||||
|
||||
$component = $screen->buildPieCircleChart($component, $chart);
|
||||
|
||||
r($component->chartKey) && p('') && e('VCPieCircle'); // 测试组件类型
|
||||
r($component->chartKey) && p('') && e('VPieCircle'); // 测试组件类型
|
||||
r($component->option->dataset) && p('') && e('1'); // 测试dataset数据
|
||||
r(is_array($component->option->series)) && p('') && e('1'); // 测试series数据
|
||||
r($component->option->series[0]->type) && p('') && e('pie'); // 测试series数据
|
||||
|
||||
Reference in New Issue
Block a user