提交 5ec0ee36 编写于 作者: X xinking129

change code

Signed-off-by: Nxinking129 <xinxin13@huawei.com>
上级 36bec204
...@@ -567,14 +567,16 @@ export default function abilityTest() { ...@@ -567,14 +567,16 @@ export default function abilityTest() {
expect(true).assertFalse(); expect(true).assertFalse();
done(); done();
}); });
await driver.delayMs(1000);
await globalThis.abilitycontext.startAbility(wantStandard).then(() => { await globalThis.abilitycontext.startAbility(wantStandard).then(() => {
console.info('startAbility first succeed'); console.info('startAbility wantStandard succeed');
expect(true).assertTrue(); expect(true).assertTrue();
}).catch((err) => { }).catch((err) => {
console.error(`startAbility first failed, error is ${JSON.stringify(err)}`); console.error(`startAbility wantStandard failed, error is ${JSON.stringify(err)}`);
expect(true).assertFalse(); expect(true).assertFalse();
done(); done();
}); });
await driver.delayMs(1000);
await globalThis.abilitycontext.startAbility(wantSingle).then(() => { await globalThis.abilitycontext.startAbility(wantSingle).then(() => {
console.info('startAbility second succeed'); console.info('startAbility second succeed');
expect(true).assertTrue(); expect(true).assertTrue();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册