From 3a71c69c5aca2a15f804208e247e6688997c0a27 Mon Sep 17 00:00:00 2001 From: lixiteng Date: Thu, 25 May 2023 10:45:22 +0800 Subject: [PATCH] =?UTF-8?q?ActsWindowHapTest=E7=AA=97=E5=8F=A3=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=A0=81beta1=E6=92=A4=E9=94=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lixiteng --- .../src/main/js/test/window.test.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/graphic/windowstandard/src/main/js/test/window.test.js b/graphic/windowstandard/src/main/js/test/window.test.js index 69472e307..97ea2aa7b 100644 --- a/graphic/windowstandard/src/main/js/test/window.test.js +++ b/graphic/windowstandard/src/main/js/test/window.test.js @@ -1575,7 +1575,7 @@ export default function window_test() { wnd.moveTo(200, 200, (err) => { if (err.code) { console.log(msgStr + ' moveTo callback fail' + JSON.stringify(err.code)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); } else { console.log(msgStr + ' moveTo callback success'); @@ -1602,7 +1602,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1629,7 +1629,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1656,7 +1656,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1683,7 +1683,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) } @@ -1708,7 +1708,7 @@ export default function window_test() { wnd.moveTo(-200, -200, (err) => { if (err.code) { console.log(msgStr + ' wnd.moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); } else { console.log(msgStr + ' wnd.moveTo success'); @@ -1740,7 +1740,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' moveTo failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1767,12 +1767,12 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' create failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { console.log(msgStr + ' create failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1799,7 +1799,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1826,7 +1826,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) }, (err) => { @@ -1908,7 +1908,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' wnd.resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) } @@ -1933,7 +1933,7 @@ export default function window_test() { wnd.resetSize(200, 200, (err) => { if (err.code) { console.log(msgStr + ' resetSize callback fail' + JSON.stringify(err.code)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); } else { console.log(msgStr + ' resetSize callback success'); @@ -1966,7 +1966,7 @@ export default function window_test() { done(); }, (err) => { console.log(msgStr + ' resetSizeLoop resetSize failed, err :' + JSON.stringify(err)); - expect(err.code).assertEqual(7); + expect(err.code).assertEqual(6); done(); }) } -- GitLab