From b619633e2b398756d5de291f7b6e53adb1969f18 Mon Sep 17 00:00:00 2001 From: gwx1146427 Date: Wed, 22 Feb 2023 15:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90account=E3=80=91=E3=80=90master?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E6=94=B9onOff=E8=B6=85=E6=97=B6=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gwx1146427 --- .../actsaccountoperatetest/src/main/js/test/ChangeOnOff.js | 2 +- .../appaccount/actsaccounttest/src/main/js/test/OnOff.js | 2 +- .../entry/src/main/js/default/pages/index/index.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/account/appaccount/actsaccountoperatetest/src/main/js/test/ChangeOnOff.js b/account/appaccount/actsaccountoperatetest/src/main/js/test/ChangeOnOff.js index 0fa5e8b4b..a5b5cf93c 100644 --- a/account/appaccount/actsaccountoperatetest/src/main/js/test/ChangeOnOff.js +++ b/account/appaccount/actsaccountoperatetest/src/main/js/test/ChangeOnOff.js @@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -const TIMEOUT = 5000; +const TIMEOUT = 2000; export default function ActsAccountOnOff() { describe('ActsAccountOnOff', async function () { diff --git a/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js b/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js index d49f77710..b04f0b29c 100644 --- a/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js +++ b/account/appaccount/actsaccounttest/src/main/js/test/OnOff.js @@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' import featureAbility from '@ohos.ability.featureAbility' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -const TIMEOUT = 5000; +const TIMEOUT = 2000; export default function ActsAccountChangeOnOff() { describe('ActsAccountChangeOnOff', async function () { diff --git a/account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js b/account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js index 47c8c50db..669177e2b 100755 --- a/account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js +++ b/account/appaccount/sceneProject/actsaccountsceneonoff/entry/src/main/js/default/pages/index/index.js @@ -35,10 +35,10 @@ injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') export default { data: { }, - onInit() { + onShow() { this.title = "scene on off"; }, - onShow() { + onInit() { console.debug("====>change on off scene start===="); var appAccountManager = account.createAppAccountManager(); var commonEventSubscribeInfo = { @@ -55,7 +55,7 @@ export default { console.debug("====>scene off finish===="); }); }); - featureAbility.terminateSelf() + // featureAbility.terminateSelf() } // Subscribe to the callback of account information changes, verify the received account information, and send -- GitLab