提交 3192e34f 编写于 作者: M mayunteng_1

xts修改

Signed-off-by: Nmayunteng_1 <mayunteng@huawei.com>
Change-Id: I759ee02edb4da2336df18ef631343a15f5664e9a
上级 cdac67bb
...@@ -272,13 +272,12 @@ describe('MultimodalInput_Device_test', function () { ...@@ -272,13 +272,12 @@ describe('MultimodalInput_Device_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 (done) { it("MultimodalInputDevice_getDeviceIds_Promise_test", 0, function () {
console.info(`MultimodalInputDevice_getDeviceIds_Promise_test enter`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test enter`);
inputDevice.getDeviceIds().then((data, err) => { inputDevice.getDeviceIds().then((data, err) => {
if (err) { if (err) {
console.info(`MultimodalInputDevice_getDeviceIds_Promise_test err`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test err`);
expect(false).assertTrue(); expect(false).assertTrue();
done();
} else { } else {
console.info(`MultimodalInputDevice_getDeviceIds_Promise_test data`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test data`);
for (let i = 0; i < data.length; ++i) { for (let i = 0; i < data.length; ++i) {
...@@ -286,7 +285,6 @@ describe('MultimodalInput_Device_test', function () { ...@@ -286,7 +285,6 @@ describe('MultimodalInput_Device_test', function () {
expect(res).assertInstanceOf('Array'); expect(res).assertInstanceOf('Array');
}); });
} }
done();
} }
console.info(`MultimodalInputDevice_getDeviceIds_Promise_test exit`); console.info(`MultimodalInputDevice_getDeviceIds_Promise_test exit`);
}); });
...@@ -297,18 +295,16 @@ describe('MultimodalInput_Device_test', function () { ...@@ -297,18 +295,16 @@ describe('MultimodalInput_Device_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 (done) { it("MultimodalInputDevice_getDevice_Promise_test", 0, function () {
console.info(`MultimodalInputDevice_getDevice_Promise_test enter`); console.info(`MultimodalInputDevice_getDevice_Promise_test enter`);
inputDevice.getDevice(-1).then((data, err) => { inputDevice.getDevice(-1).then((data, err) => {
if (err) { if (err) {
console.info(`MultimodalInputDevice_getDevice_Promise_test err`); console.info(`MultimodalInputDevice_getDevice_Promise_test err`);
expect(false).assertTrue(); expect(false).assertTrue();
console.info(`MultimodalInputDevice_getDevice_Promise_test ${JSON.stringify(err)}`); console.info(`MultimodalInputDevice_getDevice_Promise_test ${JSON.stringify(err)}`);
done();
} else { } else {
console.info(`MultimodalInputDevice_getDevice_Promise_test data`); console.info(`MultimodalInputDevice_getDevice_Promise_test data`);
expect(JSON.stringify(data) !== "{}").assertTrue(); expect(JSON.stringify(data) !== "{}").assertTrue();
done();
} }
console.info(`MultimodalInputDevice_getDevice_Promise_test 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.
先完成此消息的编辑!
想要评论请 注册