未验证 提交 10b2ab77 编写于 作者: O openharmony_ci 提交者: Gitee

!7483 【窗口子系统】解决listenerTest5用例超时的问题

Merge pull request !7483 from 华华小仙女/master
......@@ -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 == 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.
先完成此消息的编辑!
想要评论请 注册