提交 5c7ceb1a 编写于 作者: 华华小仙女

修改setWindowMode错误码401->1300002

Signed-off-by: N华华小仙女 <zhurong18@h-partners.com>
上级 819f09b0
......@@ -2305,7 +2305,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
expect(!!tempWnd).assertTrue();
await tempWnd.setWindowMode(ohosWindow.WindowMode.UNDEFINED).catch(async (err) => {
console.error(msgStr + 'Failed to set the window mode. Cause: ' + JSON.stringify(err));
expect(err.code == 401).assertTrue();
expect(err.code == 1300002).assertTrue();
await tempWnd.destroyWindow()
console.log(msgStr + 'tempWnd.setWindowMode failed ' + 'finished');
done();
......@@ -2341,7 +2341,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
console.log(msgStr + 'currentType: ' + tempType)
console.error(msgStr + 'Failed to set the window mode. Cause: ' + JSON.stringify(err));
try {
expect(err.code == 401).assertTrue();
expect(err.code == 1300002).assertTrue();
} catch (error) {
console.info(`ohosWindow.createWindow catch error: ${JSON.stringify(error)}`)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册