From b3d249584f80e2fddf41b7b8517ac056523f6d80 Mon Sep 17 00:00:00 2001 From: r00559040 Date: Wed, 2 Mar 2022 19:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DActsBmsModuleUsageRecordTestU?= =?UTF-8?q?N=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: r00559040 --- .../actsbmsmoduleusagerecordtest/entry/src/main/config.json | 4 ++++ .../src/main/js/test/ActsBmsModuleUsageRecordTest.test.js | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json index 9bf47be03..b7440a4b9 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json @@ -69,6 +69,10 @@ { "name":"ohos.permission.LISTEN_BUNDLE_CHANGE", "reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE" + }, + { + "name":"ohos.permission.MANAGE_MISSIONS", + "reason":"need use ohos.permission.MANAGE_MISSIONS" } ], "js": [ diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js index bc9fbe948..e8b16694c 100644 --- a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js @@ -608,9 +608,7 @@ describe('ActsBmsModuleUsageRecordTest', function () { expect(data[i].lastLaunchTime).assertLarger(0); console.debug('=============isRemoved==============' + JSON.stringify(data[i].isRemoved)); expect(data[i].isRemoved).assertEqual(false); - if (data[i].bundleName == 'com.ohos.launcher') { - expect(data[i].installationFreeSupported).assertTrue(); - } else { + if (data[i].bundleName == 'com.example.third1') { expect(data[i].installationFreeSupported).assertFalse(); } } -- GitLab