提交 9f22e52a 编写于 作者: 华华小仙女

错误码还没上库暂时不修改

Signed-off-by: N华华小仙女 <zhurong18@h-partners.com>
上级 5c7ceb1a
......@@ -253,7 +253,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
try {
let ohosDataError = await ohosWindow.createWindow(windowConfig).catch(async (errSencond) => {
console.log(msgStr + 'ohosWindow.createWindow 1 twice err: ' + JSON.stringify(errSencond));
expect(errSencond.code).assertEqual(1300002)
expect(errSencond.code).assertEqual(1300001)
await ohosData.destroyWindow();
done();
})
......@@ -434,7 +434,7 @@ export default function displayAndWindowRefactorInterfaceTest(context, windowSta
if (err && err.code) {
console.log(msgStr + 'ohosWindow.createWindow 1 twice data: ' + JSON.stringify(dataTwo));
try {
expect(err.code).assertEqual(1300002)
expect(err.code).assertEqual(1300001)
} catch (error) {
console.info(`ohosWindow.createWindow catch error: ${JSON.stringify(error)}`)
}
......@@ -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 == 1300002).assertTrue();
expect(err.code == 401).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 == 1300002).assertTrue();
expect(err.code == 401).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.
先完成此消息的编辑!
想要评论请 注册