From 6af21709c4fb17916afb189ff419b81c250730b1 Mon Sep 17 00:00:00 2001 From: fjr Date: Thu, 23 Jun 2022 19:30:58 +0800 Subject: [PATCH] info Signed-off-by: fjr --- .../entry/src/main/js/test/WantAgent.test.js | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) 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 4fcfb52a8..7665e81a8 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,8 @@ */ 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 WantAgenta; @@ -53,9 +54,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) => { @@ -133,9 +134,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) => { @@ -196,9 +197,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 @@ -225,9 +226,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, @@ -303,9 +304,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)) @@ -333,9 +334,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, @@ -398,9 +399,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 @@ -427,9 +428,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, -- GitLab