From 205e0c86aaff3c8d0b47b44aa9c42673be6cea61 Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Mon, 5 Sep 2022 17:11:43 +0800 Subject: [PATCH] =?UTF-8?q?xts=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: I9893dda7ce1b78bc217a65635c1f1f2c4d447f5f --- .../src/main/js/default/test/Pointer.test.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/Pointer.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/Pointer.test.js index 5c72bb15c..c58160789 100755 --- a/multimodalinput/input_js_standard/src/main/js/default/test/Pointer.test.js +++ b/multimodalinput/input_js_standard/src/main/js/default/test/Pointer.test.js @@ -35,7 +35,7 @@ describe('MultimodalInput_Pointer_test', function () { expect(false).assertTrue(); } else { console.info(`MultimodalInput_Pointer_test::SetPointerVisibleTest_001 success`); - expect(true).assertTure(); + expect(true).assertTrue(); } }; pointer.setPointerVisible(false, callback); @@ -43,8 +43,8 @@ describe('MultimodalInput_Pointer_test', function () { pointer.isPointerVisible().then(data => { console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 success, data=${JSON.stringify(data)}`); expect(data == false).assertTrue(); - }, data => { - console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 failed, err=${JSON.stringify(data)}`); + }, err => { + console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 failed, err=${JSON.stringify(err)}`); expect(false).assertTrue(); }); console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_001 exit`); @@ -55,9 +55,9 @@ describe('MultimodalInput_Pointer_test', function () { pointer.setPointerVisible(true).then(data => { console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 success, data=${JSON.stringify(data)}`); expect(true).assertTrue(); - }, data => { - console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 failed, err=${JSON.stringify(data)}`); - expect(false).assertTure(); + }, err => { + console.info(`MultimodalInput_Pointer_test::PointerVisibleTest_002 failed, err=${JSON.stringify(err)}`); + expect(false).assertTrue(); }); var callback = function (err, data) { @@ -91,7 +91,7 @@ describe('MultimodalInput_Pointer_test', function () { expect(true).assertTrue(); console.info(`SetPointerStyle_001 success`); }).catch((err) => { - expect(false).assertTure(); + expect(false).assertTrue(); console.info("promise::catch", err); }); }) @@ -144,7 +144,7 @@ describe('MultimodalInput_Pointer_test', function () { expect(data).assertTrue('Number'); }).catch((err) => { console.info("promise::catch", err); - expect(false).assertTure(); + expect(false).assertTrue(); }); }) }) -- GitLab