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

!8849 AuthenticationExtensionXTS添加

Merge pull request !8849 from liushuling/authenticationXTS
......@@ -485,9 +485,9 @@ export default function getBundleInfoForSelf() {
expect(data.appInfo).assertEqual(null);
expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0);
let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo
expect(extensionList.length).assertEqual(14);
expect(extensionList.length).assertEqual(15);
let count = 0;
for (let i = 0;i < 14; i++) {
for (let i = 0;i < 15; i++) {
switch (extensionList[i].name) {
case "Form":
console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType));
......@@ -585,10 +585,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
case 'appAccountAuthorization':
console.info("appAccountAuthorization" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.APP_ACCOUNT_AUTHORIZATION)
count = count + 15;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(105);
expect(count).assertEqual(120);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......@@ -617,7 +622,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].abilitiesInfo.length).assertEqual(0);
let extensionList = data.hapModulesInfo[0].extensionAbilitiesInfo
let count = 0;
for (let i = 0;i < 14; i++) {
for (let i = 0;i < 15; i++) {
switch (extensionList[i].name) {
case "Form":
console.info("Form" + JSON.stringify(extensionList[i].extensionAbilityType));
......@@ -715,10 +720,15 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER)
count = count + 14;
break;
case 'appAccountAuthorization':
console.info("appAccountAuthorization" + JSON.stringify(extensionList[i].extensionAbilityType));
expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.APP_ACCOUNT_AUTHORIZATION)
count = count + 15;
break;
}
console.info("count" + JSON.stringify(count));
}
expect(count).assertEqual(105);
expect(count).assertEqual(120);
expect(data.hapModulesInfo[0].metadata.length).assertEqual(0);
expect(data.reqPermissionDetails.length).assertEqual(0);
expect(data.permissionGrantStates.length).assertEqual(0);
......
......@@ -353,6 +353,17 @@
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "driver",
"visible": true
},
{
"description": "$string:form_description",
"descriptionId": 16777219,
"icon": "$media:icon",
"iconId": 16777225,
"label": "$string:entry_label",
"name": "appAccountAuthorization",
"srcEntrance": "./ets/FormAbility/FormAbility.ts",
"type": "appAccountAuthorization",
"visible": true
}
],
"requestPermissions": [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册