From 7114793066a6ed0d54153e343addb606debd6ace Mon Sep 17 00:00:00 2001 From: chenkang Date: Mon, 25 Jul 2022 16:21:23 +0800 Subject: [PATCH] fixed 58095ed from https://gitee.com/alien0208/xts_acts/pulls/4560 update testcase on off change Signed-off-by: chenkang --- .../src/main/js/default/test/InputDevice.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js b/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js index b41653dbd..554eda40f 100755 --- a/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js +++ b/multimodalinput/input_js_standard/src/main/js/default/test/InputDevice.test.js @@ -328,7 +328,7 @@ describe('MultimodalInput_test', function () { it("MultimodalInputDevice_on_test", 0, function () { console.info(`MultimodalInputDevice_on_test enter`); let isPhysicalKeyboardExist = true; - inputDevice.on("changed", (data) => { + inputDevice.on("change", (data) => { console.info("type: " + data.type + ", deviceId: " + data.deviceId); inputDevice.getKeyboardType(data.deviceId, (err, ret) => { console.info("The keyboard type of the device is: " + ret); @@ -357,7 +357,7 @@ describe('MultimodalInput_test', function () { expect(data).assertInstanceOf('DeviceListener'); } // 单独取消listener的监听。 - inputDevice.off("changed", listener); + inputDevice.off("change", listener); console.info(`MultimodalInputDevice_off_test exit`); }) -- GitLab