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..df6f3be08e1193bd6dbec4c6d199fadbf8e81078 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,6 @@ */ import notify from '@ohos.notification' import WantAgent 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 +86,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 +171,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/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js b/notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js index 908564e7d99075fc90229d6f42c2cea18b893c5f..98691978a5dca3832b130766e7d09c970b962a0c 100644 --- a/notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js +++ b/notification/ans_standard/publish_test/getwantagentinfo/entry/src/main/js/test/WantAgent.test.js @@ -14,7 +14,6 @@ */ import wantAgent from '@ohos.wantAgent'; -import { OperationType, WantAgentFlags } from '@ohos.wantagent'; import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index'; @@ -54,9 +53,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } wantAgent.getWantAgent(agentInfoa, (err, data) => { @@ -134,9 +133,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } wantAgent.getWantAgent(agentInfod).then( (data) => { @@ -197,9 +196,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } wantAgent.getWantAgent(agentInfob,(err,data)=>{ WantAgentb = data @@ -226,9 +225,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } setTimeout(function(){ wantAgent.getWantAgent(agentInfoc, @@ -304,9 +303,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } wantAgent.getWantAgent(agentInfoe,(err,data)=>{ console.log("=======agentInfoe======="+err.code+JSON.stringify(data)) @@ -334,9 +333,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } setTimeout(function(){ wantAgent.getWantAgent(agentInfof, @@ -399,9 +398,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } wantAgent.getWantAgent(agentInfoe,(err,data)=>{ WantAgentd = data @@ -428,9 +427,9 @@ describe('ActsAnsGetWantAgentInfoTest', function () { } }, ], - operationType: OperationType.START_ABILITY, + operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[WantAgentFlags.UPDATE_PRESENT_FLAG] + wantAgentFlags:[wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG] } setTimeout(function(){ wantAgent.getWantAgent(agentInfof, diff --git a/notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js b/notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js index 71a6a2869a4540abddce72cecf99565e18a2d0fd..6fe34ca08987d17a93d2abf3b5d3aafcb6d0aa2b 100644 --- a/notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js +++ b/notification/ans_standard/publish_test/publishcontentype/publishtype/entry/src/main/js/test/ExampleJsunit.test.js @@ -13,7 +13,7 @@ * limitations under the License. */ import notification from '@ohos.notification' -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' var time = 5000 var multiLineDataOne diff --git a/notification/ans_standard/publish_test/publishcontentype/sub/entry/src/main/js/test/Subscriber.js b/notification/ans_standard/publish_test/publishcontentype/sub/entry/src/main/js/test/Subscriber.js index 0fcb7ff1a46da82a1da08b8bdc2b22fc8525fc5d..c423113605fa3a8555673587ea9574b119a353c1 100644 --- a/notification/ans_standard/publish_test/publishcontentype/sub/entry/src/main/js/test/Subscriber.js +++ b/notification/ans_standard/publish_test/publishcontentype/sub/entry/src/main/js/test/Subscriber.js @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import Subscriber from '@ohos.commonevent' +import Subscriber from '@ohos.commonEvent' import notification from '@ohos.notification' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' var multiLineDataOne 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 6e370deb4bc9b243b58a88ce3a92db9624f8a58c..a08a800ad0170ae19334d3188d6e55f2716a04e7 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,6 @@ */ import wantAgent 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 +49,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 +129,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 +182,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 +235,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 +288,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, @@ -313,12 +312,12 @@ describe('ActsAnsWantAgentOneTest', function () { console.info('----getWantAgent after----'); }) - /* + /* * @tc.number: ACTS_SetWant_0600 * @tc.name: getWantAgent(OperationType.START_ABILITY) * @tc.desc: verify the function of getWantAgent(OperationType.START_ABILITY)[REPLACE_ELEMENT] */ - it('ACTS_SetWant_0600', 0, async function (done) { + it('ACTS_SetWant_0600', 0, async function (done) { console.info('----ACTS_SetWant_0600 start----'); var agentInfo = { wants: [ @@ -557,7 +556,7 @@ describe('ActsAnsWantAgentOneTest', function () { ], operationType: wantAgent.OperationType.START_ABILITY, requestCode: 0, - wantAgentFlags:[wantAgent.WantAgentFlags.REPLACE_BUNDLE] + wantAgentFlags:[wantAgent.WantAgentFlags.REPLACE_ENTITIES] } 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..bb5a095fdc05a662efbd2dd8f5b8bcecfc68516b 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,6 @@ */ import wantAgent 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 +47,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..608a28a1c3694f57a26e3a8541f4e4c4cdfa5371 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,6 @@ */ import wantAgent 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 +64,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..96e09ae103e74b5af41d94a24c162561687d539c 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,6 @@ */ import wantAgent 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; @@ -26,6 +25,7 @@ describe('ActsAnsWantAgentTwoProTest', function () { * @tc.desc: verify the function of getWantAgent(OperationType.START_ABILITIES) */ it('ACTS_SetWant_0400', 0, async function (done) { + expect(3).assertEqual(wantAgent.OperationType.START_SERVICE) var agentInfo = { wants: [ { @@ -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..518244b19b572f24f198b50ed4fa42dae06efb7b 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,6 @@ */ import wantAgent 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 +46,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..f1046c5e4a07634e2bf4e9633cc92e335592fd12 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,6 @@ */ import wantAgent 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 +46,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..84eda7ad0123dc67bf8f9edf646a13e60df4a847 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,6 @@ */ import wantAgent 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 +47,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..9d2ed2a887b0c40be1c0126214149f4d3633b4f0 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,6 @@ */ import wantAgent 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 +46,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..2c45387827c8871c5f6f347a40d02bc0c83ac008 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,6 @@ */ import wantAgent 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 +46,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..d55e4419107704d98a252ea5dddb08ca872f2114 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,6 @@ */ import wantAgent 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 +46,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(