From 2bcaf74575771065a8ac43d8c65ca42f16eee8bb Mon Sep 17 00:00:00 2001 From: inter515 Date: Fri, 17 Mar 2023 14:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=B1=9E=E6=80=A7=E8=A6=86?= =?UTF-8?q?=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: inter515 --- .../bundlemanager/actsbundlemanageroverlaytest/Test.json | 2 +- .../entry/src/main/ets/test/GetOverlayModuleInfo.test.ets | 2 ++ .../entry/src/main/ets/test/GetBundleInfoForSelf.test.ets | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/Test.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/Test.json index 3519e2fe7..a527a0dac 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/Test.json +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/Test.json @@ -11,7 +11,7 @@ "kits": [ { "test-file-name": [ - "ActsBundleMgrStageEtsTest.hap", + "ActsBundleMgrOverlayEtsTest.hap", "bmsOverlayDemo.hap" ], "type": "AppInstallKit", diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/entry/src/main/ets/test/GetOverlayModuleInfo.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/entry/src/main/ets/test/GetOverlayModuleInfo.test.ets index 0cbd772d3..1cde2d2e5 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/entry/src/main/ets/test/GetOverlayModuleInfo.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageroverlaytest/entry/src/main/ets/test/GetOverlayModuleInfo.test.ets @@ -111,6 +111,8 @@ export default function getOverlayModuleInfo() { it('GetOverlayModuleInfoModuleNameIsOverlay', 0, async function (done) { await overlay.getOverlayModuleInfo(MODULE_NAME2).then(data => { Utils.info("GetOverlayModuleInfoModuleNameIsOverlay result" + JSON.stringify(data)); + let overlayModuleInfoTest: overlay.OverlayModuleInfo = data; + expect(typeof (overlayModuleInfoTest.bundleName)).assertEqual('string'); expect(data.bundleName).assertEqual("ohos.acts.bundle.overlay.test"); expect(data.moduleName).assertEqual("stage1"); expect(data.targetModuleName).assertEqual("entry1"); 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 63bb17078..958ad1e57 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 @@ -94,6 +94,7 @@ export default function getBundleInfoForSelf() { await bundle.getBundleInfoForSelf(bundle.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION).then(data => { console.info("getBundleInfoForSelfApplicationPro" + JSON.stringify(data.appInfo)); checkCommonBundleInfo(data); + expect(bundle.ExtensionAbilityType.PRINT).assertEqual(15); expect(data.appInfo.bundleType).assertEqual(bundle.BundleType.APP); expect(data.appInfo.name).assertEqual(BUNDLE_NAME); expect(data.appInfo.description).assertEqual("$string:description_application"); -- GitLab