diff --git a/notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js b/notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js index d17df90ba08962cc9ae79f209c6aea1c0cbc44e6..4c4416ecbc393883613d5f27e544fed387dc039f 100644 --- a/notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js +++ b/notification/ans_standard/publish_test/activebtn/activebutton/entry/src/main/js/test/ActiveButton.js @@ -14,7 +14,7 @@ */ import notify from '@ohos.notification' import WantAgent from '@ohos.wantAgent' -import { OperationType, WantAgentFlags } from '@ohos.wantagent' +//import { OperationType, WantAgentFlags } from '@ohos.wantagent' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' describe('ActsAnsActionButtonTest', function () { @@ -87,7 +87,7 @@ describe('ActsAnsActionButtonTest', function () { ], operationType: WantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[WantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; var wantAgentData = await WantAgent.getWantAgent(agentInfoA); @@ -172,7 +172,7 @@ describe('ActsAnsActionButtonTest', function () { ], operationType: WantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[WantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] }; var wantAgentDataB = await WantAgent.getWantAgent(agentInfoB); diff --git a/notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js index bf3d49d39a97eb99cbce710f90295d4f9d0bb4cd..d3f86a8e3cf7b0fa33a50ca043efbfbdae908d7e 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent1/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -50,9 +50,9 @@ describe('ActsAnsWantAgentOneTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); await wantAgent.getWantAgent(agentInfo, @@ -130,9 +130,9 @@ describe('ActsAnsWantAgentOneTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.ONE_TIME_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.ONE_TIME_FLAG] } console.info('----getWantAgent before----'); await wantAgent.getWantAgent(agentInfo, @@ -183,9 +183,9 @@ describe('ActsAnsWantAgentOneTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.NO_BUILD_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.NO_BUILD_FLAG] } console.info('----getWantAgent before----'); await wantAgent.getWantAgent(agentInfo, @@ -236,9 +236,9 @@ describe('ActsAnsWantAgentOneTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.CANCEL_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.CANCEL_PRESENT_FLAG] } console.info('----getWantAgent before----'); await wantAgent.getWantAgent(agentInfo, @@ -289,9 +289,9 @@ describe('ActsAnsWantAgentOneTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.CONSTANT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.CONSTANT_FLAG] } console.info('----getWantAgent before----'); await wantAgent.getWantAgent(agentInfo, diff --git a/notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js index e29ac3c2f3cbd896dfd4046809ab0673b4b161f0..79c87079e0e587fdf247831675bb4ba36799ebe1 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent1promise/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -48,9 +48,9 @@ describe('ActsAnsWantAgentOneProTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo).then( diff --git a/notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js index 8018d2dff7bee99fecfdeddfc79c64e5fdcf385c..d98dec110057517f1e2867c3986929c77992c374 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent2/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -65,9 +65,9 @@ describe('ActsAnsWantAgentTwoTest', function () { } } ], - operationType: OperationType.START_ABILITIES, + operationType: wantAgent.OperationType.START_ABILITIES, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo, diff --git a/notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js index 187ae8454dc1f13cf94b85ca3a3c26293ca717fa..778cf404d194757f59a5873dad613a031c3be1e6 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent2promise/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -65,9 +65,9 @@ describe('ActsAnsWantAgentTwoProTest', function () { } } ], - operationType: OperationType.START_ABILITIES, + operationType: wantAgent.OperationType.START_ABILITIES, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo).then( diff --git a/notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js index 379f7386c4b061fcd61947ecbae516aff493e65f..cc3ee3cc49584ef3d03b5d555f73e818d17be4f3 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent3/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -47,9 +47,9 @@ describe('ActsAnsWantAgentTreeTest', function () { } }, ], - operationType: OperationType.SEND_COMMON_EVENT, + operationType: wantAgent.OperationType.SEND_COMMON_EVENT, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo, diff --git a/notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js index 6f5ac1ad1ce1d38a3cfac2aca114aad99c321489..004957a747942296a5389dd3ace76a2c4b46feec 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent3promise/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -47,9 +47,9 @@ describe('ActsAnsWantAgentTreeProTest', function () { } }, ], - operationType: OperationType.SEND_COMMON_EVENT, + operationType: wantAgent.OperationType.SEND_COMMON_EVENT, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo).then( diff --git a/notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js index 70592d3026b4802d3bf682d33269f442bfa15bf8..387a60d7702a0107620fac625378b30647394925 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent4/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -48,9 +48,9 @@ describe('ActsAnsWantAgentFourTest', function () { } }, ], - operationType: OperationType.UNKNOWN_TYPE, + operationType: wantAgent.OperationType.UNKNOWN_TYPE, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo, diff --git a/notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js index 28241ea30f97342d332b8320f8c6df2bf7180625..8bd013f9f8f0adb16527d3d5a320569a5b16208f 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent4promise/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -47,9 +47,9 @@ describe('ActsAnsWantAgentFourProTest', function () { } }, ], - operationType: OperationType.UNKNOWN_TYPE, + operationType: wantAgent.OperationType.UNKNOWN_TYPE, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo).then( diff --git a/notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js index 34c0d715208263032d5a2998b60009e62c446514..14fdc459048826821e1251168c2c15776216cb6a 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent5/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -47,9 +47,9 @@ describe('ActsAnsWantAgentFiveTest', function () { } }, ], -// operationType: OperationType.START_ABILITY, +// operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo, diff --git a/notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js index 2e86203324b3aeb1aa5480fe88e5384d0d438d9b..8c3ea2da03f9dd3e40f439b4ab3a5ce7000e38fe 100644 --- a/notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/wantagent/wantagent5promise/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,7 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; +//import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; var time = 1000 var WantAgent; @@ -47,9 +47,9 @@ describe('ActsAnsWantAgentFiveProTest', function () { } }, ], -// operationType: OperationType.START_ABILITY, +// operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } console.info('----getWantAgent before----'); wantAgent.getWantAgent(agentInfo).then(