From 2115aadcbe6410a5052a918cd2eb479ac50350ce Mon Sep 17 00:00:00 2001 From: mayunteng_1 Date: Mon, 22 Aug 2022 16:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mayunteng_1 Change-Id: I4aa19e2c52765c376a70a4d7937bce07d96c6f36 --- .../src/main/js/default/test/InputDevice.test.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 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 554eda40f..ad4ff880d 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 @@ -205,7 +205,6 @@ describe('MultimodalInput_test', function () { for (let i = 0; i < data.length; ++i) { inputDevice.getKeyboardType(data[i]).then((res) => { expect(res).assertInstanceOf('number'); - done(); }); } } @@ -282,8 +281,8 @@ describe('MultimodalInput_test', function () { * @tc.name MultimodalInputDevice_getDeviceIds_Promise_test * @tc.desc inputdevice interface getDeviceIds & supportKeys test */ - it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, async function () { - console.info(`inputDevice::supportKeys_test-01 enter`); + it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, async function (done) { + console.info(`MultimodalInputDevice_getDeviceIds_Promise_test enter`); await inputDevice.getDeviceIds().then((data, err) => { if (err) { expect(false).assertTrue(); @@ -296,7 +295,7 @@ describe('MultimodalInput_test', function () { } done(); } - console.info(`inputDevice::supportKeys_test-01 exit`); + console.info(`MultimodalInputDevice_getDeviceIds_Promise_test exit`); }); }) @@ -305,18 +304,18 @@ describe('MultimodalInput_test', function () { * @tc.name MultimodalInputDevice_getDevice_Promise_test * @tc.desc inputdevice interface getDevice test */ - it("MultimodalInputDevice_getDevice_Promise_test", 0, async function () { - console.info(`inputDevice::getDevice_test-01 enter`); + it("MultimodalInputDevice_getDevice_Promise_test", 0, async function (done) { + console.info(`MultimodalInputDevice_getDevice_Promise_test enter`); await inputDevice.getDevice(-1).then((data, err) => { if (err) { expect(false).assertTrue(); - console.info(`inputDevice::getDevice_test-01 ${JSON.stringify(err)}`); + console.info(`MultimodalInputDevice_getDevice_Promise_test ${JSON.stringify(err)}`); done(); } else { expect(JSON.stringify(data) !== "{}").assertTrue(); done(); } - console.info(`inputDevice::getDevice_test-01 exit`); + console.info(`MultimodalInputDevice_getDevice_Promise_test exit`); }); }) -- GitLab