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

!4971 多模api覆盖新增用例

Merge pull request !4971 from chengyuxi/master
......@@ -17,6 +17,7 @@ import inputkeyCode from '@ohos.multimodalInput.keyCode'
import keyEvent from '@ohos.multimodalInput.keyEvent'
import mouseEvent from '@ohos.multimodalInput.mouseEvent'
import touchEvent from '@ohos.multimodalInput.touchEvent'
import inputEvent from '@ohos.multimodalInput.inputEvent'
import { Key, KeyEvent } from '@ohos.multimodalInput.keyEvent'
import { AxisValue, MouseEvent } from '@ohos.multimodalInput.mouseEvent'
import { Touch, TouchEvent } from '@ohos.multimodalInput.touchEvent'
......@@ -299,5 +300,17 @@ export default function MultimodalInputEventTypeTest() {
console.info(`MultimodalInput_test::TouchEventTypeTest_0050 exit`);
})
it('MultimodalInput_test::InputEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_test::InputEventTypeTest_0010 enter`);
let testInputEvent = {id: 1, deviceId: 1, actionTime: 1, screenId: 1, windowId: 1};
expect(testInputEvent.id == 1).assertTrue();
expect(testInputEvent.deviceId == 1).assertTrue();
expect(testInputEvent.actionTime == 1).assertTrue();
expect(testInputEvent.screenId == 1).assertTrue();
expect(testInputEvent.windowId == 1).assertTrue();
console.info(`MultimodalInput_test::InputEventTypeTest_0010 exit`);
})
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册