From 1b5d0d422847beb5413da3bc9c3220fc7a4db844 Mon Sep 17 00:00:00 2001 From: chengyuxi Date: Mon, 15 Aug 2022 15:11:14 +0800 Subject: [PATCH] chengyuxi@huawei.com Signed-off-by: chengyuxi --- .../main/ets/test/MultimodalInputEventType.test.ets | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets b/multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets index 01b7e3d9d..f1556f6a7 100755 --- a/multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets +++ b/multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets @@ -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`); + }) }) } -- GitLab