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

!9774 Share和Action ExtensionXTS适配

Merge pull request !9774 from xinking129/master
......@@ -590,10 +590,20 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH)
count = count + 15;
break;
case 'share':
console.info("share" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.SHARE)
count = count + 16;
break;
case 'action':
console.info("action" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.ACTION)
count = count + 19;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(120);
expect(count).assertEqual(155);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -726,10 +736,20 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH)
count = count + 15;
break;
case 'share':
console.info("share" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.SHARE)
count = count + 16;
break;
case 'action':
console.info("action" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.ACTION)
count = count + 19;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(120);
expect(count).assertEqual(155);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -1381,10 +1401,20 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH)
count = count + 15;
break;
case 'share':
console.info("share" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.SHARE)
count = count + 16;
break;
case 'action':
console.info("action" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.ACTION)
count = count + 19;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(120);
expect(count).assertEqual(155);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -1583,4 +1613,4 @@ export default function getBundleInfoForSelf() {
console.info("checkCommonAbilityInfo end");
}
})
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册