提交 bc5ebb74 编写于 作者: G gaoxi

xts用例覆盖

Signed-off-by: Ngaoxi <gaoxi785@huawei.com>
上级 c0507983
......@@ -24,13 +24,6 @@
"moduleName": "entry",
"moduleType": "entry"
},
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions": [
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
......
......@@ -56,6 +56,26 @@ describe('AccessibleAbilityList', function () {
done();
}
console.info(`AccessibleAbilityList: AbilityList_0210 result ${data.length}`);
for (let item of data) {
console.info(item.id);
expect(item.id != undefined).assertEqual(true);
console.info(item.name);
expect(item.name != undefined).assertEqual(true);
console.info(item.description);
expect(item.description != undefined).assertEqual(true);
console.info(item.abilityTypes);
expect(item.abilityTypes != undefined).assertEqual(true);
console.info(item.eventTypes);
expect(item.eventTypes != undefined).assertEqual(true);
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);
console.info(item.bundleName);
expect(item.bundleName != undefined).assertEqual(true);
}
expect(Array.isArray(data)).assertEqual(true);
done();
});
......
......@@ -24,13 +24,6 @@
"moduleName": "entry",
"moduleType": "entry"
},
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions": [
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
......
......@@ -38,6 +38,9 @@ describe('AccessibleCaptionConfiguration', function () {
it('CaptionConfiguration_0010', 0, async function (done) {
console.info('CaptionConfiguration_0010');
let captionManager = accessibility.getCaptionsManager();
let enabled = captionManager.enabled;
expect(enabled).assertEqual(false);
done();
let stateEventType = 'enableChange';
let ret = captionManager.on(stateEventType, (data) => {});
expect(ret).assertEqual(undefined);
......
......@@ -24,13 +24,6 @@
"moduleName": "entry",
"moduleType": "entry"
},
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions": [
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
......
......@@ -24,13 +24,6 @@
"moduleName": "entry",
"moduleType": "entry"
},
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions": [
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
......
......@@ -24,13 +24,6 @@
"moduleName": "entry",
"moduleType": "entry"
},
"defPermissions": [
{
"availableScope": [],
"grantMode": "system_grant",
"name": "ohos.permission.DISTRIBUTED_DATASYNC"
}
],
"reqPermissions": [
{
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册