* [unittest] modify unit test of devModel::getTree.
This commit is contained in:
@@ -11,10 +11,17 @@ title=测试 devModel::getTree();
|
||||
cid=1
|
||||
pid=1
|
||||
|
||||
测试传入空值的情况 >> 0
|
||||
测试传入错误类型的情况 >> 0
|
||||
测试获取type=module模块树,并检查高亮情况 >> my,1
|
||||
测试获取type=table模块树,并检查高亮情况 >> my,1
|
||||
- 测试传入空值的情况 @0
|
||||
- 测试传入错误类型的情况 @0
|
||||
- 测试获取type=module,active空
|
||||
- 第0条的key属性 @my
|
||||
- 第0条的active属性 @0
|
||||
- 测试获取type=module模块树,并检查高亮情况
|
||||
- 第0条的key属性 @my
|
||||
- 第0条的active属性 @1
|
||||
- 测试获取type=table模块树,并检查高亮情况
|
||||
- 第0条的key属性 @my
|
||||
- 第0条的active属性 @1
|
||||
|
||||
*/
|
||||
|
||||
@@ -27,5 +34,6 @@ $activeList = array('', 'index', 'zt_todo');
|
||||
$typeList = array('', 'tree', 'module', 'table');
|
||||
r($devModel->getTree($activeList[0], $typeList[0])) && p() && e('0'); // 测试传入空值的情况
|
||||
r($devModel->getTree($activeList[0], $typeList[1])) && p() && e('0'); // 测试传入错误类型的情况
|
||||
r($devModel->getTree($activeList[0], $typeList[2])) && p('0:key,active') && e('my,0'); // 测试获取type=module,active空
|
||||
r($devModel->getTree($activeList[1], $typeList[2])) && p('0:key,active') && e('my,1'); // 测试获取type=module模块树,并检查高亮情况
|
||||
r($devModel->getTree($activeList[2], $typeList[3])) && p('0:key,active') && e('my,1'); // 测试获取type=table模块树,并检查高亮情况
|
||||
|
||||
Reference in New Issue
Block a user