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

!5071 多模api覆盖新增用例

Merge pull request !5071 from chengyuxi/cherry-pick-1661134980
......@@ -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.
先完成此消息的编辑!
想要评论请 注册