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

!4740 【窗口子系统】check the resetSize interface error code

Merge pull request !4740 from hekun/OpenHarmony-3.1-Release
......@@ -1851,7 +1851,7 @@ describe('window_test', function () {
done();
}, (err) => {
console.log('windowTest resetSizeTest3 wnd.resetSize failed, err :' + JSON.stringify(err));
expect().assertFail();
expect(err.code).assertEqual(130);
done();
})
}, (err) => {
......@@ -1877,7 +1877,7 @@ describe('window_test', function () {
done();
}, (err) => {
console.log('windowTest resetSizeTest4 wnd.resetSize failed, err :' + JSON.stringify(err));
expect().assertFail();
expect(err.code).assertEqual(130);
done();
})
}, (err) => {
......@@ -1901,13 +1901,13 @@ describe('window_test', function () {
wnd.resetSize(100, 100).then(() => {
console.log('windowTest resetSizeTest5 wnd.resetSize(100, 100) success, count:"%d\n"', i);
expect(TRUE_WINDOW).assertTrue();
done();
},(err) => {
console.log('windowTest resetSizeTest5 wnd.resetSize failed, err :' + JSON.stringify(err));
expect().assertFail();
expect(err.code).assertEqual(130);
done();
})
}
console.log('windowTest resetSizeTest5 end');
done();
}, (err) => {
console.log('windowTest resetSizeTest5 getTopWindow failed, err :' + JSON.stringify(err));
expect().assertFail();
......@@ -1957,14 +1957,13 @@ describe('window_test', function () {
wnd.resetSize(width, height).then(() => {
console.log('windowTest resetSizeTestLoop success');
expect(TRUE_WINDOW).assertTrue();
done();
},(err) => {
console.log('windowTest resetSizeLoop resetSize failed, err :' + JSON.stringify(err));
expect().assertFail();
expect(err.code).assertEqual(130);
done();
})
}
console.log('windowTest resetSizeLoop end');
done();
},(err) => {
console.log('windowTest resetSizeLoop getTopWindow failed, err :' + JSON.stringify(err));
expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册