提交 2115aadc 编写于 作者: M mayunteng_1

用例修改

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I4aa19e2c52765c376a70a4d7937bce07d96c6f36
上级 a387f71f
...@@ -205,7 +205,6 @@ describe('MultimodalInput_test', function () { ...@@ -205,7 +205,6 @@ describe('MultimodalInput_test', function () {
for (let i = 0; i < data.length; ++i) { for (let i = 0; i < data.length; ++i) {
inputDevice.getKeyboardType(data[i]).then((res) => { inputDevice.getKeyboardType(data[i]).then((res) => {
expect(res).assertInstanceOf('number'); expect(res).assertInstanceOf('number');
done();
}); });
} }
} }
...@@ -282,8 +281,8 @@ describe('MultimodalInput_test', function () { ...@@ -282,8 +281,8 @@ describe('MultimodalInput_test', function () {
* @tc.name MultimodalInputDevice_getDeviceIds_Promise_test * @tc.name MultimodalInputDevice_getDeviceIds_Promise_test
* @tc.desc inputdevice interface getDeviceIds & supportKeys test * @tc.desc inputdevice interface getDeviceIds & supportKeys test
*/ */
it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, async function () { it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, async function (done) {
console.info(`inputDevice::supportKeys_test-01 enter`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test enter`);
await inputDevice.getDeviceIds().then((data, err) => { await inputDevice.getDeviceIds().then((data, err) => {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
...@@ -296,7 +295,7 @@ describe('MultimodalInput_test', function () { ...@@ -296,7 +295,7 @@ describe('MultimodalInput_test', function () {
} }
done(); done();
} }
console.info(`inputDevice::supportKeys_test-01 exit`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test exit`);
}); });
}) })
...@@ -305,18 +304,18 @@ describe('MultimodalInput_test', function () { ...@@ -305,18 +304,18 @@ describe('MultimodalInput_test', function () {
* @tc.name MultimodalInputDevice_getDevice_Promise_test * @tc.name MultimodalInputDevice_getDevice_Promise_test
* @tc.desc inputdevice interface getDevice test * @tc.desc inputdevice interface getDevice test
*/ */
it("MultimodalInputDevice_getDevice_Promise_test", 0, async function () { it("MultimodalInputDevice_getDevice_Promise_test", 0, async function (done) {
console.info(`inputDevice::getDevice_test-01 enter`); console.info(`MultimodalInputDevice_getDevice_Promise_test enter`);
await inputDevice.getDevice(-1).then((data, err) => { await inputDevice.getDevice(-1).then((data, err) => {
if (err) { if (err) {
expect(false).assertTrue(); expect(false).assertTrue();
console.info(`inputDevice::getDevice_test-01 ${JSON.stringify(err)}`); console.info(`MultimodalInputDevice_getDevice_Promise_test ${JSON.stringify(err)}`);
done(); done();
} else { } else {
expect(JSON.stringify(data) !== "{}").assertTrue(); expect(JSON.stringify(data) !== "{}").assertTrue();
done(); done();
} }
console.info(`inputDevice::getDevice_test-01 exit`); console.info(`MultimodalInputDevice_getDevice_Promise_test exit`);
}); });
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册