diff --git a/appexecfwk/BUILD.gn b/appexecfwk/bundle_standard/BUILD.gn
old mode 100755
new mode 100644
similarity index 90%
rename from appexecfwk/BUILD.gn
rename to appexecfwk/bundle_standard/BUILD.gn
index d539267c7edac2fa9014c721f64f5421cf3bb2c3..fae770a4294fe40b80429f53bcec350214cd4108
--- a/appexecfwk/BUILD.gn
+++ b/appexecfwk/bundle_standard/BUILD.gn
@@ -10,13 +10,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+
import("//build/ohos_var.gni")
-group("appexecfwk") {
+group("bundle_standard") {
testonly = true
if (is_standard_system) {
- } else {
deps = [
+ "bundlemanager:ActsBundleManagerTest",
]
}
}
diff --git a/appexecfwk/bundle_standard/bmsJstest1/BUILD.gn b/appexecfwk/bundle_standard/bmsJstest1/BUILD.gn
deleted file mode 100644
index 6f77ff6bf305cee2987f0435620728694d217a82..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest1/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import("//build/config/ohos/rules.gni")
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("hjs_demo_test1") {
- test_hap_name = "bmsJstest1.hap"
- hap_source_path = "hap/bmsJstest1.hap"
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest1/Test.json b/appexecfwk/bundle_standard/bmsJstest1/Test.json
deleted file mode 100644
index a66d99d7f1053847908cb526b7abf7424804e960..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest1/Test.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "description": "Configuration for hjunit demo Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
- "shell-timeout": "21600000"
- },
- "kits": [
- {
- "test-file-name": [
- "AbilityDemo.hap",
- "$module.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- }
- ]
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.js
deleted file mode 100644
index 5790b249d899277488f4267b0a37c150605137ad..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import file from '@system.file'
-import app from '@system.app'
-import device from '@system.device'
-import router from '@system.router'
-import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- },
- onShow() {
- console.info('onShow finish')
- const core = Core.getInstance()
- const expectExtend = new ExpectExtend({
- 'id': 'extend'
- })
- const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
- core.addService('expect', expectExtend)
- core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
- core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
- const configService = core.getDefaultService('config')
- configService.setConfig(this)
-
- require('../../../test/List.test')
- core.execute()
- },
- onReady() {
- },
-}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index 14fab5d06960191d8decbd7fa2727a2eddaba481..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,909 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
- it('getApplicationInfos_0100', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0600', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
-
- it('getApplicationInfo_0100', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
-
- it('getApplicationInfo_0600', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
-
- it('getBundleInfos_0100', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
-
- it('getBundleInfos_0600', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
-
- it('getApplicationInfo_0400', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suitee', 8, 1);
- checkgetApplicationInfoe(datainfo)
- done();
- })
-
- function checkgetApplicationInfoe(datainfo) {
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- }
-
- it('getApplicationInfo_0500', 0, async function (done) {
- await demo.getApplicationInfo('', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- }
-
- done();
- })
-
- it('getApplicationInfo_0900', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suitee', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
- it('getApplicationInfo_1000', 0, async function (done) {
- await demo.getApplicationInfo('', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
- it('getBundleInfo_0100', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite',1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for(var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0400', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.myapplic',1);
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
-
- done();
- })
- it('getBundleInfo_0500', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo();
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
- done();
- })
- it('getBundleInfo_0600', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.myapplicationInstall',1,OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
-// console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for(var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
- done()
- })
- it('getBundleInfo_0900', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.myapplical',1,OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
- }
- done()
- })
- it('getBundleInfo_1000', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleInfo(OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
- }
- done()
- })
- it('getBundleArchiveInfo_0100', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc.hap',1)
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0400', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/test.', 1,OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
- }
- done()
- })
- it('getBundleArchiveInfo_0500', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo(OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.installTime).assertEqual(0)
- expect(datainfo.updateTime).assertEqual(0)
- expect(datainfo.compatibleVersion).assertEqual(0)
- expect(datainfo.targetVersion).assertEqual(0)
- done()
- }
- })
- it('queryAbilityByWant_0100', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want:{
- action: "action.system.home",
- entities:["entity.system.home"],
- elementName: {
- deviceId : "0",
- bundleName : "com.example.myapplicationInstall",
- abilityName : "com.example.myapplication.MainAbility",
- },}},{
- params:{
- flags: 8 ,
- userId:"0" ,
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0400', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want:{
- action: "action.system.home",
- entities:["entity.system.home"],
- elementName: {
- deviceId : "0",
- bundleName : "com.example.myapplicationInstall",
- abilityName : "",
- },}},{
- params:{
- flags: 8 ,
- userId:"0" ,
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.label.length).assertEqual(0)
- expect(datainfo.description.length).assertEqual(0)
- expect(datainfo.iconPath.length).assertEqual(0)
- expect(datainfo.visible.length).assertEqual(0)
- expect(datainfo.kind.length).assertEqual(0)
- expect(datainfo.package.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- expect(datainfo.moduleName.length).assertEqual(0)
- expect(datainfo.applicationName.length).assertEqual(0)
- expect(datainfo.resourcePath.length).assertEqual(0)
- expect(datainfo.deviceTypes.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertEqual(0)
- }
- expect(datainfo.deviceCapabilities.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertEqual(0)
- }
- expect(datainfo.applicationInfo.name.length).assertEqual(0)
- expect(datainfo.applicationInfo.bundleName.length).assertEqual(0)
- done();
- })
- it('queryAbilityByWant_0500', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want:{
- action: "action.system.home",
- entities:["entity.system.home"],
- elementName: {
- deviceId : "0",
- bundleName : "",
- abilityName : "",
- },}},{
- params:{
- flags: 8 ,
- userId:"0" ,
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.label.length).assertEqual(0)
- expect(datainfo.description.length).assertEqual(0)
- expect(datainfo.iconPath.length).assertEqual(0)
- expect(datainfo.visible.length).assertEqual(0)
- expect(datainfo.kind.length).assertEqual(0)
- expect(datainfo.package.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- expect(datainfo.moduleName.length).assertEqual(0)
- expect(datainfo.applicationName.length).assertEqual(0)
- expect(datainfo.resourcePath.length).assertEqual(0)
- expect(datainfo.deviceTypes.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertEqual(0)
- }
- expect(datainfo.deviceCapabilities.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertEqual(0)
- }
- expect(datainfo.applicationInfo.name.length).assertEqual(0)
- expect(datainfo.applicationInfo.bundleName.length).assertEqual(0)
- done();
- })
-
-
- it('queryAbilityByWant_0600', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- },OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('queryAbilityByWant_0600', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- },OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('queryAbilityByWant_0900', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall",
- abilityName: "",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- },OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.label.length).assertEqual(0)
- expect(datainfo.description.length).assertEqual(0)
- expect(datainfo.iconPath.length).assertEqual(0)
- expect(datainfo.visible.length).assertEqual(0)
- expect(datainfo.kind.length).assertEqual(0)
- expect(datainfo.package.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- expect(datainfo.moduleName.length).assertEqual(0)
- expect(datainfo.applicationName.length).assertEqual(0)
- expect(datainfo.resourcePath.length).assertEqual(0)
- expect(datainfo.deviceTypes.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertEqual(0)
- }
- expect(datainfo.deviceCapabilities.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertEqual(0)
- }
- expect(datainfo.applicationInfo.name.length).assertEqual(0)
- expect(datainfo.applicationInfo.bundleName.length).assertEqual(0)
- done();
- }
- })
- it('queryAbilityByWant_0900', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "",
- abilityName: "",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- },OnReceiveEvent)
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertEqual(0)
- expect(datainfo.label.length).assertEqual(0)
- expect(datainfo.description.length).assertEqual(0)
- expect(datainfo.iconPath.length).assertEqual(0)
- expect(datainfo.visible.length).assertEqual(0)
- expect(datainfo.kind.length).assertEqual(0)
- expect(datainfo.package.length).assertEqual(0)
- expect(datainfo.bundleName.length).assertEqual(0)
- expect(datainfo.moduleName.length).assertEqual(0)
- expect(datainfo.applicationName.length).assertEqual(0)
- expect(datainfo.resourcePath.length).assertEqual(0)
- expect(datainfo.deviceTypes.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertEqual(0)
- }
- expect(datainfo.deviceCapabilities.length).assertEqual(0)
- for(var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertEqual(0)
- }
- expect(datainfo.applicationInfo.name.length).assertEqual(0)
- expect(datainfo.applicationInfo.bundleName.length).assertEqual(0)
- done();
- }
- })
- it('getPermissionDef_0100', 0, async function (done) {
- demo.getPermissionDef('com.permission.CAMERA').then((infos) => {
- expect(typeof infos).assertEqual("object");
- expect(infos.name.length).assertLarger(0);
- expect(infos.descriptionId.length).assertLarger(0);
- expect(infos.grantMode.length).assertLarger(0);
- expect(infos.availableScope.length).assertLarger(0);
- });
- done();
- })
- it('getPermissionDef_0400', 0, async function (done) {
- demo.getPermissionDef('').then((infos) => {
- expect(typeof infos).assertEqual("object");
- expect(infos.name.length).assertLarger(0);
- expect(infos.descriptionId.length).assertEqual(0);
- expect(infos.grantMode.length).assertEqual(0);
- expect(infos.availableScope.length).assertEqual(0);
- });
- done();
- })
- it('getPermissionDef_0500', 0, async function (done) {
- demo.getPermissionDef('error').then((infos) => {
- expect(typeof infos).assertEqual("object");
- expect(infos.name.length).assertLarger(0);
- expect(infos.descriptionId.length).assertEqual(0);
- expect(infos.grantMode.length).assertEqual(0);
- expect(infos.availableScope.length).assertEqual(0);
- });
- done();
-
- })
- it('getPermissionDef_0600', 0, async function (done) {
- demo.getPermissionDef('com.permission.CAMERA', OnReceiveEvent);
- function OnReceiveEvent(data) {
- expect(typeof infos).assertEqual("object");
- expect(data.name.length).assertLarger(0);
- expect(data.descriptionId.length).assertEqual(0);
- expect(data.grantMode.length).assertLarger(0);
- expect(data.availableScope.length).assertLarger(0);
- }
-
- done();
- })
- it('getPermissionDef_0900', 0, async function (done) {
- demo.getPermissionDef('', OnReceiveEvent);
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.name.length).assertEqual(0);
- expect(data.bundleName.length).assertEqual(0);
- expect(data.descriptionId.length).assertEqual(0);
- expect(data.grantMode.length).assertEqual(0);
- expect(data.availableScope.length).assertEqual(0);
- }
-
- done();
- })
- it('getPermissionDef_1000', 0, async function (done) {
- demo.getPermissionDef('error', OnReceiveEvent);
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.name.length).assertEqual(0);
- expect(data.bundleName.length).assertEqual(0);
- expect(data.descriptionId.length).assertEqual(0);
- expect(data.grantMode.length).assertEqual(0);
- expect(data.availableScope.length).assertEqual(0);
- }
-
- done();
- })
- it('install_0100', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc1.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('install_0400', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['ERROR'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("STATUS_INSTALL_FAILURE_INVALID");
- }
- });
- done();
- })
- it('install_0500', 0, async function (done) {
- console.info("neu========================getBundleManager: for begin");
- demo.getBundleInstaller().then((data) => {
- data.install([''], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("STATUS_INSTALL_FAILURE_INVALID");
- }
- });
- done();
- })
- it('uninstall_0100', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication1', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0400', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("STATUS_UNINSTALL_FAILURE_ABORTED");
- }
- });
- done();
- })
- it('uninstall_0500', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("STATUS_UNINSTALL_FAILURE_ABORTED");
- }
- });
- done();
- })
-
-
-
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest2/BUILD.gn b/appexecfwk/bundle_standard/bmsJstest2/BUILD.gn
deleted file mode 100644
index 0b6571eaf5f3eb7302943c0366f7295d2c68c9c0..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest2/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import("//build/config/ohos/rules.gni")
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("hjs_demo_test2") {
- test_hap_name = "bmsJstest2.hap"
- hap_source_path = "hap/bmsJstest2.hap"
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest2/Test.json b/appexecfwk/bundle_standard/bmsJstest2/Test.json
deleted file mode 100644
index a66d99d7f1053847908cb526b7abf7424804e960..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest2/Test.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "description": "Configuration for hjunit demo Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
- "shell-timeout": "21600000"
- },
- "kits": [
- {
- "test-file-name": [
- "AbilityDemo.hap",
- "$module.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- }
- ]
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index f4c3d2a47bfed9f7b457e39db30a941481ba0299..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,637 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
-
-
- it('getApplicationInfos_0200', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0400', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
-
- it('getApplicationInfos_0700', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfos_0900', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
- it('getApplicationInfo_0200', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- it('getApplicationInfo_0700', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
- it('getBundleInfos_0200', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- })
- it('getBundleInfos_0400', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
- it('getBundleInfos_0700', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfos_0700', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
- it('getBundleInfos_0900', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
- it('getBundleInfo_0200', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite', 1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0700', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.napi_test_suite', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
-
- done()
- })
- it('getBundleArchiveInfo_0200', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc2.hap', 1)
-
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0700', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/abc2.hap', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- done()
- }
- })
-
- it('queryAbilityByWant_0100', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0700', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- }, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('getPermissionDef_0200', 0, async function (done) {
- demo.getPermissionDef('com.permission.music').then((infos) => {
- expect(typeof infos).assertEqual("object");
- expect(infos.name.length).assertLarger(0);
- expect(infos.descriptionId.length).assertLarger(0);
- expect(infos.grantMode.length).assertLarger(0);
- expect(infos.availableScope.length).assertLarger(0);
- });
- done();
- })
- it('getPermissionDef_0700', 0, async function (done) {
- demo.getPermissionDef('com.permission.CAMERA', OnReceiveEvent);
- demo.getPermissionDef('com.permission.music', OnReceiveEvent);
-
- function OnReceiveEvent(data) {
- expect(data.name.length).assertLarger(0);
- expect(data.descriptionId.length).assertEqual(0);
- expect(data.grantMode.length).assertLarger(0);
- expect(data.availableScope.length).assertLarger(0);
- }
-
- done();
- })
- it('install_0200', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc2.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc3.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(infos) {
- expect(typeof infos).assertEqual("object");
- expect(infos.status).assertEqual(0);
- expect(infos.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0200', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication2', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- // data.uninstall('com.example.myapplication2', {
- // param: {
- // userId: 0,
- // isKeepData: false
- // }
- // }, OnReceiveinstallEvent);
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest3/BUILD.gn b/appexecfwk/bundle_standard/bmsJstest3/BUILD.gn
deleted file mode 100644
index 0b901de86f4d35a2ee35f8fa78b70c4ae0500efb..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest3/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import("//build/config/ohos/rules.gni")
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("hjs_demo_test3") {
- test_hap_name = "bmsJstest3.hap"
- hap_source_path = "hap/bmsJstest3.hap"
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest3/Test.json b/appexecfwk/bundle_standard/bmsJstest3/Test.json
deleted file mode 100644
index a66d99d7f1053847908cb526b7abf7424804e960..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest3/Test.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "description": "Configuration for hjunit demo Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
- "shell-timeout": "21600000"
- },
- "kits": [
- {
- "test-file-name": [
- "AbilityDemo.hap",
- "$module.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- }
- ]
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index 24e6fc796ee07c8adc18211867087dbe654d1f5a..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,609 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
-
-
- it('getApplicationInfos_0200', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0400', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
-
- it('getApplicationInfos_0700', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfos_0900', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
-
- it('getApplicationInfo_0200', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
-
- it('getApplicationInfo_0700', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
-
- it('getBundleInfos_0200', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
- it('getBundleInfos_0400', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
-
- it('getBundleInfos_0700', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfos_0900', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
- it('getBundleInfo_0200', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite', 1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0700', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.napi_test_suite', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
-
- done()
- })
- it('getBundleArchiveInfo_0200', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc2.hap', 1)
-
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0700', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/abc2.hap', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- done()
- }
- })
-
- it('queryAbilityByWant_0100', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0700', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- }, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('getPermissionDef_0200', 0, async function (done) {
- demo.getPermissionDef('com.permission.music').then((infos) => {
- expect(typeof infos).assertEqual("object");
- expect(infos.name.length).assertLarger(0);
- expect(infos.descriptionId.length).assertLarger(0);
- expect(infos.grantMode.length).assertLarger(0);
- expect(infos.availableScope.length).assertLarger(0);
- });
- done();
- })
- it('getPermissionDef_0700', 0, async function (done) {
- demo.getPermissionDef('com.permission.CAMERA', OnReceiveEvent);
- demo.getPermissionDef('com.permission.music', OnReceiveEvent);
-
- function OnReceiveEvent(data) {
- expect(data.name.length).assertLarger(0);
- expect(data.descriptionId.length).assertEqual(0);
- expect(data.grantMode.length).assertLarger(0);
- expect(data.availableScope.length).assertLarger(0);
- }
-
- done();
- })
- it('install_0200', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc2.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc3.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(infos) {
- expect(typeof infos).assertEqual("object");
- expect(infos.status).assertEqual(0);
- expect(infos.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0200', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication2', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- // data.uninstall('com.example.myapplication2', {
- // param: {
- // userId: 0,
- // isKeepData: false
- // }
- // }, OnReceiveinstallEvent);
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
-
-
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest3/hap/bmsJstest3.hap b/appexecfwk/bundle_standard/bmsJstest3/hap/bmsJstest3.hap
deleted file mode 100644
index 018943e1efa38ac7fd6115cb7475fa48c6c95524..0000000000000000000000000000000000000000
Binary files a/appexecfwk/bundle_standard/bmsJstest3/hap/bmsJstest3.hap and /dev/null differ
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/app.js
deleted file mode 100644
index 394207eb5460c4907b53b15a6d4f1a1a535916cc..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.css
deleted file mode 100644
index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.hml
deleted file mode 100644
index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index 11a790b4ae20a5f0ab8d07921124f02c10f29529..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,597 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
-
-
- it('getApplicationInfos_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0500', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
-
- it('getApplicationInfos_0800', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfos_1000', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfo_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
-
- it('getApplicationInfo_0800', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
-
- it('getBundleInfos_0300', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
- it('getBundleInfos_0500', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
-
- it('getBundleInfos_0800', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfos_1000', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
- it('getBundleInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite', 1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.napi_test_suite', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
-
- done()
- })
- it('getBundleArchiveInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc2.hap', 1)
-
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0800', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/abc2.hap', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- done()
- }
- })
-
- it('queryAbilityByWant_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- }, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('install_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc4.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc5.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc6.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(infos) {
- expect(typeof infos).assertEqual("object");
- expect(infos.status).assertEqual(0);
- expect(infos.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication4', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- // data.uninstall('com.example.myapplication4', {
- // param: {
- // userId: 0,
- // isKeepData: false
- // }
- // }, OnReceiveinstallEvent);
- data.uninstall('com.example.myapplication5', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
-
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/List.test.js
deleted file mode 100644
index 305eb5bb254cd4802afaffebe68fca2f9436159f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/test/List.test.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./ExampleJsunit.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest5/BUILD.gn b/appexecfwk/bundle_standard/bmsJstest5/BUILD.gn
deleted file mode 100644
index 298668db91f187ac3125c0cf29307b0841286088..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import("//build/config/ohos/rules.gni")
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("hjs_demo_test5") {
- test_hap_name = "bmsJstest5.hap"
- hap_source_path = "hap/bmsJstest5.hap"
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest5/Test.json b/appexecfwk/bundle_standard/bmsJstest5/Test.json
deleted file mode 100644
index a66d99d7f1053847908cb526b7abf7424804e960..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/Test.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "description": "Configuration for hjunit demo Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
- "shell-timeout": "21600000"
- },
- "kits": [
- {
- "test-file-name": [
- "AbilityDemo.hap",
- "$module.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- }
- ]
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/package.json b/appexecfwk/bundle_standard/bmsJstest5/entry/package.json
deleted file mode 100644
index 69a88e3b65423624fe7ea8b0f8beefcc62cc3d5f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/package.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/config.json b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/config.json
deleted file mode 100644
index 2aaf77cc49bf11395079b80b47beb9a3d40aac3f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/config.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "app": {
- "bundleName": "com.example.napi_test_suite",
- "vendor": "example",
- "version": {
- "code": 1,
- "name": "1.0"
- },
- "apiVersion": {
- "compatible": 5,
- "target": 5,
- "releaseType": "Beta1"
- }
- },
- "deviceConfig": {},
- "module": {
-
-
- "package": "com.example.napi_test_suite",
- "name": ".MyApplication2",
- "deviceType": [
- "phone"
- ],
- "distro": {
- "deliveryWithInstall": true,
- "moduleName": "entry",
- "moduleType": "entry"
- },
- "abilities": [
- {
- "skills": [
- {
- "entities": [
- "entity.system.home"
- ],
- "actions": [
- "action.system.home"
- ]
- }
- ],
- "name": "com.example.napi_test_suite.MainAbility",
- "icon": "$media:icon",
- "description": "$string:mainability_description",
- "label": "$string:app_name",
- "type": "page",
- "launchType": "standard"
- }
- ],
- "defPermissions": [
- {
- "name": "com.permission.CAMERA",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "CAMERA permission",
- "description": "CAMERA permission in detail"
- },
- {
- "name": "com.permission.music",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "music permission",
- "description": "music permission in detail"
- },
- {
- "name": "com.permission.WeChat",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "WeChat permission",
- "description": "WeChat permission in detail"
- }
- ],
- "js": [
- {
- "pages": [
- "pages/index/index"
- ],
- "name": "default",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": false
- }
- }
- ]
- }
-}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/app.js
deleted file mode 100644
index 394207eb5460c4907b53b15a6d4f1a1a535916cc..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.css
deleted file mode 100644
index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.hml
deleted file mode 100644
index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.js
deleted file mode 100644
index 5790b249d899277488f4267b0a37c150605137ad..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/pages/index/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import file from '@system.file'
-import app from '@system.app'
-import device from '@system.device'
-import router from '@system.router'
-import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- },
- onShow() {
- console.info('onShow finish')
- const core = Core.getInstance()
- const expectExtend = new ExpectExtend({
- 'id': 'extend'
- })
- const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
- core.addService('expect', expectExtend)
- core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
- core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
- const configService = core.getDefaultService('config')
- configService.setConfig(this)
-
- require('../../../test/List.test')
- core.execute()
- },
- onReady() {
- },
-}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index 93a01c35a316d82427d5b47ba2411419518c024f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,598 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
-
-
- it('getApplicationInfos_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0500', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
-
- it('getApplicationInfos_0800', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfos_1000', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfo_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
-
- it('getApplicationInfo_0800', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
-
- it('getBundleInfos_0300', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
- it('getBundleInfos_0500', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
-
- it('getBundleInfos_0800', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfos_1000', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite', 1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.napi_test_suite', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
-
- done()
- })
- it('getBundleArchiveInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc2.hap', 1)
-
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0800', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/abc2.hap', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- done()
- }
- })
-
- it('queryAbilityByWant_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- }, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('install_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc4.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc5.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc6.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(infos) {
- expect(typeof infos).assertEqual("object");
- expect(infos.status).assertEqual(0);
- expect(infos.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication4', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- // data.uninstall('com.example.myapplication4', {
- // param: {
- // userId: 0,
- // isKeepData: false
- // }
- // }, OnReceiveinstallEvent);
- data.uninstall('com.example.myapplication5', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
-
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/List.test.js
deleted file mode 100644
index 305eb5bb254cd4802afaffebe68fca2f9436159f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/test/List.test.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./ExampleJsunit.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest5/hap/bmsJstest5.hap b/appexecfwk/bundle_standard/bmsJstest5/hap/bmsJstest5.hap
deleted file mode 100644
index 74fd65de7eb3506cd55a1b40e24bcd4f6197802f..0000000000000000000000000000000000000000
Binary files a/appexecfwk/bundle_standard/bmsJstest5/hap/bmsJstest5.hap and /dev/null differ
diff --git a/appexecfwk/bundle_standard/bmsJstest6/BUILD.gn b/appexecfwk/bundle_standard/bmsJstest6/BUILD.gn
deleted file mode 100644
index 35f1ae7f456b1bd49defbde4da12c81e495bee3b..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright (C) 2021 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-import("//build/config/ohos/rules.gni")
-import("//test/xts/tools/build/suite.gni")
-
-ohos_js_hap_suite("hjs_demo_test6") {
- test_hap_name = "bmsJstest6.hap"
- hap_source_path = "hap/bmsJstest6.hap"
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest6/Test.json b/appexecfwk/bundle_standard/bmsJstest6/Test.json
deleted file mode 100644
index a66d99d7f1053847908cb526b7abf7424804e960..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/Test.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "description": "Configuration for hjunit demo Tests",
- "driver": {
- "type": "JSUnitTest",
- "test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
- "shell-timeout": "21600000"
- },
- "kits": [
- {
- "test-file-name": [
- "AbilityDemo.hap",
- "$module.hap"
- ],
- "type": "AppInstallKit",
- "cleanup-apps": true
- }
- ]
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/package.json b/appexecfwk/bundle_standard/bmsJstest6/entry/package.json
deleted file mode 100644
index 69a88e3b65423624fe7ea8b0f8beefcc62cc3d5f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/package.json
+++ /dev/null
@@ -1 +0,0 @@
-{}
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/app.js
deleted file mode 100644
index 394207eb5460c4907b53b15a6d4f1a1a535916cc..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/app.js
+++ /dev/null
@@ -1,8 +0,0 @@
-export default {
- onCreate() {
- console.info('AceApplication onCreate');
- },
- onDestroy() {
- console.info('AceApplication onDestroy');
- }
-};
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.css
deleted file mode 100644
index 6fda792753f2e15f22b529c7b90a82185b2770bf..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.css
+++ /dev/null
@@ -1,9 +0,0 @@
-.container {
- flex-direction: column;
- justify-content: center;
- align-items: center;
-}
-
-.title {
- font-size: 100px;
-}
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.hml
deleted file mode 100644
index f64b040a5ae394dbaa5e185e1ecd4f4556b92184..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.hml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- {{ $t('strings.hello') }} {{ title }}
-
-
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.js
deleted file mode 100644
index 5790b249d899277488f4267b0a37c150605137ad..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/pages/index/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-import file from '@system.file'
-import app from '@system.app'
-import device from '@system.device'
-import router from '@system.router'
-import {Core, ExpectExtend, ReportExtend} from 'deccjsunit/index'
-
-export default {
- data: {
- title: ""
- },
- onInit() {
- this.title = this.$t('strings.world');
- },
- onShow() {
- console.info('onShow finish')
- const core = Core.getInstance()
- const expectExtend = new ExpectExtend({
- 'id': 'extend'
- })
- const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
- core.addService('expect', expectExtend)
- core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
- core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
- const configService = core.getDefaultService('config')
- configService.setConfig(this)
-
- require('../../../test/List.test')
- core.execute()
- },
- onReady() {
- },
-}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/ExampleJsunit.test.js
deleted file mode 100644
index 8fbfc2dc69a5440a06ee18c933a3c52b1a301758..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/ExampleJsunit.test.js
+++ /dev/null
@@ -1,598 +0,0 @@
-import app from '@system.app'
-import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
-import demo from '@ohos.bundle_mgr'
-
-describe('appInfoTest', function () {
-
-
- it('getApplicationInfos_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- it('getApplicationInfos_0500', 0, async function (done) {
- var datainfo = await demo.getApplicationInfos(8, 0);
- checkgetApplicationInfos(datainfo)
- done();
- })
-
- function checkgetApplicationInfos(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
-
- it('getApplicationInfos_0800', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfos_1000', 0, async function (done) {
- await demo.getApplicationInfos(8, 0, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.length).assertLarger(0)
- for (var i = 0; i < datainfo.length; i++) {
- expect(datainfo[i].name.length).assertLarger(0)
- expect(datainfo[i].bundleName.length).assertLarger(0)
- expect(datainfo[i].supportedModes).assertEqual(0)
- expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleSourceDirs.length; j++) {
- expect(datainfo[i].moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo[i].moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo[i].moduleInfos.length; j++) {
- expect(datainfo[i].moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo[i].moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo[i].entryDir.length).assertLarger(0)
- expect(datainfo[i].codePath.length).assertLarger(0)
- expect(datainfo[i].dataDir.length).assertLarger(0)
- expect(datainfo[i].dataBaseDir.length).assertLarger(0)
- expect(datainfo[i].cacheDir.length).assertLarger(0)
- }
- }
-
- done();
- })
-
- it('getApplicationInfo_0300', 0, async function (done) {
- var datainfo = await demo.getApplicationInfo('com.example.napi_test_suite', 8, 1);
- checkgetApplicationInfo(datainfo)
- done();
- })
-
- function checkgetApplicationInfo(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
-
- it('getApplicationInfo_0800', 0, async function (done) {
- await demo.getApplicationInfo('com.example.napi_test_suite3', 8, 1, OnReceiveEvent);
-
- function OnReceiveEvent(datainfo) {
- expect(typeof datainfo).assertEqual("object")
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.supportedModes).assertEqual(0)
- expect(datainfo.moduleSourceDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleSourceDirs.length; j++) {
- expect(datainfo.moduleSourceDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleInfos.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleInfos.length; j++) {
- expect(datainfo.moduleInfos[j].moduleName.length).assertLarger(0)
- expect(datainfo.moduleInfos[j].moduleSourceDir.length).assertLarger(0)
- }
- expect(datainfo.entryDir.length).assertLarger(0)
- expect(datainfo.codePath.length).assertLarger(0)
- expect(datainfo.dataDir.length).assertLarger(0)
- expect(datainfo.dataBaseDir.length).assertLarger(0)
- expect(datainfo.cacheDir.length).assertLarger(0)
- }
-
- done();
- })
-
-
- it('getBundleInfos_0300', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
- it('getBundleInfos_0500', 0, async function () {
- var data = await demo.getBundleInfos(8)
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
-
-
- })
-
-
- it('getBundleInfos_0800', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
-
- it('getBundleInfos_1000', 0, async function () {
- await demo.getBundleInfos(8, OnReceiveEvent)
-
- function OnReceiveEvent(data) {
- expect(typeof data).assertEqual("object")
- expect(data.length).assertLarger(0)
- for (var i = 0; i < data.length; i++) {
- expect(data[i].name.length).assertLarger(0)
- expect(data[i].applicationInfo.name.length).assertLarger(0)
- expect(data[i].applicationInfo.bundleName.length).assertLarger(0)
-
- expect(data[i].hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].hapModuleNames.length; j++) {
- expect(data[i].hapModuleNames[j].length).assertLarger(0)
- }
- expect(data[i].moduleNames.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleNames.length; j++) {
- expect(data[i].moduleNames[j].length).assertLarger(0)
- }
- expect(data[i].modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
- expect(data[i].modulePublicDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleDirs.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleDirs.length; j++) {
- expect(data[i].moduleDirs[j].length).assertLarger(0)
- }
- expect(data[i].moduleResPaths.length).assertLarger(0)
- for (var j = 0; j < data[i].moduleResPaths.length; j++) {
- expect(data[i].moduleResPaths[j].length).assertLarger(0)
- }
- expect(data[i].abilityInfos.length).assertLarger(0)
- for (var j = 0; j < data[i].abilityInfos.length; j++) {
- expect(data[i].abilityInfos[j].name.length).assertLarger(0)
- expect(data[i].abilityInfos[j].package.length).assertLarger(0)
- }
- }
- }
-
- })
- it('getBundleInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleInfo('com.example.napi_test_suite3', 1)
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- done()
- })
- it('getBundleInfo_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.getBundleInfo('com.example.napi_test_suite3', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.vendor.length).assertLarger(0)
- expect(datainfo.versionCode).assertEqual(1)
- expect(datainfo.versionName).assertEqual(1.0)
- expect(datainfo.minSdkVersion).assertEqual(0)
- expect(datainfo.maxSdkVersion).assertEqual(0)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.hapModuleNames.length; j++) {
- expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- }
- expect(datainfo.moduleNames.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleNames.length; j++) {
- expect(datainfo.moduleNames[j].length).assertLarger(0)
- }
- expect(datainfo.modulePublicDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- }
- expect(datainfo.moduleDirs.length).assertLarger(0)
- for (var j = 0; j < datainfo.moduleDirs.length; j++) {
- expect(datainfo.moduleDirs[j].length).assertLarger(0)
- }
- }
-
- done()
- })
- it('getBundleArchiveInfo_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo = await info.getBundleArchiveInfo('/data/abc2.hap', 1)
-
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- expect(datainfo.hapModuleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.hapModuleNames.length; j++) {
- // expect(datainfo.hapModuleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleNames.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleNames.length; j++) {
- // expect(datainfo.moduleNames[j].length).assertLarger(0)
- // }
- // expect(datainfo.modulePublicDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.modulePublicDirs.length; j++) {
- // expect(datainfo.modulePublicDirs[j].length).assertLarger(0)
- // }
- // expect(datainfo.moduleDirs.length).assertLarger(0)
- // for(var j = 0; j < datainfo.moduleDirs.length; j++) {
- // expect(datainfo.moduleDirs[j].length).assertLarger(0)
- // }
- done()
- })
- it('getBundleArchiveInfo_0800', 0, async function (done) {
- var info = await demo.getBundleManager()
- await info.getBundleArchiveInfo('/data/abc2.hap', 1, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- console.info('**************************getBundleInfo_01********************************')
- expect(datainfo.entryModuleName.length).assertLarger(0)
- expect(datainfo.compatibleVersion).assertEqual(5)
- expect(datainfo.targetVersion).assertEqual(5)
- expect(datainfo.isKeepAlive).assertEqual(false)
- expect(datainfo.isNativeApp).assertEqual(false)
- done()
- }
- })
-
- it('queryAbilityByWant_0300', 0, async function (done) {
- var info = await demo.getBundleManager()
- var datainfo =
- info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- })
- console.info('**************************queryAbilityByWant_01********************************')
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done();
- })
- it('queryAbilityByWant_0800', 0, async function (done) {
-
- var info = await demo.getBundleManager()
- await info.queryAbilityByWant({
- want: {
- action: "action.system.home",
- entities: ["entity.system.home"],
- elementName: {
- deviceId: "0",
- bundleName: "com.example.myapplicationInstall2",
- abilityName: "com.example.myapplication.MainAbility",
- },
- }
- }, {
- params: {
- flags: 8,
- userId: "0",
- }
- }, OnReceiveEvent)
-
- function OnReceiveEvent(datainfo) {
- expect(datainfo.name.length).assertLarger(0)
- expect(datainfo.label.length).assertLarger(0)
- expect(datainfo.description.length).assertLarger(0)
- expect(datainfo.iconPath.length).assertLarger(0)
- expect(datainfo.visible.length).assertLarger(0)
- expect(datainfo.kind.length).assertLarger(0)
- expect(datainfo.package.length).assertLarger(0)
- expect(datainfo.bundleName.length).assertLarger(0)
- expect(datainfo.moduleName.length).assertLarger(0)
- expect(datainfo.applicationName.length).assertLarger(0)
- expect(datainfo.resourcePath.length).assertLarger(0)
- expect(datainfo.deviceTypes.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceTypes.length; j++) {
- expect(datainfo.deviceTypes[j].length).assertLarger(0)
- }
- expect(datainfo.deviceCapabilities.length).assertLarger(0)
- for (var j = 0; j < datainfo.deviceCapabilities.length; j++) {
- expect(datainfo.deviceCapabilities[j].length).assertLarger(0)
- }
- expect(datainfo.applicationInfo.name.length).assertLarger(0)
- expect(datainfo.applicationInfo.bundleName.length).assertLarger(0)
- done()
- }
- })
- it('install_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.install(['/data/abc4.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc5.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- data.install(['/data/abc6.hap'], {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(infos) {
- expect(typeof infos).assertEqual("object");
- expect(infos.status).assertEqual(0);
- expect(infos.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
- it('uninstall_0300', 0, async function (done) {
- demo.getBundleInstaller().then((data) => {
- data.uninstall('com.example.myapplication4', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
- // data.uninstall('com.example.myapplication4', {
- // param: {
- // userId: 0,
- // isKeepData: false
- // }
- // }, OnReceiveinstallEvent);
- data.uninstall('com.example.myapplication5', {
- param: {
- userId: 0,
- isKeepData: false
- }
- }, OnReceiveinstallEvent);
-
- function OnReceiveinstallEvent(data) {
- expect(typeof data).assertEqual("object");
- expect(data.status).assertEqual(0);
- expect(data.statusMessage).assertEqual("SUCCESS");
- }
- });
- done();
- })
-
-
-})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/List.test.js
deleted file mode 100644
index 305eb5bb254cd4802afaffebe68fca2f9436159f..0000000000000000000000000000000000000000
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/test/List.test.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./ExampleJsunit.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest6/hap/bmsJstest6.hap b/appexecfwk/bundle_standard/bmsJstest6/hap/bmsJstest6.hap
deleted file mode 100644
index 493d6d7b3b937daa193c2874ad0de66ef0f1341c..0000000000000000000000000000000000000000
Binary files a/appexecfwk/bundle_standard/bmsJstest6/hap/bmsJstest6.hap and /dev/null differ
diff --git a/appexecfwk/bundle_standard/bmsJstest4/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/BUILD.gn
old mode 100644
new mode 100755
similarity index 69%
rename from appexecfwk/bundle_standard/bmsJstest4/BUILD.gn
rename to appexecfwk/bundle_standard/bundlemanager/BUILD.gn
index 2c0512ca400c025ae2758808cd8c2245f512c330..448f51c8b0139cf931990b2e7a7affd45eaf4897
--- a/appexecfwk/bundle_standard/bmsJstest4/BUILD.gn
+++ b/appexecfwk/bundle_standard/bundlemanager/BUILD.gn
@@ -13,7 +13,10 @@
import("//build/config/ohos/rules.gni")
import("//test/xts/tools/build/suite.gni")
-ohos_js_hap_suite("hjs_demo_test4") {
- test_hap_name = "bmsJstest4.hap"
- hap_source_path = "hap/bmsJstest4.hap"
-}
+ohos_js_hap_suite("ActsBundleManagerTest") {
+ test_hap_name = "ActsBundleManagerTest"
+ hap_source_path = "hap/napi_test_suite_scene1.hap"
+ hap_source_path = "hap/napi_test_suite_scene2.hap"
+ hap_source_path = "hap/napi_test_suite_scene3.hap"
+ hap_source_path = "hap/napi_test_suite_scene4.hap"
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest4/Test.json b/appexecfwk/bundle_standard/bundlemanager/Test.json
similarity index 79%
rename from appexecfwk/bundle_standard/bmsJstest4/Test.json
rename to appexecfwk/bundle_standard/bundlemanager/Test.json
index a66d99d7f1053847908cb526b7abf7424804e960..a5161ffe94413e4902583207dec992036595fb6d 100644
--- a/appexecfwk/bundle_standard/bmsJstest4/Test.json
+++ b/appexecfwk/bundle_standard/bundlemanager/Test.json
@@ -3,13 +3,13 @@
"driver": {
"type": "JSUnitTest",
"test-timeout": "21600000",
- "package": "ohos.acts.aafwk.ability",
+ "package": "ohos.acts.appexecfwk.bundlemanager",
"shell-timeout": "21600000"
},
"kits": [
{
"test-file-name": [
- "AbilityDemo.hap",
+ "BundleManagerDemo.hap",
"$module.hap"
],
"type": "AppInstallKit",
diff --git a/appexecfwk/bundle_standard/bmsJstest1/hap/bmsJstest1.hap b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene1.hap
similarity index 66%
rename from appexecfwk/bundle_standard/bmsJstest1/hap/bmsJstest1.hap
rename to appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene1.hap
index e7949b17d46c2456b6c5fd242561a4596206a59a..9ade636d049389136fc5b45cb5748f01025ca016 100644
Binary files a/appexecfwk/bundle_standard/bmsJstest1/hap/bmsJstest1.hap and b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene1.hap differ
diff --git a/appexecfwk/bundle_standard/bmsJstest2/hap/bmsJstest2.hap b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene2.hap
similarity index 64%
rename from appexecfwk/bundle_standard/bmsJstest2/hap/bmsJstest2.hap
rename to appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene2.hap
index 0c22acef012df016f5890b3395c2ab6954a5808f..0a00840c46b36d27a27dc38f35583084e166d4b3 100644
Binary files a/appexecfwk/bundle_standard/bmsJstest2/hap/bmsJstest2.hap and b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene2.hap differ
diff --git a/appexecfwk/bundle_standard/bmsJstest4/hap/bmsJstest4.hap b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene3.hap
similarity index 64%
rename from appexecfwk/bundle_standard/bmsJstest4/hap/bmsJstest4.hap
rename to appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene3.hap
index 2b06147a3722a8c94f28e3ee455f376d1e3fcaf6..6c298ca7ccbaaf811385f68bbf3a8e282688ef01 100644
Binary files a/appexecfwk/bundle_standard/bmsJstest4/hap/bmsJstest4.hap and b/appexecfwk/bundle_standard/bundlemanager/hap/napi_test_suite_scene3.hap differ
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/package.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/package.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/package.json
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/config.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/config.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/config.json
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/app.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/app.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/app.js
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.css
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.css
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.css
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.hml
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/default/pages/index/index.hml
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.hml
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.js
similarity index 70%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.js
index 5790b249d899277488f4267b0a37c150605137ad..bd83eeac6b314818e1f3da0fe2eb11ab0a5b608f 100644
--- a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.js
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/default/pages/index/index.js
@@ -18,17 +18,9 @@ export default {
'id': 'extend'
})
const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
const configService = core.getDefaultService('config')
configService.setConfig(this)
diff --git a/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/test/ExampleJsunit.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..7b953b1bb344e35bf75fccab19446173e17b8e2e
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/test/ExampleJsunit.test.js
@@ -0,0 +1,127 @@
+import app from '@system.app'
+import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
+import demo from '@ohos.bundle'
+
+describe('appInfoTest', function () {
+
+ it('getApplicationInfos_0100', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfos(8, 0)
+ checkgetApplicationInfos(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfos(datainfo) {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ }
+
+ it('getApplicationInfos_0600', 0, async function (done) {
+ await demo.getApplicationInfos(8, 0, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ });
+ done()
+ })
+
+ it('getApplicationInfo_0100', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfo('com.example.myapplication1', 8, 1)
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ done()
+ })
+
+ it('getApplicationInfo_0600', 0, async function (done) {
+ await demo.getApplicationInfo('com.example.myapplication1', 8, 1, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ })
+ done()
+ })
+
+ it('getBundleInfos_0100', 0, async function () {
+ var data = await demo.getBundleInfos(8)
+ expect(typeof data).assertEqual("object")
+ expect(data.length).assertLarger(0)
+ for (var i = 0; i < data.length; i++) {
+ expect(data[i].name.length).assertLarger(0)
+ expect(data[i].entryModuleName.length).assertLarger(0)
+ expect(typeof data[i].appInfo).assertEqual("object")
+ expect(data[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+
+ it('getBundleInfos_0600', 0, async function () {
+ await demo.getBundleInfos(8, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].entryModuleName.length).assertLarger(0)
+ expect(typeof datainfo[i].appInfo).assertEqual("object")
+ expect(datainfo[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+ })
+
+ it('getApplicationInfo_0400', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfo('com.example.napi_test_suitee', 8, 1)
+ checkgetApplicationInfoe(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfoe(datainfo) {
+ expect(datainfo.name.length).assertEqual(0)
+ }
+
+ it('getApplicationInfo_0500', 0, async function (done) {
+ await demo.getApplicationInfo('', 8, 1, (error, datainfo) => {
+ expect(datainfo.name.length).assertEqual(0)
+ })
+ done()
+ })
+
+ it('getApplicationInfo_0900', 0, async function (done) {
+ await demo.getApplicationInfo('com.example.napi_test_suitee', 8, 1, (error, datainfo) => {
+ expect(datainfo.name.length).assertEqual(0)
+ })
+ done()
+ })
+
+ it('getApplicationInfo_1000', 0, async function (done) {
+ await demo.getApplicationInfo('', 8, 1, (error, datainfo) => {
+ expect(datainfo.name.length).assertEqual(0)
+ })
+ done()
+ })
+
+})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/test/List.test.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest1/entry/src/main/js/test/List.test.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene1/src/main/js/test/List.test.js
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/package.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/package.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/package.json
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/config.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/config.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/config.json
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/app.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/app.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/app.js
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.css
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.css
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.css
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.hml
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.hml
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.hml
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.js
similarity index 70%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.js
index 5790b249d899277488f4267b0a37c150605137ad..bd83eeac6b314818e1f3da0fe2eb11ab0a5b608f 100644
--- a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/default/pages/index/index.js
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/default/pages/index/index.js
@@ -18,17 +18,9 @@ export default {
'id': 'extend'
})
const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
const configService = core.getDefaultService('config')
configService.setConfig(this)
diff --git a/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/test/ExampleJsunit.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..4cb5d5b8972c59765900a33ff7bf02b7ab149895
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/test/ExampleJsunit.test.js
@@ -0,0 +1,158 @@
+import app from '@system.app'
+import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
+import demo from '@ohos.bundle'
+
+describe('appInfoTest', function () {
+
+ it('getApplicationInfos_0200', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfos(8, 0)
+ checkgetApplicationInfos(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfos(datainfo) {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ }
+
+ it('getApplicationInfos_0400', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfos(8, 0)
+ checkgetApplicationInfos(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfos(datainfo) {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ }
+
+ it('getApplicationInfos_0700', 0, async function (done) {
+ await demo.getApplicationInfos(8, 0, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ });
+ done()
+ })
+
+ it('getApplicationInfos_0900', 0, async function (done) {
+ await demo.getApplicationInfos(8, 0, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ });
+ done()
+ })
+
+ it('getBundleInfos_0200', 0, async function () {
+ var data = await demo.getBundleInfos(8)
+ expect(typeof data).assertEqual("object")
+ expect(data.length).assertLarger(0)
+ for (var i = 0; i < data.length; i++) {
+ expect(data[i].name.length).assertLarger(0)
+ expect(data[i].entryModuleName.length).assertLarger(0)
+ expect(typeof data[i].appInfo).assertEqual("object")
+ expect(data[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+
+ it('getBundleInfos_0400', 0, async function () {
+ var data = await demo.getBundleInfos(8)
+ expect(typeof data).assertEqual("object")
+ expect(data.length).assertLarger(0)
+ for (var i = 0; i < data.length; i++) {
+ expect(data[i].name.length).assertLarger(0)
+ expect(data[i].entryModuleName.length).assertLarger(0)
+ expect(typeof data[i].appInfo).assertEqual("object")
+ expect(data[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+
+ it('getBundleInfos_0700', 0, async function () {
+ await demo.getBundleInfos(8, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].entryModuleName.length).assertLarger(0)
+ expect(typeof datainfo[i].appInfo).assertEqual("object")
+ expect(datainfo[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+ })
+
+ it('getBundleInfos_0900', 0, async function () {
+ await demo.getBundleInfos(8, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].entryModuleName.length).assertLarger(0)
+ expect(typeof datainfo[i].appInfo).assertEqual("object")
+ expect(datainfo[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+ })
+
+ it('getApplicationInfo_0200', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfo('com.example.myapplication1', 8, 1)
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ done()
+ })
+
+ it('getApplicationInfo_0700', 0, async function (done) {
+ await demo.getApplicationInfo('com.example.myapplication1', 8, 1, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ })
+ done()
+ })
+
+})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/test/List.test.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest2/entry/src/main/js/test/List.test.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene2/src/main/js/test/List.test.js
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/package.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/package.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/package.json
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/config.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest4/entry/src/main/config.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/config.json
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/app.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/app.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/app.js
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.css
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.css
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.css
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.hml
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/default/pages/index/index.hml
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.hml
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.js
similarity index 70%
rename from appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.js
index 5790b249d899277488f4267b0a37c150605137ad..bd83eeac6b314818e1f3da0fe2eb11ab0a5b608f 100644
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/pages/index/index.js
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/default/pages/index/index.js
@@ -18,17 +18,9 @@ export default {
'id': 'extend'
})
const reportExtend = new ReportExtend(file)
- // const instrumentLog = new InstrumentLog({
- // 'id': 'report'
- // })
core.addService('expect', expectExtend)
core.addService('report', reportExtend)
- // core.addService('report', instrumentLog)
core.init()
- // core.subscribeEvent('spec', instrumentLog)
- // core.subscribeEvent('suite', instrumentLog)
- // core.subscribeEvent('task', instrumentLog)
-
const configService = core.getDefaultService('config')
configService.setConfig(this)
diff --git a/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/test/ExampleJsunit.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/test/ExampleJsunit.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..b2bd475c628adf4a12e892dfa2d38e7a2345c421
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/test/ExampleJsunit.test.js
@@ -0,0 +1,158 @@
+import app from '@system.app'
+import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'
+import demo from '@ohos.bundle'
+
+describe('appInfoTest', function () {
+
+ it('getApplicationInfos_0300', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfos(8, 0)
+ checkgetApplicationInfos(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfos(datainfo) {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ }
+
+ it('getApplicationInfos_0500', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfos(8, 0)
+ checkgetApplicationInfos(datainfo)
+ done()
+ })
+
+ function checkgetApplicationInfos(datainfo) {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ }
+
+ it('getApplicationInfos_0800', 0, async function (done) {
+ await demo.getApplicationInfos(8, 0, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ });
+ done()
+ })
+
+ it('getApplicationInfos_1000', 0, async function (done) {
+ await demo.getApplicationInfos(8, 0, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].description.length).assertLarger(0)
+ expect(datainfo[i].icon.length).assertLarger(0)
+ expect(datainfo[i].label.length).assertLarger(0)
+ expect(datainfo[i].entryDir.length).assertLarger(0)
+ expect(datainfo[i].moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo[i].moduleInfos.length).assertLarger(0)
+ }
+ });
+ done()
+ })
+
+ it('getBundleInfos_0300', 0, async function () {
+ var data = await demo.getBundleInfos(8)
+ expect(typeof data).assertEqual("object")
+ expect(data.length).assertLarger(0)
+ for (var i = 0; i < data.length; i++) {
+ expect(data[i].name.length).assertLarger(0)
+ expect(data[i].entryModuleName.length).assertLarger(0)
+ expect(typeof data[i].appInfo).assertEqual("object")
+ expect(data[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+
+ it('getBundleInfos_0500', 0, async function () {
+ var data = await demo.getBundleInfos(8)
+ expect(typeof data).assertEqual("object")
+ expect(data.length).assertLarger(0)
+ for (var i = 0; i < data.length; i++) {
+ expect(data[i].name.length).assertLarger(0)
+ expect(data[i].entryModuleName.length).assertLarger(0)
+ expect(typeof data[i].appInfo).assertEqual("object")
+ expect(data[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+
+ it('getBundleInfos_0800', 0, async function () {
+ await demo.getBundleInfos(8, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].entryModuleName.length).assertLarger(0)
+ expect(typeof datainfo[i].appInfo).assertEqual("object")
+ expect(datainfo[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+ })
+
+ it('getBundleInfos_1000', 0, async function () {
+ await demo.getBundleInfos(8, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.length).assertLarger(0)
+ for (var i = 0; i < datainfo.length; i++) {
+ expect(datainfo[i].name.length).assertLarger(0)
+ expect(datainfo[i].entryModuleName.length).assertLarger(0)
+ expect(typeof datainfo[i].appInfo).assertEqual("object")
+ expect(datainfo[i].abilityInfos.length).assertLarger(0)
+ }
+ })
+ })
+
+ it('getApplicationInfo_0300', 0, async function (done) {
+ var datainfo = await demo.getApplicationInfo('com.example.myapplication1', 8, 1)
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ done()
+ })
+
+ it('getApplicationInfo_0800', 0, async function (done) {
+ await demo.getApplicationInfo('com.example.myapplication1', 8, 1, (error, datainfo) => {
+ expect(typeof datainfo).assertEqual("object")
+ expect(datainfo.name.length).assertLarger(0)
+ expect(datainfo.description.length).assertLarger(0)
+ expect(datainfo.icon.length).assertLarger(0)
+ expect(datainfo.label.length).assertLarger(0)
+ expect(datainfo.entryDir.length).assertLarger(0)
+ expect(datainfo.moduleSourceDirs.length).assertLarger(0)
+ expect(datainfo.moduleInfos.length).assertLarger(0)
+ })
+ done()
+ })
+
+})
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/test/List.test.js
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/js/test/List.test.js
rename to appexecfwk/bundle_standard/bundlemanager/project/napi_test_suite_scene3/src/main/js/test/List.test.js
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/package.json
similarity index 75%
rename from appexecfwk/bundle_standard/bmsJstest4/entry/package.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/package.json
index 69a88e3b65423624fe7ea8b0f8beefcc62cc3d5f..0967ef424bce6791893e9a57bb952f80fd536e93 100644
--- a/appexecfwk/bundle_standard/bmsJstest4/entry/package.json
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/package.json
@@ -1 +1 @@
-{}
+{}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..5732efeb734a89a1b210e858206fa23bb92b0e2e
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/config.json
@@ -0,0 +1,62 @@
+{
+ "app": {
+ "bundleName": "com.example.myapplication1",
+ "vendor": "example",
+ "version": {
+ "code": 1,
+ "name": "1.0"
+ },
+ "apiVersion": {
+ "compatible": 5,
+ "target": 5,
+ "releaseType": "Beta1"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.myapplication1",
+ "name": ".MyApplication1",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry"
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "name": ".MainAbility",
+ "icon": "$media:icon",
+ "description": "$string:mainability_description",
+ "label": "$string:app_name",
+ "type": "page",
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
+ }
+ ],
+ "js": [
+ {
+ "pages": [
+ "pages/index/index"
+ ],
+ "name": "default",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest4/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest1/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0967ef424bce6791893e9a57bb952f80fd536e93
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/package.json
@@ -0,0 +1 @@
+{}
diff --git a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/config.json
similarity index 53%
rename from appexecfwk/bundle_standard/bmsJstest3/entry/src/main/config.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/config.json
index 2aaf77cc49bf11395079b80b47beb9a3d40aac3f..b9164717b64bb02af85da8a655d9ef71e23641ff 100644
--- a/appexecfwk/bundle_standard/bmsJstest3/entry/src/main/config.json
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/config.json
@@ -1,6 +1,6 @@
{
"app": {
- "bundleName": "com.example.napi_test_suite",
+ "bundleName": "com.example.myapplication2",
"vendor": "example",
"version": {
"code": 1,
@@ -14,9 +14,7 @@
},
"deviceConfig": {},
"module": {
-
-
- "package": "com.example.napi_test_suite",
+ "package": "com.example.myapplication2",
"name": ".MyApplication2",
"deviceType": [
"phone"
@@ -38,35 +36,14 @@
]
}
],
- "name": "com.example.napi_test_suite.MainAbility",
+ "name": ".MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
- "launchType": "standard"
- }
- ],
- "defPermissions": [
- {
- "name": "com.permission.CAMERA",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "CAMERA permission",
- "description": "CAMERA permission in detail"
- },
- {
- "name": "com.permission.music",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "music permission",
- "description": "music permission in detail"
- },
- {
- "name": "com.permission.WeChat",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "WeChat permission",
- "description": "WeChat permission in detail"
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
}
],
"js": [
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest5/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest2/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0967ef424bce6791893e9a57bb952f80fd536e93
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/package.json
@@ -0,0 +1 @@
+{}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..4e528acc6606fdf0d92ec320ac2d7af7a1fcd12c
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/config.json
@@ -0,0 +1,62 @@
+{
+ "app": {
+ "bundleName": "com.example.myapplication2",
+ "vendor": "example",
+ "version": {
+ "code": 1,
+ "name": "1.0"
+ },
+ "apiVersion": {
+ "compatible": 5,
+ "target": 5,
+ "releaseType": "Beta1"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.myapplication3",
+ "name": ".MyApplication3",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry"
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "name": ".MainAbility",
+ "icon": "$media:icon",
+ "description": "$string:mainability_description",
+ "label": "$string:app_name",
+ "type": "page",
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
+ }
+ ],
+ "js": [
+ {
+ "pages": [
+ "pages/index/index"
+ ],
+ "name": "default",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/i18n/en-US.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/i18n/en-US.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/i18n/en-US.json
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/i18n/zh-CN.json
similarity index 100%
rename from appexecfwk/bundle_standard/bmsJstest6/entry/src/main/js/default/i18n/zh-CN.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/i18n/zh-CN.json
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest3/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0967ef424bce6791893e9a57bb952f80fd536e93
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/package.json
@@ -0,0 +1 @@
+{}
diff --git a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/config.json
similarity index 53%
rename from appexecfwk/bundle_standard/bmsJstest6/entry/src/main/config.json
rename to appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/config.json
index 68a0af66ffa701e4854c43b24c19a42c07b4b7a9..a18c424edf3595ec7e5f67aee5e8db25197f0279 100644
--- a/appexecfwk/bundle_standard/bmsJstest6/entry/src/main/config.json
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/config.json
@@ -1,6 +1,6 @@
{
"app": {
- "bundleName": "com.example.napi_test_suite3",
+ "bundleName": "com.example.myapplication4",
"vendor": "example",
"version": {
"code": 1,
@@ -14,9 +14,7 @@
},
"deviceConfig": {},
"module": {
-
-
- "package": "com.example.napi_test_suite3",
+ "package": "com.example.myapplication",
"name": ".MyApplication",
"deviceType": [
"phone"
@@ -38,35 +36,14 @@
]
}
],
- "name": "com.example.napi_test_suite3.MainAbility",
+ "name": ".MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
- "launchType": "standard"
- }
- ],
- "defPermissions": [
- {
- "name": "com.permission.CAMERA",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "CAMERA permission",
- "description": "CAMERA permission in detail"
- },
- {
- "name": "com.permission.music",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "music permission",
- "description": "music permission in detail"
- },
- {
- "name": "com.permission.WeChat",
- "grantMode": "system_grant",
- "availableScope": ["signature"],
- "label": "WeChat permission",
- "description": "WeChat permission in detail"
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
}
],
"js": [
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/en-US.json
new file mode 100644
index 0000000000000000000000000000000000000000..e63c70d978a3a53be988388c87182f81785e170c
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/en-US.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "Hello",
+ "world": "World"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/zh-CN.json
new file mode 100644
index 0000000000000000000000000000000000000000..de6ee5748322f44942c1b003319d8e66c837675f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/i18n/zh-CN.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "您好",
+ "world": "世界"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest4/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0967ef424bce6791893e9a57bb952f80fd536e93
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/package.json
@@ -0,0 +1 @@
+{}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..9d27f0766ff0657f761c86ee40516c7d5b50062a
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/config.json
@@ -0,0 +1,62 @@
+{
+ "app": {
+ "bundleName": "com.example.myapplication5",
+ "vendor": "example",
+ "version": {
+ "code": 1,
+ "name": "1.0"
+ },
+ "apiVersion": {
+ "compatible": 5,
+ "target": 5,
+ "releaseType": "Beta1"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.myapplication",
+ "name": ".MyApplication",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry"
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "name": ".MainAbility",
+ "icon": "$media:icon",
+ "description": "$string:mainability_description",
+ "label": "$string:app_name",
+ "type": "page",
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
+ }
+ ],
+ "js": [
+ {
+ "pages": [
+ "pages/index/index"
+ ],
+ "name": "default",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/en-US.json
new file mode 100644
index 0000000000000000000000000000000000000000..e63c70d978a3a53be988388c87182f81785e170c
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/en-US.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "Hello",
+ "world": "World"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/zh-CN.json
new file mode 100644
index 0000000000000000000000000000000000000000..de6ee5748322f44942c1b003319d8e66c837675f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/i18n/zh-CN.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "您好",
+ "world": "世界"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest5/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..0967ef424bce6791893e9a57bb952f80fd536e93
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/package.json
@@ -0,0 +1 @@
+{}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..250bf8ebbe87450547c63e8fdd7bbf825f659f48
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/config.json
@@ -0,0 +1,62 @@
+{
+ "app": {
+ "bundleName": "com.example.myapplication6",
+ "vendor": "example",
+ "version": {
+ "code": 1,
+ "name": "1.0"
+ },
+ "apiVersion": {
+ "compatible": 5,
+ "target": 5,
+ "releaseType": "Beta1"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.myapplication",
+ "name": ".MyApplication",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry"
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "name": ".MainAbility",
+ "icon": "$media:icon",
+ "description": "$string:mainability_description",
+ "label": "$string:app_name",
+ "type": "page",
+ "isVisible": "true",
+ "launchType": "standard",
+ "language": "C++"
+ }
+ ],
+ "js": [
+ {
+ "pages": [
+ "pages/index/index"
+ ],
+ "name": "default",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/app.js
new file mode 100644
index 0000000000000000000000000000000000000000..177a53b57d8cd75cb060445261d6ccf68e6f8996
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/app.js
@@ -0,0 +1,13 @@
+
+
+export default {
+ onCreate() {
+ console.info('AceApplication onCreate start');
+ //console.info('AceApplication onCreate add ' + demo.add(123,456));
+ //console.info('AceApplication onCreate getApplicationInfos ' + demo.getApplicationInfos(0,0));
+ //demo.getApplicationInfosPromise().then(function (data) {console.info('AceApplication onCreate GetApplicationInfosPromise');});
+ },
+ onDestroy() {
+ console.info('AceApplication onDestroy');
+ }
+};
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/en-US.json
new file mode 100644
index 0000000000000000000000000000000000000000..e63c70d978a3a53be988388c87182f81785e170c
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/en-US.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "Hello",
+ "world": "World"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/zh-CN.json
new file mode 100644
index 0000000000000000000000000000000000000000..de6ee5748322f44942c1b003319d8e66c837675f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/i18n/zh-CN.json
@@ -0,0 +1,6 @@
+{
+ "strings": {
+ "hello": "您好",
+ "world": "世界"
+ }
+}
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.7z b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.7z
new file mode 100644
index 0000000000000000000000000000000000000000..dbccab2448244aab22b7efe1ac0b4e71e82f8340
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.7z differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.css
new file mode 100644
index 0000000000000000000000000000000000000000..ac480b4b14519f8f3335acc8c0a75a1f9bd0881d
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.css
@@ -0,0 +1,8 @@
+.container {
+
+}
+
+.title {
+ font-size: 100px;
+ transform: translate(-10px,-10px);
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.hml
new file mode 100644
index 0000000000000000000000000000000000000000..36818c345733c607de19f2d57a83ca241a5b8aad
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.hml
@@ -0,0 +1,7 @@
+
+
+{{title}}
+
+
+
+
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb48d6c9fe01d482266c0ac5da3827ed2055bf5f
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index.js
@@ -0,0 +1,25 @@
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: "AI",
+ realHrValue: 0,
+ x: 0,
+ y: 100,
+ d: ","
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+ this.updateTime();
+ this.timer = setInterval(this.updateTime, 17)
+ },
+ updateTime: function () {
+
+ },
+ onDestroy() {
+
+ clearInterval(this.timer)
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..9ec8b7c9c1a1ce3f3bac1f052928f147a0283f25
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/default/pages/index/index/index.js
@@ -0,0 +1,207 @@
+//
+//import {Core} from 'deccjsunit/lite'
+//const core=Core.getInstance()
+//core.init()
+//require('../../../test/List.test.js')
+//core.execute()
+
+import demo from '@ohos.bundle'
+
+export default {
+ data: {
+ title: ""
+ },
+ onInit() {
+ this.title = this.$t('strings.world');
+ console.log("BmsApplication test for ams");
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test1.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install1==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+ });
+
+
+ demo.getBundleInstaller().then((data) => {
+ data.install(['/data/test.hap'], {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================install async install2==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================install result code:" + err.code);
+ console.info("neu========================install result code:" + data.status);
+ console.info("neu========================install result msg:" + data.statusMessage);
+ }
+
+
+});
+
+
+
+demo.getBundleInstaller().then((data) => {
+ data.uninstall('com.example.myapplicationInstall3', {
+ param: {
+ userId: 0,
+ isKeepData: false
+ }
+ }, OnReceiveinstallEvent);
+
+ function OnReceiveinstallEvent(err,data) {
+ console.info("==============================uninstall async uninstall==============================");
+ console.info("neu========================name: for begin");
+ console.info("neu========================uninstall result code:" + err.code);
+ console.info("neu========================uninstall result code:" + data.status);
+ console.info("neu========================uninstall result msg:" + data.statusMessage);
+ }
+});
+
+
+
+
+ demo.getBundleInfos(8, OnReceiveEvent1);
+ function OnReceiveEvent1(err,data) {
+ console.info("neuXXXXXXXgetBundleInfosXXXXXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.length:" + data.length);
+ for (var i = 0; i < data.length; i++) {
+
+ console.info("neu========================data[i].name.length:" + data[i].name.length);
+
+
+ console.info("neu========================data[i].appInfo.name.length" + data[i].appInfo.name.length);
+
+
+ console.info("neu========================data[i].hapModuleInfos.length" + data[i].hapModuleInfos.length);
+
+ for (var j = 0; j < data[i].hapModuleInfos.length; j++) {
+
+
+ console.info("neu========================data[i].hapModuleInfos[j].length" + data[i].hapModuleInfos[j].length);
+ }
+
+ console.info("neu========================data[i].abilityInfos.length" + data[i].abilityInfos.length);
+ for (var j = 0; j < data[i].abilityInfos.length; j++) {
+
+ console.info("neu========================data[i].abilityInfos[j].name.length" + data[i].abilityInfos[j].name.length);
+ }
+ }
+ }
+
+
+
+
+ demo.getBundleInfo('com.example.myapplication',1,OnReceiveEvent2);
+ function OnReceiveEvent2(err,data) {
+
+
+ console.info("neuXXXXgetBundleInfoXXXX.name: for begin");
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================data.name:::" + data.name);
+
+ }
+
+
+
+
+
+ demo.getApplicationInfos(8, 0, OnReceiveEvent3);
+ function OnReceiveEvent3(err,datainfo) {
+ console.info("neuXXXXXXXgetApplicationInfosXXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.length:::" + datainfo.length);
+
+ for (var i = 0; i < datainfo.length; i++) {
+
+ console.info("neu========================datainfo[i].name" + datainfo[i].name);
+
+ }
+ }
+
+
+
+ demo.getApplicationInfo('com.example.myapplication', 8, 1, OnReceiveEvent4);
+ function OnReceiveEvent4(err,datainfo) {
+
+ console.info("neu========================err.code:" + err.code);
+
+ console.info("neuXXXXXXgetApplicationInfoXXXXXXX.name: for begin");
+
+ console.info("neu========================ddatainfo.name:::" + datainfo.name);
+ }
+
+
+
+
+ demo.queryAbilityByWant({
+ want: {
+ action: "action.system.home",
+ entities: ["entity.system.home"],
+ elementName: {
+ deviceId: "0",
+ bundleName: "com.example.myapplication",
+ abilityName: "com.example.myapplication.MainAbility",
+ },
+ }
+ }, {
+ params: {
+ flags: 8,
+ userId: "0",
+ }
+ },OnReceiveEvent5);
+ function OnReceiveEvent5(err,datainfo) {
+
+ console.info("neuXXXXXXqueryAbilityByWantXXXXXXX.name: for begin");
+
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================datainfo.name:" + datainfo.name);
+
+
+ }
+
+
+
+ demo.getPermissionDef("com.permission.CAMERA",OnReceiveEvent6);
+ function OnReceiveEvent6(err,data) {
+ console.info('**************************getPermissionDef********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================permissionName:" + data.permissionName);
+
+
+ }
+
+
+ demo.getBundleArchiveInfo('/data/test.hap',OnReceiveEvent7);
+ function OnReceiveEvent7(err,data) {
+ console.info('**************************getBundleArchiveInfo********************************');
+ console.info("neu========================err.code:" + err.code);
+ console.info("neu========================name:" + data.name);
+
+
+
+ }
+
+
+
+ }
+}
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/AbilityManager.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/AbilityManager.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..6a2f198c2ee6d1e88febdf284bdb9d98921e10cc
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/AbilityManager.test.js
@@ -0,0 +1,59 @@
+//import abilitymanager from '@ohos.napi_ability_manager2'
+
+
+//console.log('**************************getApplicationInfos********************************');
+
+//describe('AbilityManagerTest', function () {
+// it('get_all_running_processes_test_001', 0, function () {
+//// var promise = abilitymanager.getAllRunningProcesses();
+//// expect(typeof(promise)).zassertEqual("object");
+// console.log('**************************getApplicationInfos********************************');
+//// demo.getApplicationInfos().then((data) => {
+//// console.info('**************************getApplicationInfos********************************');
+//// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+//// for (var i = 0; i < data.length; i++) {
+//// console.info("neu========================index[" + i + "].name: for begin");
+//// console.info("neu========================index[" + i + "].name:" + data[i].name);
+//// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+//// console.info("neu========================index[" + i + "].description:" + data[i].description);
+//// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+//// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+//// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+//// console.info("neu========================index[" + i + "].label:" + data[i].label);
+//// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+//// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+//// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+//// console.info("neu========================index[" + i + "].process:" + data[i].process);
+//// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+//// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+//// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+////
+//// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+//// for(var j = 0; j < data[i].permissions.length; j++) {
+//// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+//// for(var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+//// }
+//// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+//// for(var j = 0; j < data[i].moduleInfos.length; j++) {
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+//// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+//// }
+//// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+//// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+//// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+//// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+//// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+//// }
+//// });
+//
+//
+// })
+//// it('get_all_running_processes_test_002', 0, async function (done) {
+//// var info = await abilitymanager.getAllRunningProcesses();
+//// expect(info[0].processName.length).assertLarger(0);
+//// done();
+//// })
+//})
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/Context.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/Context.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..866a882845085e634308c67ab0ff023016316f8b
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/Context.test.js
@@ -0,0 +1,333 @@
+//import demo from '@ohos.bundle_mgr'
+//
+//describe('appInfoTest', function () {
+//
+// it('app_info_test_001', 0, function () {
+//
+//
+// demo.getApplicationInfos(8, 0).then((data) => {
+// console.info('**************************getApplicationInfos1********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// })
+// })
+//
+// it('app_info_test_002', 0, function () {
+//
+// demo.getApplicationInfos(8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfos2********************************');
+// console.info('xxx getApplicationInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].bundleName:" + data[i].bundleName);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].descriptionId:" + data[i].descriptionId);
+// console.info("neu========================index[" + i + "].iconPath:" + data[i].iconPath);
+// console.info("neu========================index[" + i + "].iconId:" + data[i].iconId);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].labelId:" + data[i].labelId);
+// console.info("neu========================index[" + i + "].deviceId:" + data[i].deviceId);
+// console.info("neu========================index[" + i + "].signatureKey:" + data[i].signatureKey);
+// console.info("neu========================index[" + i + "].process:" + data[i].process);
+// console.info("neu========================index[" + i + "].isSystemApp:" + data[i].isSystemApp);
+// console.info("neu========================index[" + i + "].isLauncherApp:" + data[i].isLauncherApp);
+// console.info("neu========================index[" + i + "].supportedModes:" + data[i].supportedModes);
+//
+// console.info('getApplicationInfosAsync permissions length [' + data[i].permissions.length + ']');
+// for (var j = 0; j < data[i].permissions.length; j++) {
+// console.info("neu====================index[" + i + "]permissions[" + j + "]:" + data[i].permissions[j]);
+// }
+// console.info('getApplicationInfosAsync moduleSourceDirs length [' + data[i].moduleSourceDirs.length + ']');
+// for (var j = 0; j < data[i].moduleSourceDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleSourceDirs[" + j + "]:" + data[i].moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfosAsync moduleInfos length [' + data[i].moduleInfos.length + ']');
+// for (var j = 0; j < data[i].moduleInfos.length; j++) {
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleName:" + data[i].moduleInfos[j].moduleName);
+// console.info("neu====================index[" + i + "]moduleInfos[" + j + "]moduleSourceDir:" + data[i].moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================index[" + i + "].entryDir:" + data[i].entryDir);
+// console.info("neu========================index[" + i + "].codePath:" + data[i].codePath);
+// console.info("neu========================index[" + i + "].dataDir:" + data[i].dataDir);
+// console.info("neu========================index[" + i + "].dataBaseDir:" + data[i].dataBaseDir);
+// console.info("neu========================index[" + i + "].cacheDir:" + data[i].cacheDir);
+// }
+// }
+// })
+//
+//
+// it('app_info_test_003', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0).then((data) => {
+// console.info('**************************getApplicationInfo1********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// })
+// })
+//
+//
+// it('app_info_test_004', 0, function () {
+//
+// demo.getApplicationInfo('com.example.myapplicationInstall', 8, 0, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getApplicationInfo2********************************');
+// console.info("neu========================name: for begin");
+// console.info("neu========================name:" + data.name);
+// console.info("neu========================bundleName:" + data.bundleName);
+// console.info("neu========================description:" + data.description);
+// console.info("neu========================descriptionId:" + data.descriptionId);
+// console.info("neu========================iconPath:" + data.iconPath);
+// console.info("neu========================iconId:" + data.iconId);
+// console.info("neu========================label:" + data.label);
+// console.info("neu========================labelId:" + data.labelId);
+// console.info("neu========================deviceId:" + data.deviceId);
+// console.info("neu========================signatureKey:" + data.signatureKey);
+// console.info("neu========================process:" + data.process);
+// console.info("neu========================isSystemApp:" + data.isSystemApp);
+// console.info("neu========================isLauncherApp:" + data.isLauncherApp);
+// console.info("neu========================supportedModes:" + data.supportedModes);
+//
+// console.info('getApplicationInfo permissions length [' + data.permissions.length + ']');
+// for (var j = 0; j < data.permissions.length; j++) {
+// console.info("neu====================permissions[" + j + "]:" + data.permissions[j]);
+// }
+// console.info('getApplicationInfo moduleSourceDirs length [' + data.moduleSourceDirs.length + ']');
+// for (var j = 0; j < data.moduleSourceDirs.length; j++) {
+// console.info("neu====================moduleSourceDirs[" + j + "]:" + data.moduleSourceDirs[j]);
+// }
+// console.info('getApplicationInfo moduleInfos length [' + data.moduleInfos.length + ']');
+// for (var j = 0; j < data.moduleInfos.length; j++) {
+// console.info("neu====================moduleInfos[" + j + "]moduleName:" + data.moduleInfos[j].moduleName);
+// console.info("neu====================moduleInfos[" + j + "]moduleSourceDir:" + data.moduleInfos[j].moduleSourceDir);
+// }
+// console.info("neu========================entryDir:" + data.entryDir);
+// console.info("neu========================codePath:" + data.codePath);
+// console.info("neu========================dataDir:" + data.dataDir);
+// console.info("neu========================dataBaseDir:" + data.dataBaseDir);
+// console.info("neu========================cacheDir:" + data.cacheDir);
+// }
+//
+// })
+//
+//
+// it('app_info_test_005', 0, function () {
+// demo.getBundleInfos(8).then((data) => {
+// console.info('**************************getBundleInfos1********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+// })
+// })
+//
+// it('app_info_test_006', 0, function () {
+//
+// demo.getBundleInfos(8, OnReceiveEvent);
+//
+// function OnReceiveEvent(data) {
+// console.info('**************************getBundleInfos2********************************');
+// console.info('xxx getBundleInfos data length [' + data.length + ']');
+// for (var i = 0; i < data.length; i++) {
+// console.info("neu========================index[" + i + "].name: for begin");
+// console.info("neu========================index[" + i + "].name:" + data[i].name);
+// console.info("neu========================index[" + i + "].label:" + data[i].label);
+// console.info("neu========================index[" + i + "].description:" + data[i].description);
+// console.info("neu========================index[" + i + "].vendor:" + data[i].vendor);
+// console.info("neu========================index[" + i + "].versionCode:" + data[i].versionCode);
+// console.info("neu========================index[" + i + "].versionName:" + data[i].versionName);
+// console.info("neu========================index[" + i + "].jointUserId:" + data[i].jointUserId);
+// console.info("neu========================index[" + i + "].minSdkVersion:" + data[i].minSdkVersion);
+// console.info("neu========================index[" + i + "].maxSdkVersion:" + data[i].maxSdkVersion);
+// console.info("neu========================index[" + i + "].mainEntry:" + data[i].mainEntry);
+// console.info("neu========================index[" + i + "].cpuAbi:" + data[i].cpuAbi);
+// console.info("neu========================index[" + i + "].appId:" + data[i].appId);
+// console.info("neu========================index[" + i + "].compatibleVersion:" + data[i].compatibleVersion);
+// console.info("neu========================index[" + i + "].targetVersion:" + data[i].targetVersion);
+// console.info("neu========================index[" + i + "].releaseType:" + data[i].releaseType);
+// console.info("neu========================index[" + i + "].uid:" + data[i].uid);
+// console.info("neu========================index[" + i + "].gid:" + data[i].gid);
+// console.info("neu========================index[" + i + "].seInfo:" + data[i].seInfo);
+// console.info("neu========================index[" + i + "].entryModuleName:" + data[i].entryModuleName);
+// console.info("neu========================index[" + i + "].isKeepAlive:" + data[i].isKeepAlive);
+// console.info("neu========================index[" + i + "].isNativeApp:" + data[i].isNativeApp);
+// console.info("neu========================index[" + i + "].installTime:" + data[i].installTime);
+// console.info("neu========================index[" + i + "].updateTime:" + data[i].updateTime);
+// console.info("neu========================index[" + i + "].appInfo.name:" + data[i].applicationInfo.name);
+// console.info("neu========================index[" + i + "].appInfo.bundleName:" + data[i].applicationInfo.bundleName);
+// console.info('getBundleInfos reqPermissions length [' + data[i].reqPermissions.length + ']');
+// for (var j = 0; j < data[i].reqPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]reqPermissions[" + j + "]:" + data[i].reqPermissions[j]);
+// }
+// console.info('getBundleInfos defPermissions length [' + data[i].defPermissions.length + ']');
+// for (var j = 0; j < data[i].defPermissions.length; j++) {
+// console.info("neu====================index[" + i + "]defPermissions[" + j + "]:" + data[i].defPermissions[j]);
+// }
+//
+// console.info('getBundleInfos hapModuleNames length [' + data[i].hapModuleNames.length + ']');
+// for (var j = 0; j < data[i].hapModuleNames.length; j++) {
+// console.info("neu====================index[" + i + "]hapModuleNames[" + j + "]:" + data[i].hapModuleNames[j]);
+// }
+// console.info('getBundleInfos moduleNames length [' + data[i].moduleNames.length + ']');
+// for (var j = 0; j < data[i].moduleNames.length; j++) {
+// console.info("neu====================index[" + i + "]moduleNames[" + j + "]:" + data[i].moduleNames[j]);
+// }
+// console.info('getBundleInfos modulePublicDirs length [' + data[i].modulePublicDirs.length + ']');
+// for (var j = 0; j < data[i].modulePublicDirs.length; j++) {
+// console.info("neu====================index[" + i + "]modulePublicDirs[" + j + "]:" + data[i].modulePublicDirs[j]);
+// }
+// console.info('getBundleInfos moduleDirs length [' + data[i].moduleDirs.length + ']');
+// for (var j = 0; j < data[i].moduleDirs.length; j++) {
+// console.info("neu====================index[" + i + "]moduleDirs[" + j + "]:" + data[i].moduleDirs[j]);
+// }
+// console.info('getBundleInfos moduleResPaths length [' + data[i].moduleResPaths.length + ']');
+// for (var j = 0; j < data[i].moduleResPaths.length; j++) {
+// console.info("neu====================index[" + i + "]moduleResPaths[" + j + "]:" + data[i].moduleResPaths[j]);
+// }
+// console.info('getBundleInfos abilityInfo length [' + data[i].abilityInfos.length + ']');
+// for (var j = 0; j < data[i].abilityInfos.length; j++) {
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]name:" + data[i].abilityInfos[j].name);
+// console.info("neu====================index[" + i + "]abilityInfos[" + j + "]package:" + data[i].abilityInfos[j].package);
+// }
+// }
+//
+// }
+//
+// })
+//
+//
+//})
+//
+//
+//
+//
+//
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/List.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..07906156763525450ea806e647fcb355c81fb5d1
--- /dev/null
+++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsJstest6/src/main/js/test/List.test.js
@@ -0,0 +1,2 @@
+//require('./Context.test.js')
+//require('./AbilityManager.test.js')
\ No newline at end of file
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest1.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest1.hap
new file mode 100644
index 0000000000000000000000000000000000000000..f5672750077559bdf395ff2aa7e6398828f442c6
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest1.hap differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest2.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest2.hap
new file mode 100644
index 0000000000000000000000000000000000000000..7c6e4c706cf9c18ed0cf3882db3dd29f7b11cc09
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest2.hap differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest3.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest3.hap
new file mode 100644
index 0000000000000000000000000000000000000000..2bf659cd4b8eb60f39107446f74c94d58827f4b1
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest3.hap differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest4.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest4.hap
new file mode 100644
index 0000000000000000000000000000000000000000..d1e18b914fa3f7f65107d9102153096f02817bb1
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest4.hap differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest5.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest5.hap
new file mode 100644
index 0000000000000000000000000000000000000000..36fa72d6857cce25b78477a1bbc6dca6d4cb4e5d
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest5.hap differ
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest6.hap b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest6.hap
new file mode 100644
index 0000000000000000000000000000000000000000..74b6b9bb77ef96a57ca90e4c2b507129668896d7
Binary files /dev/null and b/appexecfwk/bundle_standard/bundlemanager/sceneProject/hap/bmsJstest6.hap differ