From 3a56893e7eb1324c2a76a2e5cac28a839316d748 Mon Sep 17 00:00:00 2001 From: mingxihua Date: Wed, 23 Feb 2022 13:24:37 +0000 Subject: [PATCH] IssueNo:#I4V0AS: modify aafwk xts unavilable problem Description: modify aafwk xts unavilable problem Sig:SIG_ApplicationFramework Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: mingxihua --- .../main/js/test/MangerAbilityJsunit.test.js | 15 +------- .../main/js/test/MangerAbilityJsunit.test.js | 15 +------- .../main/js/test/MangerAbilityJsunit.test.js | 17 +-------- .../main/js/test/MangerAbilityJsunit.test.js | 15 +------- .../main/js/test/MangerAbilityJsunit.test.js | 28 +------------- .../main/js/test/MangerAbilityJsunit.test.js | 20 +--------- .../main/js/test/MangerAbilityJsunit.test.js | 20 +--------- .../main/js/test/MangerAbilityJsunit.test.js | 22 +---------- .../main/js/test/MangerAbilityJsunit.test.js | 20 +--------- .../main/js/test/MangerAbilityJsunit.test.js | 38 +------------------ 10 files changed, 12 insertions(+), 198 deletions(-) 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 1c66892dc..020ce098a 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 5be496e3c..8b5f054fb 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 0cb540089..92db1b099 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 6e93f693a..feca8581b 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 6643f3ad8..5852c0c25 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 ac4d1be6d..d88585379 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 8d97186aa..710bad202 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 ab8403128..04bebf6f7 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 e0fb7bc7a..c9ed7da1a 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 b3e282306..8ea468226 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: -- GitLab