提交 c346c27f 编写于 作者: Y yaocui

update

Signed-off-by: Nyaocui <yaocui2@h-partners.com>
上级 69091d0d
......@@ -132,6 +132,8 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
console.log(msgStr + 'tempWnd.on systemAvoidAreaChange, listenerOnFlag : ' + JSON.stringify(listenerOnFlag));
if (listenerOnFlag) {
expect(!!avoidAreaData).assertTrue();
tempWnd.off('systemAvoidAreaChange');
done();
}
})
expect(!!tempWnd).assertTrue();
......@@ -147,15 +149,11 @@ export default function windowPromiseTest(context, windowStage, abilityStorage)
unexpectedError(err, caseName, 'tempWnd.setSystemBarEnable([])', done);
});
console.log(msgStr + 'tempWnd.setSystemBarEnable([]) success');
console.log(msgStr + 'tempWnd.on systemAvoidAreaChange finished');
listenerOnFlag = true;
await sleep(1000);
await tempWnd.setSystemBarEnable(['status', 'navigation']).catch((err) => {
unexpectedError(err, caseName, 'tempWnd.setSystemBarEnable([status, navigation])', done);
});
await tempWnd.off('systemAvoidAreaChange');
done();
console.log(msgStr + 'tempWnd.setSystemBarEnable([status, navigation]) success');
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册