From ee0ddc332d3fdc41fb664234b2285598beef266f Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Fri, 10 Feb 2023 10:17:21 +0800 Subject: [PATCH] fixed 6556e55 from https://gitee.com/wang19954/xts_acts/pulls/7529 IssueNo:#I6E4O5 Description:modify bms api9 Sig:SIG_ApplicaitonFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- .../ets/test/GetBundleInfoForSelf.test.ets | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 ff85a999b..9e40c5b25 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 @@ -281,7 +281,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].abilitiesInfo[0].icon).assertEqual("$media:icon"); expect(data.hapModulesInfo[0].abilitiesInfo[0].iconId).assertLarger(0); expect(data.hapModulesInfo[0].abilitiesInfo[0].process).assertEqual(""); - expect(data.hapModulesInfo[0].abilitiesInfo[0].isVisible).assertTrue(); + expect(data.hapModulesInfo[0].abilitiesInfo[0].exported).assertTrue(); expect(data.hapModulesInfo[0].abilitiesInfo[0].type).assertEqual(1); expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT); expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON); @@ -311,7 +311,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.maxWindowHeight).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.minWindowHeight).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo[1].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility1"); - expect(data.hapModulesInfo[0].abilitiesInfo[1].launchType).assertEqual(bundle.LaunchType.STANDARD); + expect(data.hapModulesInfo[0].abilitiesInfo[1].launchType).assertEqual(bundle.LaunchType.MULTITON); expect(data.hapModulesInfo[0].abilitiesInfo[1].orientation).assertEqual(bundle.DisplayOrientation.LANDSCAPE); expect(data.hapModulesInfo[0].abilitiesInfo[2].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility10"); expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED); @@ -387,7 +387,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].abilitiesInfo[0].icon).assertEqual("$media:icon"); expect(data.hapModulesInfo[0].abilitiesInfo[0].iconId).assertLarger(0); expect(data.hapModulesInfo[0].abilitiesInfo[0].process).assertEqual(""); - expect(data.hapModulesInfo[0].abilitiesInfo[0].isVisible).assertTrue(); + expect(data.hapModulesInfo[0].abilitiesInfo[0].exported).assertTrue(); expect(data.hapModulesInfo[0].abilitiesInfo[0].type).assertEqual(1); expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT); expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON); @@ -417,7 +417,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.maxWindowHeight).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.minWindowHeight).assertEqual(0); expect(data.hapModulesInfo[0].abilitiesInfo[1].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility1"); - expect(data.hapModulesInfo[0].abilitiesInfo[1].launchType).assertEqual(bundle.LaunchType.STANDARD); + expect(data.hapModulesInfo[0].abilitiesInfo[1].launchType).assertEqual(bundle.LaunchType.MULTITON); expect(data.hapModulesInfo[0].abilitiesInfo[1].orientation).assertEqual(bundle.DisplayOrientation.LANDSCAPE); expect(data.hapModulesInfo[0].abilitiesInfo[2].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility10"); expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED); @@ -493,7 +493,7 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].iconId).assertLarger(0); - expect(extensionList[i].isVisible).assertTrue(); + expect(extensionList[i].exported).assertTrue(); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM); expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].applicationInfo).assertEqual(null); @@ -511,7 +511,7 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].iconId).assertLarger(0); - expect(extensionList[i].isVisible).assertTrue(); + expect(extensionList[i].exported).assertTrue(); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM); expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].applicationInfo).assertEqual(null); @@ -618,7 +618,7 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].iconId).assertLarger(0); - expect(extensionList[i].isVisible).assertTrue(); + expect(extensionList[i].exported).assertTrue(); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM); expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].applicationInfo).assertEqual(null); @@ -636,7 +636,7 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].iconId).assertLarger(0); - expect(extensionList[i].isVisible).assertTrue(); + expect(extensionList[i].exported).assertTrue(); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM); expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].applicationInfo).assertEqual(null); @@ -1067,7 +1067,7 @@ export default function getBundleInfoForSelf() { expect(data.icon).assertEqual("$media:icon"); expect(data.iconId).assertLarger(0); expect(data.process).assertEqual(""); - expect(data.isVisible).assertTrue(); + expect(data.exported).assertTrue(); expect(data.type).assertEqual(1); expect(data.permissions.length).assertEqual(0); expect(data.readPermission).assertEqual(""); -- GitLab