提交 d9b2f10e 编写于 作者: G gaoxi

add case

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 d0459cc3
......@@ -59,22 +59,27 @@ describe('AccessibleAbilityList', function () {
for (let item of data) {
console.info(item.id);
expect(item.id != undefined).assertEqual(true);
done();
console.info(item.name);
expect(item.name != undefined).assertEqual(true);
done();
console.info(item.description);
expect(item.description != undefined).assertEqual(true);
done();
console.info(item.abilityTypes);
expect(item.abilityTypes != undefined).assertEqual(true);
done();
console.info(item.eventTypes);
expect(item.eventTypes != undefined).assertEqual(true);
done();
console.info(item.capabilities);
expect(item.capabilities != undefined).assertEqual(true);
console.info(item.packageName);
expect(item.packageName != undefined).assertEqual(true);
console.info(item.filterBundleNames);
expect(item.filterBundleNames != undefined).assertEqual(true);
if (item.capabilities == retrieve || item.capabilities == touchGuide || item.capabilities == keyEventObserver || item.capabilities == zoom || item.capabilities == gesture) {
expect(true).assertTrue();
done();
}
console.info(item.bundleName);
expect(item.bundleName != undefined).assertEqual(true);
done();
}
expect(Array.isArray(data)).assertEqual(true);
done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册