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

!2757 【窗口子系统】修改接口用例的错误码

Merge pull request !2757 from hk_js/cherry-pick-1647920419
......@@ -1029,14 +1029,7 @@ describe('window_test', function () {
wnd.show().then(() => {
wnd.isShowing().then(res => {
expect(res).assertTrue();
wnd.destroy().then(() => {
expect(wnd == null).assertTrue();
done();
}, (err) => {
console.log('windowTest IsShowingTest1 wnd.destroy failed, err :' + JSON.stringify(err));
expect().assertFail();
done();
})
}, (err) => {
console.log('windowTest IsShowingTest1 wnd.isShowing failed, err :' + JSON.stringify(err));
expect().assertFail();
......@@ -1089,13 +1082,6 @@ describe('window_test', function () {
done();
} else {
expect(res2).assertTrue();
data.destroy((err) => {
if (err.code) {
console.log('windowTest IsShowingTest2 data.show fail err ' + JSON.stringify(err));
expect().assertFail();
done();
} else {
expect(data == null).assertTrue();
done();
}
})
......@@ -1105,8 +1091,6 @@ describe('window_test', function () {
})
}
})
}
})
})
/**
......@@ -1233,7 +1217,7 @@ describe('window_test', function () {
console.log('windowTest SetColorSpaceTest4 setColorSpace callback begin' + JSON.stringify(err));
if (err.code != 0) {
console.log('windowTest SetColorSpaceTest4 setColorSpace callback fail' + JSON.stringify(err.code));
expect(err.code).assertEqual(120);
expect(err.code).assertEqual(130);
done();
} else {
expect().assertFail();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册