diff --git a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 020ce098a05d545ad5c36fe7314275df562b832c..a447767a22ad613f535ab34f909ca063ef75793b 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -56,12 +56,12 @@ describe('ActsAmsCallBackFifthScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamscallbackfifthscene' && data[i].topAbility.bundleName != 'com.example.actsamscallbackfifthscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -134,7 +134,7 @@ describe('ActsAmsCallBackFifthScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - abilitymanager.getAllRunningProcesses( + abilityManager.getAllRunningProcesses( (error, info) => { console.info('getAllRunningProcesses error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -175,7 +175,7 @@ describe('ActsAmsCallBackFifthScene', function () { it('Acts_Ams_test_7000', 0, async function (done) { var maxnum = 10; var flag = 1; - abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag, + abilityManager.queryRecentAbilityMissionInfos(maxnum, flag, (error, data) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + data.length + ']'); @@ -222,7 +222,7 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_6800', 0, async function (done) { var maxnum = 10; - abilitymanager.queryRunningAbilityMissionInfos(maxnum, + abilityManager.queryRunningAbilityMissionInfos(maxnum, (error, data) => { console.info('queryRunningAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + data.length + ']'); @@ -268,7 +268,7 @@ describe('ActsAmsCallBackFifthScene', function () { * @tc.desc : Get All Active Processes Info(by CallBack) */ it('Acts_Ams_test_9000', 0, async function (done) { - abilitymanager.getActiveProcessInfos( + abilityManager.getActiveProcessInfos( (error, info) => { console.info('getActiveProcessInfos error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -299,7 +299,7 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_10000', 0, async function (done) { var maxnum = 10; - abilitymanager.getActiveAbilityMissionInfos(maxnum, + abilityManager.getActiveAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -353,7 +353,7 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_11000', 0, async function (done) { var maxnum = 10; - abilitymanager.getPreviousAbilityMissionInfos(maxnum, + abilityManager.getPreviousAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -407,8 +407,8 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_7200', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMission(result[1].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMission(result[1].id, (error, info) => { console.info('Acts_Ams_test_7200 removeMission error.code \ ' + error.code + ',data [' + info + ']'); @@ -426,8 +426,8 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_7600', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.moveMissionToTop(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.moveMissionToTop(result[0].id, (error, info) => { console.info('Acts_Ams_test_7600 moveMissionToTop error.code \ ' + error.code + ',data [' + info + ']'); @@ -445,8 +445,8 @@ describe('ActsAmsCallBackFifthScene', function () { */ it('Acts_Ams_test_12000', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.deleteMissions([result[0].id], + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.deleteMissions([result[0].id], (error, info) => { console.info('Acts_Ams_test_12000 deleteMissions error.code \ ' + error.code + ',data [' + info + ']'); @@ -463,7 +463,7 @@ describe('ActsAmsCallBackFifthScene', function () { * @tc.desc : Kill Processes By BundleName(by CallBack) */ it('Acts_Ams_test_8000', 0, async function (done) { - abilitymanager.killProcessesByBundleName('com.ix.verify.io', + abilityManager.killProcessesByBundleName('com.ix.verify.io', (error, info) => { console.info('Acts_Ams_test_8000 killProcessesByBundleName error.code: \ ' + error.code + ',data [' + info + ']'); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 8b5f054fb887d28d7bae7e13284cefc8be8ac696..ef6213c489f1c1e757fe5b22e640429160f76a48 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit' var WeightReasonCode = { @@ -53,12 +53,12 @@ describe('ActsAmsCallBackFirstScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamscallbackfirstscene' && data[i].topAbility.bundleName != 'com.example.actsamscallbackfirstscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -105,7 +105,7 @@ describe('ActsAmsCallBackFirstScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - abilitymanager.getAllRunningProcesses( + abilityManager.getAllRunningProcesses( (error, info) => { console.info('getAllRunningProcesses error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -145,7 +145,7 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_0400', 0, async function (done) { var maxnum = 10; - abilitymanager.queryRunningAbilityMissionInfos(maxnum, + abilityManager.queryRunningAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -193,7 +193,7 @@ describe('ActsAmsCallBackFirstScene', function () { it('Acts_Ams_test_0600', 0, async function (done) { var maxnum = 10; var flag = 1; - abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag, + abilityManager.queryRecentAbilityMissionInfos(maxnum, flag, (error, info) => { console.info('queryRunningAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -239,7 +239,7 @@ describe('ActsAmsCallBackFirstScene', function () { * @tc.desc : Get All Active Processes Info(by CallBack) */ it('Acts_Ams_test_8600', 0, async function (done) { - abilitymanager.getActiveProcessInfos( + abilityManager.getActiveProcessInfos( (error, info) => { console.info('getActiveProcessInfos error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -270,7 +270,7 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_9600', 0, async function (done) { var maxnum = 10; - abilitymanager.getActiveAbilityMissionInfos(maxnum, + abilityManager.getActiveAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -324,7 +324,7 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_10600', 0, async function (done) { var maxnum = 10; - abilitymanager.getPreviousAbilityMissionInfos(maxnum, + abilityManager.getPreviousAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -378,9 +378,9 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_1400', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); var missionID = result[0].id + 100; - abilitymanager.removeMissions([missionID], + abilityManager.removeMissions([missionID], (error, info) => { console.info('Acts_Ams_test_1400 removeMissions error.code \ ' + error.code + ',data [' + info + ']'); @@ -397,8 +397,8 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_0800', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMission(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMission(result[0].id, (error, info) => { console.info('Acts_Ams_test_0800 removeMission error.code \ ' + error.code + ',data [' + info + ']'); @@ -414,7 +414,7 @@ describe('ActsAmsCallBackFirstScene', function () { * @tc.desc : Kill Processes By BundleName(by CallBack) */ it('Acts_Ams_test_1600', 0, async function (done) { - abilitymanager.killProcessesByBundleName('com.ix.simulate.feature', + abilityManager.killProcessesByBundleName('com.ix.simulate.feature', (error, info) => { console.info('Acts_Ams_test_1600 killProcessesByBundleName error.code: \ ' + error.code + ',data [' + info + ']'); @@ -432,8 +432,8 @@ describe('ActsAmsCallBackFirstScene', function () { */ it('Acts_Ams_test_1200', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.moveMissionToTop(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.moveMissionToTop(result[0].id, (error, info) => { console.info('Acts_Ams_test_1200 moveMissionToTop error.code \ ' + error.code + ',data [' + info + ']'); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 92db1b0993944e03c60ddf359871c946b2b81dc1..70a17b595ad757499f0c70776184158ee27a332a 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamscallbackfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -59,12 +59,12 @@ describe('ActsAmsCallBackFourthScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamscallbackfourthscene' && data[i].topAbility.bundleName != 'com.example.actsamscallbackfourthscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -150,7 +150,7 @@ describe('ActsAmsCallBackFourthScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - abilitymanager.getAllRunningProcesses( + abilityManager.getAllRunningProcesses( (error, info) => { console.info('getAllRunningProcesses error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -192,7 +192,7 @@ describe('ActsAmsCallBackFourthScene', function () { it('Acts_Ams_test_5400', 0, async function (done) { var maxnum = 100; var flag = 1; - abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag, + abilityManager.queryRecentAbilityMissionInfos(maxnum, flag, (error, data) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + data.length + ']'); @@ -249,7 +249,7 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_5200', 0, async function (done) { var maxnum = 30; - abilitymanager.queryRunningAbilityMissionInfos(maxnum, + abilityManager.queryRunningAbilityMissionInfos(maxnum, (error, data) => { console.info('queryRunningAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + data.length + ']'); @@ -305,7 +305,7 @@ describe('ActsAmsCallBackFourthScene', function () { * @tc.desc : Get All Active Processes Info(by CallBack) */ it('Acts_Ams_test_8900', 0, async function (done) { - abilitymanager.getActiveProcessInfos( + abilityManager.getActiveProcessInfos( (error, info) => { console.info('getActiveProcessInfos error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -336,7 +336,7 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_9900', 0, async function (done) { var maxnum = 10; - abilitymanager.getActiveAbilityMissionInfos(maxnum, + abilityManager.getActiveAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -390,7 +390,7 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_10900', 0, async function (done) { var maxnum = 10; - abilitymanager.getPreviousAbilityMissionInfos(maxnum, + abilityManager.getPreviousAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -444,8 +444,8 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_5600', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMission(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMission(result[0].id, (error, info) => { console.info('Acts_Ams_test_5600 removeMission error.code \ ' + error.code + ',data [' + info + ']'); @@ -463,8 +463,8 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_6000', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.moveMissionToTop(result[1].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.moveMissionToTop(result[1].id, (error, info) => { console.info('Acts_Ams_test_6000 moveMissionToTop error.code \ ' + error.code + ',data [' + info + ']'); @@ -481,7 +481,7 @@ describe('ActsAmsCallBackFourthScene', function () { * @tc.desc : Kill Processes By BundleName(by CallBack) */ it('Acts_Ams_test_6400', 0, async function (done) { - abilitymanager.killProcessesByBundleName('xxxxxxxxx', + abilityManager.killProcessesByBundleName('xxxxxxxxx', (error, info) => { console.info('Acts_Ams_test_6400 killProcessesByBundleName error.code \ ' + error.code + ',data [' + info + ']'); @@ -499,8 +499,8 @@ describe('ActsAmsCallBackFourthScene', function () { */ it('Acts_Ams_test_11900', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.deleteMissions([result[1].id, result[0].id], + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.deleteMissions([result[1].id, result[0].id], (error, info) => { console.info('Acts_Ams_test_11900 deleteMissions error.code: \ ' + error.code + ',data [' + info + ']'); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index feca8581b5a2b12a5ba09d9d2be3b11236852b7e..66b2c6ccbf0cd1496ad9070ce8d7e7dcbb63dbb1 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamscallbacksecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit' var WeightReasonCode = { @@ -55,12 +55,12 @@ describe('ActsAmsCallBackSecondScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamscallbacksecondscene' && data[i].topAbility.bundleName != 'com.example.actsamscallbacksecondscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -120,7 +120,7 @@ describe('ActsAmsCallBackSecondScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - abilitymanager.getAllRunningProcesses( + abilityManager.getAllRunningProcesses( (error, info) => { console.info('getAllRunningProcesses error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -160,7 +160,7 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_2000', 0, async function (done) { var maxnum = 20; - abilitymanager.queryRunningAbilityMissionInfos(maxnum, + abilityManager.queryRunningAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -208,7 +208,7 @@ describe('ActsAmsCallBackSecondScene', function () { it('Acts_Ams_test_2200', 0, async function (done) { var maxnum = 20; var flag = 1; - abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag, + abilityManager.queryRecentAbilityMissionInfos(maxnum, flag, (error, info) => { console.info('queryRunningAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -254,7 +254,7 @@ describe('ActsAmsCallBackSecondScene', function () { * @tc.desc : Get All Active Processes Info(by CallBack) */ it('Acts_Ams_test_8700', 0, async function (done) { - abilitymanager.getActiveProcessInfos( + abilityManager.getActiveProcessInfos( (error, info) => { console.info('getActiveProcessInfos error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -285,7 +285,7 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_9700', 0, async function (done) { var maxnum = 10; - abilitymanager.getActiveAbilityMissionInfos(maxnum, + abilityManager.getActiveAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -339,7 +339,7 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_10700', 0, async function (done) { var maxnum = 10; - abilitymanager.getPreviousAbilityMissionInfos(maxnum, + abilityManager.getPreviousAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -393,8 +393,8 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_2400', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMission(result[1].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMission(result[1].id, (error, info) => { console.info('Acts_Ams_test_2400 removeMission error.code \ ' + error.code + ',data [' + info + ']'); @@ -411,8 +411,8 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_2800', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.moveMissionToTop(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.moveMissionToTop(result[0].id, (error, info) => { console.info('Acts_Ams_test_2800 moveMissionToTop error.code \ ' + error.code + ',data [' + info + ']'); @@ -428,7 +428,7 @@ describe('ActsAmsCallBackSecondScene', function () { * @tc.desc : Kill Processes By BundleName(by CallBack) */ it('Acts_Ams_test_3200', 0, async function (done) { - abilitymanager.killProcessesByBundleName('XXXXXXXXXXXX', + abilityManager.killProcessesByBundleName('XXXXXXXXXXXX', (error, info) => { console.info('Acts_Ams_test_3200 killProcessesByBundleName error.code: \ ' + error.code + ',data [' + info + ']'); @@ -445,8 +445,8 @@ describe('ActsAmsCallBackSecondScene', function () { */ it('Acts_Ams_test_3000', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMissions([result[0].id], + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMissions([result[0].id], (error, info) => { console.info('Acts_Ams_test_3000 removeMissions error.code \ ' + error.code + ',data [' + info + ']'); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 5852c0c257170eb1c8d9c8915a208170c2985774..6ff3630b1da5727f5f1864f5580a94e85ee66099 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamscallbackthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -53,12 +53,12 @@ describe('ActsAmsCallBackThirdScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamscallbackthirdscene' && data[i].topAbility.bundleName != 'com.example.actsamscallbackthirdscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -118,7 +118,7 @@ describe('ActsAmsCallBackThirdScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - abilitymanager.getAllRunningProcesses( + abilityManager.getAllRunningProcesses( (error, info) => { console.info('getAllRunningProcesses error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -158,7 +158,7 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_3600', 0, async function (done) { var maxnum = 20; - abilitymanager.queryRunningAbilityMissionInfos(maxnum, + abilityManager.queryRunningAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -206,7 +206,7 @@ describe('ActsAmsCallBackThirdScene', function () { it('Acts_Ams_test_3800', 0, async function (done) { var maxnum = 20; var flag = 2; - abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag, + abilityManager.queryRecentAbilityMissionInfos(maxnum, flag, (error, info) => { console.info('queryRunningAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -252,7 +252,7 @@ describe('ActsAmsCallBackThirdScene', function () { * @tc.desc : Get All Active Processes Info(by CallBack) */ it('Acts_Ams_test_8800', 0, async function (done) { - abilitymanager.getActiveProcessInfos( + abilityManager.getActiveProcessInfos( (error, info) => { console.info('getActiveProcessInfos error.code \ ' + error.code + ', data length [' + info.length + ']'); @@ -283,7 +283,7 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_9800', 0, async function (done) { var maxnum = 10; - abilitymanager.getActiveAbilityMissionInfos(maxnum, + abilityManager.getActiveAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -337,7 +337,7 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_10800', 0, async function (done) { var maxnum = 10; - abilitymanager.getPreviousAbilityMissionInfos(maxnum, + abilityManager.getPreviousAbilityMissionInfos(maxnum, (error, info) => { console.info('queryRecentAbilityMissionInfos error.code : \ ' + error.code + ',data length [' + info.length + ']'); @@ -391,8 +391,8 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_4000', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.removeMission(result[1].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.removeMission(result[1].id, (error, info) => { console.info('Acts_Ams_test_4000 removeMission error.code \ ' + error.code + ',data [' + info + ']'); @@ -409,8 +409,8 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_4400', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.moveMissionToTop(result[0].id, + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.moveMissionToTop(result[0].id, (error, info) => { console.info('Acts_Ams_test_4400 moveMissionToTop error.code \ ' + error.code + ',data [' + info + ']'); @@ -427,8 +427,8 @@ describe('ActsAmsCallBackThirdScene', function () { */ it('Acts_Ams_test_11800', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - abilitymanager.deleteMissions([result[0].id], + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + abilityManager.deleteMissions([result[0].id], (error, info) => { console.info('Acts_Ams_test_11800 deleteMissions error.code \ ' + error.code + ',data [' + info + ']'); @@ -444,7 +444,7 @@ describe('ActsAmsCallBackThirdScene', function () { * @tc.desc : Kill Processes By BundleName(by CallBack) */ it('Acts_Ams_test_4800', 0, async function (done) { - abilitymanager.killProcessesByBundleName('xxxxxxxxxxx', + abilityManager.killProcessesByBundleName('xxxxxxxxxxx', (error, info) => { console.info('Acts_Ams_test_4800 killProcessesByBundleName error.code: \ ' + error.code + ',data [' + info + ']'); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index d88585379a1b438c63bf3df3a4f63e5dd8816635..ed497243e7bdabc786dafcb295a7e0e17ff689f8 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestfifthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -56,12 +56,12 @@ describe('ActsAmsTestFifthScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamstestfifthscene' && data[i].topAbility.bundleName != 'com.example.actsamstestfifthscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -149,7 +149,7 @@ describe('ActsAmsTestFifthScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - var info = await abilitymanager.getAllRunningProcesses(); + var info = await abilityManager.getAllRunningProcesses(); console.info('getAllRunningProcesses data length [' + info.length + ']'); console.info('Acts_Ams_test_6500 getAllRunningProcesses JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); @@ -186,13 +186,13 @@ describe('ActsAmsTestFifthScene', function () { */ it('Acts_Ams_test_7500', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.moveMissionToTop(result[1].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.moveMissionToTop(result[1].id); console.info('Acts_Ams_test_7500 moveMissionToTop data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(0); sleep(1000); - var ret = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var ret = await abilityManager.queryRunningAbilityMissionInfos(maxnum); expect(result[1].baseAbility.bundleName).assertEqual(ret[0].baseAbility.bundleName); expect(result[1].topAbility.bundleName).assertEqual(ret[0].topAbility.bundleName); done(); @@ -207,7 +207,7 @@ describe('ActsAmsTestFifthScene', function () { it('Acts_Ams_test_6900', 0, async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.info(' queryRecentAbilityMissionInfos data length [' + data.length + ']'); console.info('Acts_Ams_test_6900 queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); @@ -249,7 +249,7 @@ describe('ActsAmsTestFifthScene', function () { * @tc.desc : Get All Active Processes Info(by Promise) */ it('Acts_Ams_test_8500', 0, async function (done) { - var info = await abilitymanager.getActiveProcessInfos(); + var info = await abilityManager.getActiveProcessInfos(); console.info('Acts_Ams_test_8500 getActiveProcessInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -276,7 +276,7 @@ describe('ActsAmsTestFifthScene', function () { */ it('Acts_Ams_test_9500', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getActiveAbilityMissionInfos(upperLimit); + var data = await abilityManager.getActiveAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_9500 getActiveAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -325,7 +325,7 @@ describe('ActsAmsTestFifthScene', function () { */ it('Acts_Ams_test_10500', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getPreviousAbilityMissionInfos(upperLimit); + var data = await abilityManager.getPreviousAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_10500 getPreviousAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -374,7 +374,7 @@ describe('ActsAmsTestFifthScene', function () { */ it('Acts_Ams_test_6700', 0, async function (done) { var maxnum = 10; - var data = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var data = await abilityManager.queryRunningAbilityMissionInfos(maxnum); console.info('queryRunningAbilityMissionInfos data length [' + data.length + ']'); console.info('Acts_Ams_test_6700 queryRunningAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); @@ -417,8 +417,8 @@ describe('ActsAmsTestFifthScene', function () { */ it('Acts_Ams_test_11500', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.deleteMissions([result[1].id]); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.deleteMissions([result[1].id]); console.info('Acts_Ams_test_11500 deleteMissions data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -431,7 +431,7 @@ describe('ActsAmsTestFifthScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_7900', 0, async function (done) { - var info = await abilitymanager.killProcessesByBundleName('com.ix.verify.io'); + var info = await abilityManager.killProcessesByBundleName('com.ix.verify.io'); console.info('Acts_Ams_test_7900 killProcessesByBundleName data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(0); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 710bad2024d435682a3bb8cde86d23ac0a8509ce..a6a77dd6dba0f6c0cb4907a774ee6e90918d0021 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestfirstscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -53,12 +53,12 @@ describe('ActsAmsTestFirstScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamstestfirstscene' && data[i].topAbility.bundleName != 'com.example.actsamstestfirstscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -110,7 +110,7 @@ describe('ActsAmsTestFirstScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - var info = await abilitymanager.getAllRunningProcesses(); + var info = await abilityManager.getAllRunningProcesses(); console.info('Acts_Ams_test_0100 getAllRunningProcesses JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -146,8 +146,8 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_1100', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.moveMissionToTop(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.moveMissionToTop(result[0].id); console.info('Acts_Ams_test_1100 moveMissionToTop data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -161,7 +161,7 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_0300', 0, async function (done) { var maxnum = 10; - var data = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var data = await abilityManager.queryRunningAbilityMissionInfos(maxnum); console.info('Acts_Ams_test_0300 queryRunningAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(2); @@ -205,7 +205,7 @@ describe('ActsAmsTestFirstScene', function () { it('Acts_Ams_test_0500', 0, async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.info('Acts_Ams_test_0500 queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(2); @@ -246,7 +246,7 @@ describe('ActsAmsTestFirstScene', function () { * @tc.desc : Get All Active Processes Info(by Promise) */ it('Acts_Ams_test_8100', 0, async function (done) { - var info = await abilitymanager.getActiveProcessInfos(); + var info = await abilityManager.getActiveProcessInfos(); console.info('Acts_Ams_test_8100 getActiveProcessInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -273,7 +273,7 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_9100', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getActiveAbilityMissionInfos(upperLimit); + var data = await abilityManager.getActiveAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_9100 getActiveAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(2); @@ -322,7 +322,7 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_10100', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getPreviousAbilityMissionInfos(upperLimit); + var data = await abilityManager.getPreviousAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_10100 getPreviousAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(2); @@ -371,8 +371,8 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_0700', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMission(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMission(result[0].id); console.info('Acts_Ams_test_0700 removeMission data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -386,10 +386,10 @@ describe('ActsAmsTestFirstScene', function () { */ it('Acts_Ams_test_11100', 0, async function (done) { var maxnum = 10; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); expect(result.length).assertEqual(1); var missionID = result[0].id + 1; - var info = await abilitymanager.deleteMissions([missionID]); + var info = await abilityManager.deleteMissions([missionID]); console.info('Acts_Ams_test_11100 deleteMissions data [' + info + ']'); expect(info).assertLarger(0); done(); @@ -402,7 +402,7 @@ describe('ActsAmsTestFirstScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_1500', 0, async function (done) { - var info = await abilitymanager.killProcessesByBundleName('com.ix.simulate.feature'); + var info = await abilityManager.killProcessesByBundleName('com.ix.simulate.feature'); console.info('Acts_Ams_test_1500 killProcessesByBundleName data [' + info + ']'); expect(info).assertEqual(0); done(); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 04bebf6f775dc906461a37be92a7f562ed4f0f77..7ca0d328296698e38b3eec0089c07242acc1ffeb 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestfourthscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -58,12 +58,12 @@ describe('ActsAmsTestFourthScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamstestfourthscene' && data[i].topAbility.bundleName != 'com.example.actsamstestfourthscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -169,7 +169,7 @@ describe('ActsAmsTestFourthScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - var info = await abilitymanager.getAllRunningProcesses(); + var info = await abilityManager.getAllRunningProcesses(); console.info('getAllRunningProcesses data length [' + info.length + ']'); console.info('Acts_Ams_test_4900 getAllRunningProcesses JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); @@ -205,7 +205,7 @@ describe('ActsAmsTestFourthScene', function () { * @tc.desc : Get All Active Processes Info(by Promise) */ it('Acts_Ams_test_8400', 0, async function (done) { - var info = await abilitymanager.getActiveProcessInfos(); + var info = await abilityManager.getActiveProcessInfos(); console.info('Acts_Ams_test_8400 getActiveProcessInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -233,7 +233,7 @@ describe('ActsAmsTestFourthScene', function () { it('Acts_Ams_test_5300', 0, async function (done) { var maxnum = 100; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.info(' queryRecentAbilityMissionInfos data length [' + data.length + ']'); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(4); @@ -286,7 +286,7 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_5100', 0, async function (done) { var maxnum = 30; - var data = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var data = await abilityManager.queryRunningAbilityMissionInfos(maxnum); console.info('queryRunningAbilityMissionInfos data length [' + data.length + ']'); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(4); @@ -339,7 +339,7 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_9400', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getActiveAbilityMissionInfos(upperLimit); + var data = await abilityManager.getActiveAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_9400 getActiveAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(4); @@ -388,7 +388,7 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_10400', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getPreviousAbilityMissionInfos(upperLimit); + var data = await abilityManager.getPreviousAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_10400 getPreviousAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(4); @@ -437,8 +437,8 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_5500', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMission(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMission(result[0].id); console.info('Acts_Ams_test_5500 removeMission data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(0); @@ -453,8 +453,8 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_5900', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.moveMissionToTop(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.moveMissionToTop(result[0].id); console.info('Acts_Ams_test_5900 moveMissionToTop data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(0); @@ -469,8 +469,8 @@ describe('ActsAmsTestFourthScene', function () { */ it('Acts_Ams_test_6100', 0, async function (done) { var maxnum = 30; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMissions([result[0].id, result[1].id]); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMissions([result[0].id, result[1].id]); console.info('Acts_Ams_test_6100 removeMissions data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(0); @@ -484,7 +484,7 @@ describe('ActsAmsTestFourthScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_6300', 0, async function (done) { - var info = await abilitymanager.killProcessesByBundleName('xxxxxxxxxxxx'); + var info = await abilityManager.killProcessesByBundleName('xxxxxxxxxxxx'); console.info('Acts_Ams_test_6300 killProcessesByBundleName data [' + info + ']'); expect(typeof (info)).assertEqual("number"); expect(info).assertEqual(2097215); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index c9ed7da1a49351846f868780cb30f0c8965c1adf..5a52dbb6cbcb8c66416042b3722ac4c177ff5604 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestsecondscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -55,12 +55,12 @@ describe('ActsAmsTestSecondScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamstestsecondscene' && data[i].topAbility.bundleName != 'com.example.actsamstestsecondscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -130,7 +130,7 @@ describe('ActsAmsTestSecondScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - var info = await abilitymanager.getAllRunningProcesses(); + var info = await abilityManager.getAllRunningProcesses(); console.info('Acts_Ams_test_1700 getAllRunningProcesses JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -166,8 +166,8 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_2700', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.moveMissionToTop(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.moveMissionToTop(result[0].id); console.info('Acts_Ams_test_2700 moveMissionToTop data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -181,7 +181,7 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_1900', 0, async function (done) { var maxnum = 20; - var data = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var data = await abilityManager.queryRunningAbilityMissionInfos(maxnum); console.info('queryRunningAbilityMissionInfos data length [' + data.length + ']'); console.info('Acts_Ams_test_1900 queryRunningAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); @@ -225,7 +225,7 @@ describe('ActsAmsTestSecondScene', function () { it('Acts_Ams_test_2100', 0, async function (done) { var maxnum = 20; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.info(' queryRecentAbilityMissionInfos data length [' + data.length + ']'); console.info('Acts_Ams_test_2100 queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); @@ -267,7 +267,7 @@ describe('ActsAmsTestSecondScene', function () { * @tc.desc : Get All Active Processes Info(by Promise) */ it('Acts_Ams_test_8200', 0, async function (done) { - var info = await abilitymanager.getActiveProcessInfos(); + var info = await abilityManager.getActiveProcessInfos(); console.info('Acts_Ams_test_8200 getActiveProcessInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -294,7 +294,7 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_9200', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getActiveAbilityMissionInfos(upperLimit); + var data = await abilityManager.getActiveAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_9200 getActiveAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -343,7 +343,7 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_10200', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getPreviousAbilityMissionInfos(upperLimit); + var data = await abilityManager.getPreviousAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_10200 getPreviousAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -392,8 +392,8 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_11200', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.deleteMissions([result[0].id]); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.deleteMissions([result[0].id]); console.info('Acts_Ams_test_11200 deleteMissions data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -407,8 +407,8 @@ describe('ActsAmsTestSecondScene', function () { */ it('Acts_Ams_test_2300', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMission(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMission(result[0].id); console.info('Acts_Ams_test_2300 removeMission data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -421,7 +421,7 @@ describe('ActsAmsTestSecondScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_3100', 0, async function (done) { - var info = await abilitymanager.killProcessesByBundleName('XXXXXXXXXXXX'); + var info = await abilityManager.killProcessesByBundleName('XXXXXXXXXXXX'); console.info('Acts_Ams_test_3100 killProcessesByBundleName data [' + info + ']'); expect(info).assertEqual(2097215); done(); diff --git a/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js index 8ea468226fed9fbed83a689c874a4ffe51e63040..6dd0bdb08376a0e48c72be6b145c1e2be876ce18 100644 --- a/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/actsamstestthirdscene/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var WeightReasonCode = { @@ -55,12 +55,12 @@ describe('ActsAmsTestThirdScene', function () { beforeAll(async function (done) { var maxnum = 10; var flag = 1; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { if (data[i].baseAbility.bundleName != 'com.example.actsamstestthirdscene' && data[i].topAbility.bundleName != 'com.example.actsamstestthirdscene') { - var info = abilitymanager.removeMission(data[i].id); + var info = abilityManager.removeMission(data[i].id); console.log(' removeMission data [' + info + ']'); } } @@ -130,7 +130,7 @@ describe('ActsAmsTestThirdScene', function () { console.info("sleep begin"); sleep(5000); console.info("sleep end"); - var info = await abilitymanager.getAllRunningProcesses(); + var info = await abilityManager.getAllRunningProcesses(); console.info('Acts_Ams_test_3300 getAllRunningProcesses JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -166,7 +166,7 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_3500', 0, async function (done) { var maxnum = 20; - var data = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); + var data = await abilityManager.queryRunningAbilityMissionInfos(maxnum); console.info('Acts_Ams_test_3500 queryRunningAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -209,7 +209,7 @@ describe('ActsAmsTestThirdScene', function () { it('Acts_Ams_test_3700', 0, async function (done) { var maxnum = 20; var flag = 2; - var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); + var data = await abilityManager.queryRecentAbilityMissionInfos(maxnum, flag); console.info('Acts_Ams_test_3700 queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -250,7 +250,7 @@ describe('ActsAmsTestThirdScene', function () { * @tc.desc : Get All Active Processes Info(by Promise) */ it('Acts_Ams_test_8300', 0, async function (done) { - var info = await abilitymanager.getActiveProcessInfos(); + var info = await abilityManager.getActiveProcessInfos(); console.info('Acts_Ams_test_8300 getActiveProcessInfos JSON String: ' + JSON.stringify(info)); expect(Array.isArray(info)).assertEqual(true); expect(info.length).assertLarger(0); @@ -277,7 +277,7 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_9300', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getActiveAbilityMissionInfos(upperLimit); + var data = await abilityManager.getActiveAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_9300 getActiveAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -326,7 +326,7 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_10300', 0, async function (done) { var upperLimit = 20; - var data = await abilitymanager.getPreviousAbilityMissionInfos(upperLimit); + var data = await abilityManager.getPreviousAbilityMissionInfos(upperLimit); console.info('Acts_Ams_test_10300 getPreviousAbilityMissionInfos data ' + JSON.stringify(data)); expect(Array.isArray(data)).assertEqual(true); expect(data.length).assertEqual(3); @@ -375,8 +375,8 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_3900', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMission(result[1].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMission(result[1].id); console.info('Acts_Ams_test_3900 removeMission data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -390,8 +390,8 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_4300', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.moveMissionToTop(result[0].id); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.moveMissionToTop(result[0].id); console.info('Acts_Ams_test_4300 moveMissionToTop data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -405,8 +405,8 @@ describe('ActsAmsTestThirdScene', function () { */ it('Acts_Ams_test_4500', 0, async function (done) { var maxnum = 20; - var result = await abilitymanager.queryRunningAbilityMissionInfos(maxnum); - var info = await abilitymanager.removeMissions([result[0].id]); + var result = await abilityManager.queryRunningAbilityMissionInfos(maxnum); + var info = await abilityManager.removeMissions([result[0].id]); console.info('Acts_Ams_test_4500 removeMissions data [' + info + ']'); expect(info).assertEqual(0); done(); @@ -419,7 +419,7 @@ describe('ActsAmsTestThirdScene', function () { * @tc.desc : Kill Processes By BundleName(by Promise) */ it('Acts_Ams_test_4700', 0, async function (done) { - var info = await abilitymanager.killProcessesByBundleName('XXXXXXXX'); + var info = await abilityManager.killProcessesByBundleName('XXXXXXXX'); console.info('Acts_Ams_test_4700 killProcessesByBundleName data [' + info + ']'); expect(info).assertEqual(2097215); done(); diff --git a/aafwk/aafwk_standard/abilitymanager/clearmissionscallback/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/clearmissionscallback/src/main/js/test/MangerAbilityJsunit.test.js index 2f03d90ffb65985dc27ebf2cfde7e2c99893eef9..37ddae73e5795969c05b96599c8f352cce179426 100644 --- a/aafwk/aafwk_standard/abilitymanager/clearmissionscallback/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/clearmissionscallback/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('ActsAmsCallBackSixth Scene', function () { @@ -51,7 +51,7 @@ describe('ActsAmsCallBackSixth Scene', function () { * @tc.desc : Clear Missions(by CallBack) */ it('Acts_Ams_test_12200', 0, async function (done) { - abilitymanager.clearMissions( + abilityManager.clearMissions( (error,info) => { console.info('Acts_Ams_test_12200 clearMissions error.code ' + error.code + ',data [' + info + ']' ); expect(typeof(info)).assertEqual("number"); diff --git a/aafwk/aafwk_standard/abilitymanager/clearmissionspromise/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/abilitymanager/clearmissionspromise/src/main/js/test/MangerAbilityJsunit.test.js index 209adafcfb4068e11b97dfd885450a39a4581f64..7e9feae45a3ba88089459a283d5423fc3eb962b3 100644 --- a/aafwk/aafwk_standard/abilitymanager/clearmissionspromise/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/abilitymanager/clearmissionspromise/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import abilityManager from '@ohos.app.abilityManager' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('ActsAmsCallBackSixth Scene', function () { @@ -51,7 +51,7 @@ describe('ActsAmsCallBackSixth Scene', function () { * @tc.desc : Clear Missions(by Promise) */ it('Acts_Ams_test_12100', 0, async function (done) { - var info = await abilitymanager.clearMissions(); + var info = await abilityManager.clearMissions(); console.info('Acts_Ams_test_12100 clearMissions data [' + info + ']'); expect(typeof(info)).assertEqual("number"); expect(info).assertEqual(0); diff --git a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTest/entry/src/main/js/test/amsMissionSnapshotTest.test.js b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTest/entry/src/main/js/test/amsMissionSnapshotTest.test.js index 3b210c32904a18fc3fec620bfd0e31350bd2bd97..c8f8c33e1805f6e802e5c1c60d776df4e8ff728c 100644 --- a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTest/entry/src/main/js/test/amsMissionSnapshotTest.test.js +++ b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTest/entry/src/main/js/test/amsMissionSnapshotTest.test.js @@ -13,8 +13,8 @@ * limitations under the License. */ import abilityManager from '@ohos.app.abilityManager' -import featureAbility from '@ohos.ability.featureability' -import commonEvent from '@ohos.commonevent' +import featureAbility from '@ohos.ability.featureAbility' +import commonEvent from '@ohos.commonEvent' import image from '@ohos.multimedia.image' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingleton/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingleton/entry/src/main/js/default/pages/index/index.js index bb2b80b9f7548a5f45c22bb0a769782c778e964d..fdea7b5a447152e19917f02cb463540cb4c55c4b 100644 --- a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingleton/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingleton/entry/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' export default { data: { title: "" diff --git a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingletonS/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingletonS/entry/src/main/js/default/pages/index/index.js index 336d0e28dab4ddbeb10f46fa1c745e75456e9f6c..1e2efcc970d6cccf6a4ed0e842852a478255c6b3 100644 --- a/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingletonS/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsabilitymanager/amsMissionSnapshotTestSingletonS/entry/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' export default { data: { title: "" diff --git a/aafwk/aafwk_standard/amsdatauriutils/entry/src/main/js/test/DataUriUtilsJsSt.test.js b/aafwk/aafwk_standard/amsdatauriutils/entry/src/main/js/test/DataUriUtilsJsSt.test.js index 10abdceea0c6eb016082c7cb9f882bdcc9528cda..086d084961002d3abdd2a35e246a62006253914c 100644 --- a/aafwk/aafwk_standard/amsdatauriutils/entry/src/main/js/test/DataUriUtilsJsSt.test.js +++ b/aafwk/aafwk_standard/amsdatauriutils/entry/src/main/js/test/DataUriUtilsJsSt.test.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import dataUriUtils from '@ohos.ability.datauriutils' +import dataUriUtils from '@ohos.ability.dataUriUtils' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('ActsDataUriUtilsTest', function () { diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage/entry/src/main/js/test/MangerAbilityJsunit.test.js index bef9e1611a20a0ca4298e94c75102f5dc24c3462..5ef2512176b341caa341abb2e283c251147cdc11 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' describe('ActsAmsMultiPageApp', function () { console.info('----ActsAmsMultiPageApp----'); diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnectService/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnectService/entry/src/main/js/test/MangerAbilityJsunit.test.js index 013956da296e94bab7f28690f0ceed903d69f1b6..848f2783e0000db6b9bd4d3b148fa89fcb5255e9 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnectService/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnectService/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -13,9 +13,9 @@ * limitations under the License. */ import bundle from "@ohos.bundle" -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' describe('ActsAmsMultiPageAppConnectService', function () { diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnect_Service/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnect_Service/entry/src/main/js/default/pages/index/index.js index 3a7359c993fb9784a0ff1e40d534577d81f010e7..32ca7875a686bd6740a6cb1bce81fb4ff3b719ec 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnect_Service/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPageConnect_Service/entry/src/main/js/default/pages/index/index.js @@ -15,8 +15,8 @@ import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index' import rpc from "@ohos.rpc" -import commonEvent from '@ohos.commonevent' -import particleAbility from '@ohos.ability.particleability' +import commonEvent from '@ohos.commoneEvent' +import particleAbility from '@ohos.ability.particleAbility' import bundle from "@ohos.bundle" diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission/entry/src/main/js/test/MangerAbilityJsunit.test.js index 08ee9e4a2513298def047824fd0e906dd77576e9..c1949a6a5b04fea8a86cea9f41236376776711a4 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' var subscriberInfoStartAbility = { events: ["ACTS_StartAbility_CommonEvent"], diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission_Page/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission_Page/entry/src/main/js/default/pages/index/index.js index ea89742ed4a4a54e043d870d5d68856d933738a3..8f573a526f1bed12c3411f2934c2ac99b839e00a 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission_Page/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPagePermission_Page/entry/src/main/js/default/pages/index/index.js @@ -17,7 +17,7 @@ import {Core, ExpectExtend} from 'deccjsunit/index' const injectRef = Object.getPrototypeOf(global) || global injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' export default { data: { diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_PSS/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_PSS/entry/src/main/js/test/MangerAbilityJsunit.test.js index 959558bca1d3efa9d5a8d04f96d44c346ba47406..53e5933589ffc1093d083a6200ef23466c656b64 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_PSS/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_PSS/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' describe('ActsAmsMultiPageAppS', function () { console.info('----ActsAmsMultiPageAppS----'); diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Page/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Page/entry/src/main/js/test/MangerAbilityJsunit.test.js index d933cc3e5fd098b117c83f069ff7c9d00e9cf4ff..ab69c21791fd4c822c6fc04683947b7a65f8fb6a 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Page/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Page/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import bundle from "@ohos.bundle" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Service/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Service/entry/src/main/js/default/pages/index/index.js index 02972edf482a5f217d67d58e7d4fa2a8ada19cd1..3a64e493202f19e6d219bb6f1db7bcbc273d2377 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Service/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppPage_Service/entry/src/main/js/default/pages/index/index.js @@ -15,8 +15,8 @@ import file from '@system.file' import {Core, ExpectExtend} from 'deccjsunit/index' import rpc from "@ohos.rpc" -import commonEvent from '@ohos.commonevent' -import particleAbility from '@ohos.ability.particleability' +import commonEvent from '@ohos.commonEvent' +import particleAbility from '@ohos.ability.particleAbility' import bundle from "@ohos.bundle" let mMyStub; diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline/entry/src/main/js/test/MangerAbilityJsunit.test.js index 0729cadda047e2b349fa190d05693d1aa60a99ea..271de92713563f1a1ef837eac804ef89669bd529 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import commonEvent from "@ohos.commonevent" +import featureAbility from '@ohos.ability.featureAbility' +import commonEvent from "@ohos.commonEvent" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var subscriberInfoStartAbility = { @@ -73,7 +73,7 @@ describe('ActsAmsMultiAppSimultaneousOnline', function () { commonEvent.unsubscribe(subscriber, unSubscribeCallback) } } - var processInfos = await abilitymanager.getActiveProcessInfos(); + var processInfos = await abilityManager.getActiveProcessInfos(); var cloneFlag = 0; var selfFlag = 0; for (var i = 0; i < processInfos.length; i++) { diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline_test/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline_test/entry/src/main/js/test/MangerAbilityJsunit.test.js index 30aeba7a626c7793e994f0456eb28a3e25420975..47650de19b84f67ef9c208e34c578fdfb3e163ac 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline_test/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppSimultaneousOnline_test/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import commonEvent from '@ohos.commonevent' +import featureAbility from '@ohos.ability.featureAbility' +import commonEvent from '@ohos.commonEvent' import bundle from "@ohos.bundle" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination/entry/src/main/js/test/MangerAbilityJsunit.test.js index d02fe6feadf73d7d59bd460202030358708988c2..fa7a533ecd64f7ab82d093214776fabc49ae68d6 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import commonEvent from "@ohos.commonevent" -import abilitymanager from '@ohos.app.abilitymanager' +import featureAbility from '@ohos.ability.featureAbility' +import commonEvent from "@ohos.commonEvent" +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' var subscriberInfoStartAbility = { @@ -78,7 +78,7 @@ describe('ActsAmsMultiAppTermination', function () { } } sleep(3000); - var processInfos = await abilitymanager.getActiveProcessInfos(); + var processInfos = await abilityManager.getActiveProcessInfos(); var cloneFlag = 0; var selfFlag = 0; for (var i = 0; i < processInfos.length; i++) { diff --git a/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination_test/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination_test/entry/src/main/js/test/MangerAbilityJsunit.test.js index 4ffc6e989692914c9817a44eab1eb363864dabdd..612fab5c048367eb5ffb535dce76e577db8da83d 100644 --- a/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination_test/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/MultiAppTermination_test/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' -import commonEvent from '@ohos.commonevent' +import featureAbility from '@ohos.ability.featureAbility' +import commonEvent from '@ohos.commonEvent' import bundle from "@ohos.bundle" import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultiapppageexecutor/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/amsmultiapppageexecutor/src/main/js/default/pages/index/index.js index f7aacfa3239a9ea008a239871310a8388a3f7f09..028b1e5663121f149b96e308c9c05c8b5edcdf11 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultiapppageexecutor/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultiapppageexecutor/src/main/js/default/pages/index/index.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import bundle from "@ohos.bundle" -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' const injectRef = Object.getPrototypeOf(global) || global injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultiappserviceexecutor/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/amsmultiappserviceexecutor/src/main/js/default/pages/index/index.js index 63dc8185cf8f79c7779ab23a015d53b9e4a33be5..30e3f4d3e5a47ee88210bef92f9db853b61ca888 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultiappserviceexecutor/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultiappserviceexecutor/src/main/js/default/pages/index/index.js @@ -13,9 +13,9 @@ * limitations under the License. */ import rpc from "@ohos.rpc" -import particleAbility from '@ohos.ability.particleability' +import particleAbility from '@ohos.ability.particleAbility' import bundle from "@ohos.bundle" -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' const injectRef = Object.getPrototypeOf(global) || global injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultiappservicestarter/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/amsmultiapp/amsmultiappservicestarter/src/main/js/default/pages/index/index.js index b81007c51ea677752e59c7b62e86bf1fa3562c81..2e8ee3a4d30f8ef03be41ea5befa9fca8f93d6ff 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultiappservicestarter/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultiappservicestarter/src/main/js/default/pages/index/index.js @@ -13,8 +13,8 @@ * limitations under the License. */ import rpc from "@ohos.rpc" -import particleAbility from '@ohos.ability.particleability' -import commonEvent from '@ohos.commonevent' +import particleAbility from '@ohos.ability.particleAbility' +import commonEvent from '@ohos.commonEvent' const injectRef = Object.getPrototypeOf(global) || global injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultiapptester/entry/src/main/js/test/MangerAbilityJsunit.test.js b/aafwk/aafwk_standard/amsmultiapp/amsmultiapptester/entry/src/main/js/test/MangerAbilityJsunit.test.js index 437a300fd097384d83ffd51d955fcc4f639ef6a1..873bba672ab9df5a85a31333966503aa448756d3 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultiapptester/entry/src/main/js/test/MangerAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultiapptester/entry/src/main/js/test/MangerAbilityJsunit.test.js @@ -12,9 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' const START_ABILITY_TIMEOUT = 4000; var subscriberInfoMultiApp0700 = { diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityclone/entry/src/main/js/test/MultiDataAbilityJsSt.test.js b/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityclone/entry/src/main/js/test/MultiDataAbilityJsSt.test.js index 1d2a55ef560737a236679227b05e299d1d75ddd4..bc321d428f2f384bef9a0a81912f3ad5162588c3 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityclone/entry/src/main/js/test/MultiDataAbilityJsSt.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityclone/entry/src/main/js/test/MultiDataAbilityJsSt.test.js @@ -13,7 +13,7 @@ * limitations under the License. */ import featureAbility from '@ohos.ability.featureAbility' -import abilitymanager from '@ohos.app.abilitymanager' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' const MIN_CLONEUID = 20000000; @@ -50,7 +50,7 @@ describe('ActsDataAbilityHelperTest', function () { console.debug("=AMS_MultiApp_0500 dataAbilityUri====>" + dataAbilityUri) var cloneFlag = 0; var selfFlag = 0; - var processInfos = await abilitymanager.getActiveProcessInfos(); + var processInfos = await abilityManager.getActiveProcessInfos(); console.info('ActsAmsMultiAppTermination processInfos length' + processInfos.length); for (var i = 0; i < processInfos.length; i++) { console.info('ActsAmsMultiAppTermination process name ' + processInfos[i].processName); diff --git a/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityself/entry/src/main/js/test/MultiDataAbilityJsSt.test.js b/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityself/entry/src/main/js/test/MultiDataAbilityJsSt.test.js index 5630ad9f43dc38530928c345e7bc79322b205cd0..fa5c85f8cda348b5397d88c57b81101148560c25 100644 --- a/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityself/entry/src/main/js/test/MultiDataAbilityJsSt.test.js +++ b/aafwk/aafwk_standard/amsmultiapp/amsmultidataabilityself/entry/src/main/js/test/MultiDataAbilityJsSt.test.js @@ -13,7 +13,7 @@ * limitations under the License. */ import featureAbility from '@ohos.ability.featureAbility' -import abilitymanager from '@ohos.app.abilitymanager' +import abilityManager from '@ohos.app.abilityManager' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' const MIN_CLONEUID = 20000000; @@ -50,7 +50,7 @@ describe('ActsDataAbilityHelperTest', function () { console.debug("=AMS_MultiApp_0400 dataAbilityUri====>" + dataAbilityUri) var cloneFlag = 0; var selfFlag = 0; - var processInfos = await abilitymanager.getActiveProcessInfos(); + var processInfos = await abilityManager.getActiveProcessInfos(); console.info('ActsAmsMultiAppTermination processInfos length' + processInfos.length); for (var i = 0; i < processInfos.length; i++) { console.info('ActsAmsMultiAppTermination process name ' + processInfos[i].processName); diff --git a/aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js b/aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js index 5058228304675eb940319c000396b3d8d3e30a42..8747b074aeb4baef1f667c1e3aeaf0aebe9df428 100644 --- a/aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js +++ b/aafwk/aafwk_standard/context/actscontexttest/entry/src/main/js/test/ContextJsunit.test.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import bundle from '@ohos.bundle' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js index 0b347e4b74517223d8e868249da0ddd449ecabc1..d4d234cc0f79503334b70130c0f68db6c9097ccf 100755 --- a/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js +++ b/aafwk/aafwk_standard/featureability/actsfeatureabilitytest/entry/src/main/js/test/FeatureAbilityJsunit.test.js @@ -15,7 +15,7 @@ import featureAbility from '@ohos.ability.featureAbility' import wantconstant from '@ohos.ability.wantConstant' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import wantConstant from '@ohos.ability.wantConstant' const START_ABILITY_TIMEOUT = 4000; diff --git a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultemptytest/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultemptytest/src/main/js/default/pages/index/index.js index 891d4d9d9b1e6f8925b1587a3a99ed40fa0ebdc1..64c13a2899ab33d7769521bede546877da338e3f 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultemptytest/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultemptytest/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global diff --git a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultpromiseparameterstest/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultpromiseparameterstest/src/main/js/default/pages/index/index.js index d84b9fb6e7dc5998192a1f6b380bdff483c83277..8a99d9da54379389fc2f72acd0f2bbddf21a64e6 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultpromiseparameterstest/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresultpromiseparameterstest/src/main/js/default/pages/index/index.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import commonevent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global @@ -30,7 +30,7 @@ export default { this.title = this.$t('strings.world'); }, async onShow() { - commonevent.publish("ACTS_FinishWithResult_0100_CommonEvent", PublishCallBack); + commonEvent.publish("ACTS_FinishWithResult_0100_CommonEvent", PublishCallBack); var promise = await featureAbility.terminateSelfWithResult( { resultCode: 1, diff --git a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresulttest/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresulttest/src/main/js/default/pages/index/index.js index c37fe74e7dc2143846dfb619dd71805f909d3cab..b1dff9ac634e59c0988e737264c56e8a9ce1ec57 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/finishwithresulttest/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/finishwithresulttest/src/main/js/default/pages/index/index.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global diff --git a/aafwk/aafwk_standard/featureability/sceneproject/getcallingbundletest/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/getcallingbundletest/src/main/js/default/pages/index/index.js index 3098aaec6607cc3a07e6c3b6e00dc96342405584..c58845785e5afa5389736bc3ed9021f975a03a75 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/getcallingbundletest/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/getcallingbundletest/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global diff --git a/aafwk/aafwk_standard/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js index 3598b4d36213053896749b05c92ede43a643a3a7..71d67b2078c3a6ccd5a5c8661f8b593be10fe054 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/startability/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global diff --git a/aafwk/aafwk_standard/featureability/sceneproject/terminateabilitytest/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/featureability/sceneproject/terminateabilitytest/src/main/js/default/pages/index/index.js index f6534d839a5fa6118c586b5475c9d4d1c2f450ed..090351fc19dda68f0c69813e7276528fe3404df8 100644 --- a/aafwk/aafwk_standard/featureability/sceneproject/terminateabilitytest/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/featureability/sceneproject/terminateabilitytest/src/main/js/default/pages/index/index.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' const injectRef = Object.getPrototypeOf(global) || global diff --git a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/js/default/app.js b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/js/default/app.js index e3308849253e8b6b63ad1f8aa970a64881a04161..35bb6d87002697dfeea26db96fa33b099af16a3d 100644 --- a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/js/default/app.js +++ b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicea/src/main/js/default/app.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' export default { constructor(obj) { diff --git a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviceb/src/main/js/default/app.js b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviceb/src/main/js/default/app.js index e3308849253e8b6b63ad1f8aa970a64881a04161..35bb6d87002697dfeea26db96fa33b099af16a3d 100644 --- a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviceb/src/main/js/default/app.js +++ b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviceb/src/main/js/default/app.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' export default { constructor(obj) { diff --git a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicec/src/main/js/default/app.js b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicec/src/main/js/default/app.js index e3308849253e8b6b63ad1f8aa970a64881a04161..35bb6d87002697dfeea26db96fa33b099af16a3d 100644 --- a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicec/src/main/js/default/app.js +++ b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestservicec/src/main/js/default/app.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' export default { constructor(obj) { diff --git a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviced/src/main/js/default/app.js b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviced/src/main/js/default/app.js index e3308849253e8b6b63ad1f8aa970a64881a04161..35bb6d87002697dfeea26db96fa33b099af16a3d 100644 --- a/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviced/src/main/js/default/app.js +++ b/aafwk/aafwk_standard/formmanager/formsystemtestservice/formsystemtestserviced/src/main/js/default/app.js @@ -13,7 +13,7 @@ * limitations under the License. */ -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' export default { constructor(obj) { diff --git a/aafwk/aafwk_standard/serviceability/sceneProject/particlestartability/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/serviceability/sceneProject/particlestartability/src/main/js/default/pages/index/index.js index 9c7b845271e34dd18e013b0ec5779f35a0c6a134..7ab2a1b635f2cfba0dc361d19a892fdb36f0559a 100644 --- a/aafwk/aafwk_standard/serviceability/sceneProject/particlestartability/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/serviceability/sceneProject/particlestartability/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' const injectRef = Object.getPrototypeOf(global) || global injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') diff --git a/aafwk/aafwk_standard/serviceability/sceneProject/particletestserver/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/serviceability/sceneProject/particletestserver/src/main/js/default/pages/index/index.js index f39ff85f71fd451a9da73bf5e91c9a2fa72a1ad7..4a9644a2a252630ee863c62fe89c0be1b5f8dcb8 100644 --- a/aafwk/aafwk_standard/serviceability/sceneProject/particletestserver/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/serviceability/sceneProject/particletestserver/src/main/js/default/pages/index/index.js @@ -13,8 +13,8 @@ * limitations under the License. */ import rpc from "@ohos.rpc" -import particleAbility from '@ohos.ability.particleability' -import commonEvent from '@ohos.commonevent' +import particleAbility from '@ohos.ability.particleAbility' +import commonEvent from '@ohos.commonEvent' let mMyStub; let mMyProxy; diff --git a/aafwk/aafwk_standard/serviceability/stserviceabilityserver/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/serviceability/stserviceabilityserver/entry/src/main/js/default/pages/index/index.js index 4223a933d4bd0e9e7c8a93117d30db7fbc3a8ed0..502152515e67b98ea4ad01c6551df2070f06f8a8 100644 --- a/aafwk/aafwk_standard/serviceability/stserviceabilityserver/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/serviceability/stserviceabilityserver/entry/src/main/js/default/pages/index/index.js @@ -14,9 +14,9 @@ */ import rpc from "@ohos.rpc"; let mMyStub; -import particleAbility from '@ohos.ability.particleability' +import particleAbility from '@ohos.ability.particleAbility' import featureAbility from '@ohos.ability.featureAbility' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' var serversecond_bundleName = "com.amsst.stserviceabilityserversecond"; var serversecond_abilityName = "com.amsst.stserviceabilityserversecond.MainAbility"; var mConnIdJs; diff --git a/aafwk/aafwk_standard/serviceability/stserviceabilityserversecond/entry/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/serviceability/stserviceabilityserversecond/entry/src/main/js/default/pages/index/index.js index 6d318afa2a7a9d9a8b76d8eaeb4a747f80b9dcf6..75eda49a1771a51f9a094baff4a6d3b582d088f8 100644 --- a/aafwk/aafwk_standard/serviceability/stserviceabilityserversecond/entry/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/serviceability/stserviceabilityserversecond/entry/src/main/js/default/pages/index/index.js @@ -14,9 +14,9 @@ */ import rpc from "@ohos.rpc"; let mMyStub; -import particleAbility from '@ohos.ability.particleability' +import particleAbility from '@ohos.ability.particleAbility' import featureAbility from '@ohos.ability.featureAbility' -import commonEvent from '@ohos.commonevent' +import commonEvent from '@ohos.commonEvent' var server_bundleName = "com.amsst.stserviceabilityserver"; var server_abilityName = "com.amsst.stserviceabilityserver.MainAbility"; var mConnIdJs; diff --git a/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js b/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js index 041f0a240a23982220ab08a2da38108b2355871b..302cb06c24f052ce80d616d1106019f2de81c24f 100755 --- a/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js +++ b/aafwk/aafwk_standard/want/actsgetwantalltest/entry/src/main/js/test/ActsGetWantAllTest.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' import wantConstant from '@ohos.ability.wantConstant' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from 'deccjsunit/index' diff --git a/aafwk/aafwk_standard/want/sceneProject/actsgetwantalltesthap/src/main/js/default/pages/index/index.js b/aafwk/aafwk_standard/want/sceneProject/actsgetwantalltesthap/src/main/js/default/pages/index/index.js index 0c7a7ae531285acfd40bb2177486a10642f9f1a6..f55854db61a9d198f3a698cfaaeb85b6c044139c 100755 --- a/aafwk/aafwk_standard/want/sceneProject/actsgetwantalltesthap/src/main/js/default/pages/index/index.js +++ b/aafwk/aafwk_standard/want/sceneProject/actsgetwantalltesthap/src/main/js/default/pages/index/index.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import featureAbility from '@ohos.ability.featureability' +import featureAbility from '@ohos.ability.featureAbility' var globalWant; export default {