未验证 提交 c3f26558 编写于 作者: O openharmony_ci 提交者: Gitee

!5854 错误码整改,xts优化

Merge pull request !5854 from mayunteng/master
...@@ -153,7 +153,7 @@ describe('MultimodalInput_Device_test', function () { ...@@ -153,7 +153,7 @@ describe('MultimodalInput_Device_test', function () {
console.info(res); console.info(res);
}); });
} catch (error) { } catch (error) {
expect(error.message).assertEqual("SupportKeys: \"The second parameter type is wrong\""); expect(error.message).assertEqual("Parameter error. The type of keys must be array.");
} }
console.info(`inputDevice::supportKeys_test-02 exit`); console.info(`inputDevice::supportKeys_test-02 exit`);
}) })
...@@ -297,18 +297,16 @@ describe('MultimodalInput_Device_test', function () { ...@@ -297,18 +297,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, async 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.
先完成此消息的编辑!
想要评论请 注册