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 1c66892dc25b856045100a71c5454a0ceb71b380..020ce098a05d545ad5c36fe7314275df562b832c 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 @@ -54,21 +54,8 @@ var bundleNameList = [ describe('ActsAmsCallBackFifthScene', function () { console.info('----ActsAmsCallBackFifthScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 5be496e3c49070f4c9aa0ed3dd0bf9bb574fb99e..8b5f054fb887d28d7bae7e13284cefc8be8ac696 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 @@ -51,21 +51,8 @@ var bundleNameList = [ describe('ActsAmsCallBackFirstScene', function () { console.info('----ActsAmsCallBackFirstScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 0cb5400897843865850341519fafa8e37da47fb8..92db1b0993944e03c60ddf359871c946b2b81dc1 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 @@ -57,21 +57,8 @@ var bundleNameList = [ describe('ActsAmsCallBackFourthScene', function () { console.info('----ActsAmsCallBackFourthScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { @@ -126,7 +113,7 @@ describe('ActsAmsCallBackFourthScene', function () { { deviceId: "", bundleName: "com.ix.simulate.entry", - abilityName: "com.example.SimulateEntryAbilityFir", + abilityName: "com.example.SimulateEntryAbility", action: "action1", parameters: {}, 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 6e93f693a783b96639776b231dd8fe1a3dc2d504..feca8581b5a2b12a5ba09d9d2be3b11236852b7e 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 @@ -53,21 +53,8 @@ var bundleNameList = [ describe('ActsAmsCallBackSecondScene', function () { console.info('----ActsAmsCallBackSecondScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 6643f3ad86e7cfc17777995d6d71e1bc1ba86451..5852c0c257170eb1c8d9c8915a208170c2985774 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 @@ -51,21 +51,8 @@ var bundleNameList = [ describe('ActsAmsCallBackThirdScene', function () { console.info('----ActsAmsCallBackThirdScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - } - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { @@ -88,19 +75,6 @@ describe('ActsAmsCallBackThirdScene', function () { }, }, ); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); await featureAbility.startAbility( { want: 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 ac4d1be6da0e0d98e9b787d2fbdfcffd71ba1b2b..d88585379a1b438c63bf3df3a4f63e5dd8816635 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 @@ -54,26 +54,8 @@ var bundleNameList = [ describe('ActsAmsTestFifthScene', function () { console.info('----ActsAmsTestFifthScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 8d97186aa64d2e77bf636c65c97c582d2d63bd8d..710bad2024d435682a3bb8cde86d23ac0a8509ce 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 @@ -51,26 +51,8 @@ var bundleNameList = [ describe('ActsAmsTestFirstScene', function () { console.info('----ActsAmsTestFirstScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 ab840312800ffb9f51b8391bd37630dec9603709..04bebf6f775dc906461a37be92a7f562ed4f0f77 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 @@ -56,26 +56,8 @@ var bundleNameList = [ describe('ActsAmsTestFourthScene', function () { console.info('----ActsAmsTestFourthScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { @@ -145,7 +127,7 @@ describe('ActsAmsTestFourthScene', function () { { deviceId: "", bundleName: "com.ix.simulate.entry", - abilityName: "com.example.SimulateEntryAbilityFir", + abilityName: "com.example.SimulateEntryAbility", action: "action1", entities: ["entity1"], type: "MIMETYPE", 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 e0fb7bc7a6b48cf87d52e0d390118d3d2e52d27e..c9ed7da1a49351846f868780cb30f0c8965c1adf 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 @@ -53,26 +53,8 @@ var bundleNameList = [ describe('ActsAmsTestSecondScene', function () { console.info('----ActsAmsTestSecondScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { 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 b3e2823067da5ece0cb95e575bc09b00db925a3c..8ea468226fed9fbed83a689c874a4ffe51e63040 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 @@ -53,26 +53,8 @@ describe('ActsAmsTestThirdScene', function () { console.info('----ActsAmsTestThirdScene----'); beforeAll(async function (done) { - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); var maxnum = 10; - var flag = 1; + var flag = 1; var data = await abilitymanager.queryRecentAbilityMissionInfos(maxnum, flag); console.log('queryRecentAbilityMissionInfos data ' + JSON.stringify(data)); for (var i = 0; i < data.length; i++) { @@ -100,24 +82,6 @@ describe('ActsAmsTestThirdScene', function () { }, }, ); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.ohos.launcher", - abilityName: "com.ohos.launcher.MainAbility", - action: "action1", - entities: ["entity1"], - type: "MIMETYPE", - uri: "key={true,true,false}", - options: - {}, - parameters: - {}, - }, - }, - ); await featureAbility.startAbility( { want: