提交 ee0ddc33 编写于 作者: W wangtiantian

fixed 6556e550 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: Nwangtiantian <wangtiantian19@huawei.com>
上级 785862e7
...@@ -281,7 +281,7 @@ export default function getBundleInfoForSelf() { ...@@ -281,7 +281,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].abilitiesInfo[0].icon).assertEqual("$media:icon"); 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].iconId).assertLarger(0);
expect(data.hapModulesInfo[0].abilitiesInfo[0].process).assertEqual(""); 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].type).assertEqual(1);
expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT); expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT);
expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON); expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON);
...@@ -311,7 +311,7 @@ export default function getBundleInfoForSelf() { ...@@ -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.maxWindowHeight).assertEqual(0);
expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.minWindowHeight).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].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[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].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility10");
expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED); expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED);
...@@ -387,7 +387,7 @@ export default function getBundleInfoForSelf() { ...@@ -387,7 +387,7 @@ export default function getBundleInfoForSelf() {
expect(data.hapModulesInfo[0].abilitiesInfo[0].icon).assertEqual("$media:icon"); 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].iconId).assertLarger(0);
expect(data.hapModulesInfo[0].abilitiesInfo[0].process).assertEqual(""); 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].type).assertEqual(1);
expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT); expect(data.hapModulesInfo[0].abilitiesInfo[0].orientation).assertEqual(bundle.DisplayOrientation.PORTRAIT);
expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON); expect(data.hapModulesInfo[0].abilitiesInfo[0].launchType).assertEqual(bundle.LaunchType.SINGLETON);
...@@ -417,7 +417,7 @@ export default function getBundleInfoForSelf() { ...@@ -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.maxWindowHeight).assertEqual(0);
expect(data.hapModulesInfo[0].abilitiesInfo[0].windowSize.minWindowHeight).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].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[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].name).assertEqual("ohos.acts.bundle.stage.test.MainAbility10");
expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED); expect(data.hapModulesInfo[0].abilitiesInfo[2].orientation).assertEqual(bundle.DisplayOrientation.LOCKED);
...@@ -493,7 +493,7 @@ export default function getBundleInfoForSelf() { ...@@ -493,7 +493,7 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].labelId).assertLarger(0);
expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0);
expect(extensionList[i].iconId).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].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM);
expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].permissions.length).assertEqual(0);
expect(extensionList[i].applicationInfo).assertEqual(null); expect(extensionList[i].applicationInfo).assertEqual(null);
...@@ -511,7 +511,7 @@ export default function getBundleInfoForSelf() { ...@@ -511,7 +511,7 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].labelId).assertLarger(0);
expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0);
expect(extensionList[i].iconId).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].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM);
expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].permissions.length).assertEqual(0);
expect(extensionList[i].applicationInfo).assertEqual(null); expect(extensionList[i].applicationInfo).assertEqual(null);
...@@ -618,7 +618,7 @@ export default function getBundleInfoForSelf() { ...@@ -618,7 +618,7 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].labelId).assertLarger(0);
expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0);
expect(extensionList[i].iconId).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].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM);
expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].permissions.length).assertEqual(0);
expect(extensionList[i].applicationInfo).assertEqual(null); expect(extensionList[i].applicationInfo).assertEqual(null);
...@@ -636,7 +636,7 @@ export default function getBundleInfoForSelf() { ...@@ -636,7 +636,7 @@ export default function getBundleInfoForSelf() {
expect(extensionList[i].labelId).assertLarger(0); expect(extensionList[i].labelId).assertLarger(0);
expect(extensionList[i].descriptionId).assertLarger(0); expect(extensionList[i].descriptionId).assertLarger(0);
expect(extensionList[i].iconId).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].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.FORM);
expect(extensionList[i].permissions.length).assertEqual(0); expect(extensionList[i].permissions.length).assertEqual(0);
expect(extensionList[i].applicationInfo).assertEqual(null); expect(extensionList[i].applicationInfo).assertEqual(null);
...@@ -1067,7 +1067,7 @@ export default function getBundleInfoForSelf() { ...@@ -1067,7 +1067,7 @@ export default function getBundleInfoForSelf() {
expect(data.icon).assertEqual("$media:icon"); expect(data.icon).assertEqual("$media:icon");
expect(data.iconId).assertLarger(0); expect(data.iconId).assertLarger(0);
expect(data.process).assertEqual(""); expect(data.process).assertEqual("");
expect(data.isVisible).assertTrue(); expect(data.exported).assertTrue();
expect(data.type).assertEqual(1); expect(data.type).assertEqual(1);
expect(data.permissions.length).assertEqual(0); expect(data.permissions.length).assertEqual(0);
expect(data.readPermission).assertEqual(""); expect(data.readPermission).assertEqual("");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册