提交 b619633e 编写于 作者: G gwx1146427

【account】【master】修改onOff超时测试用例

Signed-off-by: Ngwx1146427 <guoyongqiang8@huawei.com>
上级 e97ac3eb
...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' ...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const TIMEOUT = 5000; const TIMEOUT = 2000;
export default function ActsAccountOnOff() { export default function ActsAccountOnOff() {
describe('ActsAccountOnOff', async function () { describe('ActsAccountOnOff', async function () {
......
...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent' ...@@ -17,7 +17,7 @@ import commonevent from '@ohos.commonEvent'
import featureAbility from '@ohos.ability.featureAbility' import featureAbility from '@ohos.ability.featureAbility'
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'
const TIMEOUT = 5000; const TIMEOUT = 2000;
export default function ActsAccountChangeOnOff() { export default function ActsAccountChangeOnOff() {
describe('ActsAccountChangeOnOff', async function () { describe('ActsAccountChangeOnOff', async function () {
......
...@@ -35,10 +35,10 @@ injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') ...@@ -35,10 +35,10 @@ injectRef.regeneratorRuntime = require('@babel/runtime/regenerator')
export default { export default {
data: { data: {
}, },
onInit() { onShow() {
this.title = "scene on off"; this.title = "scene on off";
}, },
onShow() { onInit() {
console.debug("====>change on off scene start===="); console.debug("====>change on off scene start====");
var appAccountManager = account.createAppAccountManager(); var appAccountManager = account.createAppAccountManager();
var commonEventSubscribeInfo = { var commonEventSubscribeInfo = {
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
console.debug("====>scene off finish===="); console.debug("====>scene off finish====");
}); });
}); });
featureAbility.terminateSelf() // featureAbility.terminateSelf()
} }
// Subscribe to the callback of account information changes, verify the received account information, and send // Subscribe to the callback of account information changes, verify the received account information, and send
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册