From 52b0605c6fb6ed9274d4d743bf3e915b71903544 Mon Sep 17 00:00:00 2001 From: yuexinyao1 Date: Fri, 18 Aug 2023 15:59:12 +0800 Subject: [PATCH] yuexinyao1@huawei.com Signed-off-by: yuexinyao1 --- .../input_js_standard/src/main/js/test/Pointer.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js b/multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js index dced28167..709472aac 100644 --- a/multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js +++ b/multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js @@ -164,14 +164,18 @@ export default function Pointer_test() { try { var windowId = data.id; pointer.setPointerStyle(windowId, 4, (err) => { + try{ if (err) { console.info(`SetPointerStyle_002 failed_1, err=${JSON.stringify(err)}`); expect(false).assertTrue(); } else { console.info(`SetPointerStyle_002 success`); expect(true).assertTrue(); - resolve(); } + }catch(error){ + console.info(`SetPointerStyle_002 assert fail`); + } + resolve(); }); } catch (error) { console.info(`SetPointerStyle_002 error`); -- GitLab