未验证 提交 894175f0 编写于 作者: O openharmony_ci 提交者: Gitee

!7509 xts无障碍服务能力列表修改

Merge pull request !7509 from 姜欢欢/OpenHarmony-3.1-Release
...@@ -54,40 +54,33 @@ describe('AccessibleAbilityList', function () { ...@@ -54,40 +54,33 @@ describe('AccessibleAbilityList', function () {
console.error(`AccessibleAbilityList: AbilityList_0210 has error: ${err.code}`); console.error(`AccessibleAbilityList: AbilityList_0210 has error: ${err.code}`);
expect(null).assertFail(); expect(null).assertFail();
done(); done();
return;
} }
console.info(`AccessibleAbilityList: AbilityList_0210 result ${data.length}`); console.info(`AccessibleAbilityList: AbilityList_0210 result ${data.length}`);
for (let item of data) { for (let item of data) {
console.info(item.id); console.info(item.id);
expect(item.id != undefined).assertEqual(true); expect(item.id != undefined).assertEqual(true);
done();
console.info(item.name); console.info(item.name);
expect(item.name != undefined).assertEqual(true); expect(item.name != undefined).assertEqual(true);
done();
console.info(item.description); console.info(item.description);
expect(item.description != undefined).assertEqual(true); expect(item.description != undefined).assertEqual(true);
done();
console.info(item.abilityTypes); console.info(item.abilityTypes);
expect(item.abilityTypes != undefined).assertEqual(true); expect(item.abilityTypes != undefined).assertEqual(true);
done();
console.info(item.eventTypes); console.info(item.eventTypes);
expect(item.eventTypes != undefined).assertEqual(true); expect(item.eventTypes != undefined).assertEqual(true);
done();
console.info(item.capabilities); console.info(item.capabilities);
if (item.capabilities == retrieve || if (item.capabilities[0] == 'retrieve' ||
item.capabilities == touchGuide || item.capabilities[0] == 'touchGuide' ||
item.capabilities == keyEventObserver || item.capabilities[0] == 'keyEventObserver' ||
item.capabilities == zoom || item.capabilities[0] == 'zoom' ||
item.capabilities == gesture || item.capabilities[0] == 'gesture') {
item.capabilities == undefined) {
expect(true).assertTrue(); expect(true).assertTrue();
done();
}else{ }else{
expect(null).assertFail(); expect(null).assertFail();
done(); done();
} }
console.info(item.bundleName); console.info(item.bundleName);
expect(item.bundleName != undefined).assertEqual(true); expect(item.bundleName != undefined).assertEqual(true);
done();
} }
expect(Array.isArray(data)).assertEqual(true); expect(Array.isArray(data)).assertEqual(true);
done(); done();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册