提交 58095eda 编写于 作者: C chenkang

update testcase on off change

Signed-off-by: Nchenkang <chenkang85@huawei.com>
上级 9cae1a61
......@@ -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`);
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册