diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets index 831f7d8e4665432ea5359169e2d23f3d245fd9e2..c803f9c3c354762d2eee4d2440ece56d15f91029 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets @@ -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); @@ -1390,7 +1410,7 @@ export default function getBundleInfoForSelf() { console.info("action" + JSON.stringify(extensionList[i].extensionAbilityType)); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.ACTION) count = count + 19; - break; + break; } console.info("count" + JSON.stringify(count)); } @@ -1593,4 +1613,4 @@ export default function getBundleInfoForSelf() { console.info("checkCommonAbilityInfo end"); } }) -} \ No newline at end of file +}