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

!8701 ActsWindowHap窗口测试用例错误码整改

Merge pull request !8701 from 李西腾/master
...@@ -1575,7 +1575,7 @@ export default function window_test() { ...@@ -1575,7 +1575,7 @@ export default function window_test() {
wnd.moveTo(200, 200, (err) => { wnd.moveTo(200, 200, (err) => {
if (err.code) { if (err.code) {
console.log(msgStr + ' moveTo callback fail' + JSON.stringify(err.code)); console.log(msgStr + ' moveTo callback fail' + JSON.stringify(err.code));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
} else { } else {
console.log(msgStr + ' moveTo callback success'); console.log(msgStr + ' moveTo callback success');
...@@ -1602,7 +1602,7 @@ export default function window_test() { ...@@ -1602,7 +1602,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1629,7 +1629,7 @@ export default function window_test() { ...@@ -1629,7 +1629,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1656,7 +1656,7 @@ export default function window_test() { ...@@ -1656,7 +1656,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1683,7 +1683,7 @@ export default function window_test() { ...@@ -1683,7 +1683,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
} }
...@@ -1708,7 +1708,7 @@ export default function window_test() { ...@@ -1708,7 +1708,7 @@ export default function window_test() {
wnd.moveTo(-200, -200, (err) => { wnd.moveTo(-200, -200, (err) => {
if (err.code) { if (err.code) {
console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
} else { } else {
console.log(msgStr + ' wnd.moveTo success'); console.log(msgStr + ' wnd.moveTo success');
...@@ -1740,7 +1740,7 @@ export default function window_test() { ...@@ -1740,7 +1740,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' moveTo failed, err :' + JSON.stringify(err)); console.log(msgStr + ' moveTo failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1767,12 +1767,12 @@ export default function window_test() { ...@@ -1767,12 +1767,12 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' create failed, err :' + JSON.stringify(err)); console.log(msgStr + ' create failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
console.log(msgStr + ' create failed, err :' + JSON.stringify(err)); console.log(msgStr + ' create failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1799,7 +1799,7 @@ export default function window_test() { ...@@ -1799,7 +1799,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1826,7 +1826,7 @@ export default function window_test() { ...@@ -1826,7 +1826,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
}, (err) => { }, (err) => {
...@@ -1908,7 +1908,7 @@ export default function window_test() { ...@@ -1908,7 +1908,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
} }
...@@ -1933,7 +1933,7 @@ export default function window_test() { ...@@ -1933,7 +1933,7 @@ export default function window_test() {
wnd.resetSize(200, 200, (err) => { wnd.resetSize(200, 200, (err) => {
if (err.code) { if (err.code) {
console.log(msgStr + ' resetSize callback fail' + JSON.stringify(err.code)); console.log(msgStr + ' resetSize callback fail' + JSON.stringify(err.code));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
} else { } else {
console.log(msgStr + ' resetSize callback success'); console.log(msgStr + ' resetSize callback success');
...@@ -1966,7 +1966,7 @@ export default function window_test() { ...@@ -1966,7 +1966,7 @@ export default function window_test() {
done(); done();
}, (err) => { }, (err) => {
console.log(msgStr + ' resetSizeLoop resetSize failed, err :' + JSON.stringify(err)); console.log(msgStr + ' resetSizeLoop resetSize failed, err :' + JSON.stringify(err));
expect(err.code).assertEqual(6); expect(err.code).assertEqual(7);
done(); done();
}) })
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册