提交 e33f70d2 编写于 作者: Y yaocui

update case 20230308

Signed-off-by: Nyaocui <yaocui2@h-partners.com>
上级 c76403dd
...@@ -493,6 +493,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -493,6 +493,7 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
expect().assertFail() expect().assertFail()
done(); done();
}); });
await sleep(2000)
await setSystemBarEnableT(mainWnd).catch((err) => { await setSystemBarEnableT(mainWnd).catch((err) => {
console.info(msgStr + 'setWindowSystemBarEnable error : ' + JSON.stringify(err)); console.info(msgStr + 'setWindowSystemBarEnable error : ' + JSON.stringify(err));
expect().assertFail(); expect().assertFail();
...@@ -2104,7 +2105,11 @@ export default function windowCallbackTest(context, windowStage, abilityStorage) ...@@ -2104,7 +2105,11 @@ export default function windowCallbackTest(context, windowStage, abilityStorage)
mainWin.snapshot((err, data) => { mainWin.snapshot((err, data) => {
if (err && err.code) { if (err && err.code) {
console.log(msgStr + 'snapshot err.code:' + JSON.stringify(err.code)); console.log(msgStr + 'snapshot err.code:' + JSON.stringify(err.code));
try{
expect().assertFail(); expect().assertFail();
} catch (error) {
console.info(`expected catch error: ${JSON.stringify(error)}`)
}
done(); done();
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册