Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1cbd3d2c
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
大约 1 年 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1cbd3d2c
编写于
1月 19, 2023
作者:
Y
yuexinyao1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
yuexinyao1@huawei.com
Signed-off-by:
N
yuexinyao1
<
yuexinyao1@huawei.com
>
上级
536ce6ad
变更
6
展开全部
隐藏空白更改
内联
并排
Showing
6 changed file
with
2926 addition
and
2927 deletion
+2926
-2927
multimodalinput/input_js_standard/src/main/js/test/InputDevice.test.js
...ut/input_js_standard/src/main/js/test/InputDevice.test.js
+126
-126
multimodalinput/input_js_standard/src/main/js/test/ListMultimodalinput.test.js
..._js_standard/src/main/js/test/ListMultimodalinput.test.js
+1
-1
multimodalinput/input_js_standard/src/main/js/test/MultimodalInputKey_Code.test.js
...standard/src/main/js/test/MultimodalInputKey_Code.test.js
+0
-2662
multimodalinput/input_js_standard/src/main/js/test/MultimodalInput_KeyCode.test.js
...standard/src/main/js/test/MultimodalInput_KeyCode.test.js
+2662
-0
multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js
...linput/input_js_standard/src/main/js/test/Pointer.test.js
+74
-75
multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets
...entry/src/main/ets/test/MultimodalInputEventType.test.ets
+63
-63
未找到文件。
multimodalinput/input_js_standard/src/main/js/test/InputDevice.test.js
浏览文件 @
1cbd3d2c
此差异已折叠。
点击以展开。
multimodalinput/input_js_standard/src/main/js/test/ListMultimodalinput.test.js
浏览文件 @
1cbd3d2c
...
...
@@ -14,7 +14,7 @@
*/
import
MultimodalInput_Device_test
from
'
./InputDevice.test.js
'
import
MultimodalInput_KeyCode_test
from
'
./MultimodalInput
Key_
Code.test.js
'
import
MultimodalInput_KeyCode_test
from
'
./MultimodalInput
_Key
Code.test.js
'
import
MultimodalInput_Pointer_test
from
'
./Pointer.test.js
'
export
default
function
testsuite
()
{
MultimodalInput_Device_test
()
...
...
multimodalinput/input_js_standard/src/main/js/test/MultimodalInputKey_Code.test.js
已删除
100644 → 0
浏览文件 @
536ce6ad
此差异已折叠。
点击以展开。
multimodalinput/input_js_standard/src/main/js/test/MultimodalInput_KeyCode.test.js
0 → 100644
浏览文件 @
1cbd3d2c
此差异已折叠。
点击以展开。
multimodalinput/input_js_standard/src/main/js/test/Pointer.test.js
浏览文件 @
1cbd3d2c
此差异已折叠。
点击以展开。
multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets
浏览文件 @
1cbd3d2c
...
...
@@ -26,18 +26,18 @@ import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, TestT
export default function MultimodalInputEventTypeTest() {
describe('MultimodalInput_test', function () {
it('MultimodalInput_
test::
KeyEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0010 enter`);
it('MultimodalInput_KeyEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_KeyEventTypeTest_0010 enter`);
expect(keyEvent.Action.CANCEL == 0).assertTrue();
expect(keyEvent.Action.DOWN == 1).assertTrue();
expect(keyEvent.Action.UP == 2).assertTrue();
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0010 exit`);
console.info(`MultimodalInput_KeyEventTypeTest_0010 exit`);
})
it('MultimodalInput_
test::
KeyEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0020 enter`);
it('MultimodalInput_KeyEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_KeyEventTypeTest_0020 enter`);
let testKey: Key = { code: inputkeyCode.KeyCode.KEYCODE_FN, pressedTime: 10, deviceId: 1 };
...
...
@@ -45,11 +45,11 @@ export default function MultimodalInputEventTypeTest() {
expect(testKey.pressedTime == 10).assertTrue();
expect(testKey.deviceId == 1).assertTrue();
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0020 exit`);
console.info(`MultimodalInput_KeyEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
KeyEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0030 enter`);
it('MultimodalInput_KeyEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_KeyEventTypeTest_0030 enter`);
let testKey: Key = { code: inputkeyCode.KeyCode.KEYCODE_FN, pressedTime: 10, deviceId: 1 };
let testKeyEvent: KeyEvent = {
...
...
@@ -72,11 +72,11 @@ export default function MultimodalInputEventTypeTest() {
expect(testKeyEvent.numLock).assertTrue();
expect(testKeyEvent.scrollLock).assertTrue();
console.info(`MultimodalInput_
test::
KeyEventTypeTest_0030 exit`);
console.info(`MultimodalInput_KeyEventTypeTest_0030 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0010 enter`);
it('MultimodalInput_MouseEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0010 enter`);
expect(mouseEvent.Action.CANCEL == 0).assertTrue();
expect(mouseEvent.Action.MOVE == 1).assertTrue();
...
...
@@ -86,92 +86,92 @@ export default function MultimodalInputEventTypeTest() {
expect(mouseEvent.Action.AXIS_UPDATE == 5).assertTrue();
expect(mouseEvent.Action.AXIS_END == 6).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0010 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0010 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.LEFT == 0).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00201', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00201', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.MIDDLE == 1).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00202', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00202', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.RIGHT == 2).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00203', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00203', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.SIDE == 3).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00204', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00204', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.EXTRA == 4).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00205', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00205', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.FORWARD == 5).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00206', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00206', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.BACK == 6).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_00207', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
it('MultimodalInput_MouseEventTypeTest_00207', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0020 enter` + mouseEvent.Button.LEFT + mouseEvent.Button.MIDDLE + mouseEvent.Button.RIGHT + mouseEvent.Button.SIDE +mouseEvent.Button.EXTRA +mouseEvent.Button.BACK + mouseEvent.Button.TASK );
expect(mouseEvent.Button.TASK == 7).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0020 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0030 enter`);
it('MultimodalInput_MouseEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0030 enter`);
expect(mouseEvent.Axis.SCROLL_VERTICAL == 0).assertTrue();
expect(mouseEvent.Axis.SCROLL_HORIZONTAL == 1).assertTrue();
expect(mouseEvent.Axis.PINCH == 2).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0030 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0030 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_0040', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0040 enter`);
it('MultimodalInput_MouseEventTypeTest_0040', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0040 enter`);
let testAxisValue: AxisValue = { axis: mouseEvent.Axis.SCROLL_VERTICAL, value: 1 };
expect(testAxisValue.axis == mouseEvent.Axis.SCROLL_VERTICAL).assertTrue();
expect(testAxisValue.value == 1).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0040 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0040 exit`);
})
it('MultimodalInput_
test::
MouseEventTypeTest_0050', 0, function () {
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0050 enter`);
it('MultimodalInput_MouseEventTypeTest_0050', 0, function () {
console.info(`MultimodalInput_MouseEventTypeTest_0050 enter`);
let testAxisValue: AxisValue = { axis: mouseEvent.Axis.SCROLL_VERTICAL, value: 1 };
let testMouseEvent: MouseEvent = {
...
...
@@ -202,22 +202,22 @@ export default function MultimodalInputEventTypeTest() {
expect(testMouseEvent.numLock).assertTrue();
expect(testMouseEvent.scrollLock).assertTrue();
console.info(`MultimodalInput_
test::
MouseEventTypeTest_0050 exit`);
console.info(`MultimodalInput_MouseEventTypeTest_0050 exit`);
})
it('MultimodalInput_
test::
TouchEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0010 enter`);
it('MultimodalInput_TouchEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_TouchEventTypeTest_0010 enter`);
expect(touchEvent.Action.CANCEL == 0).assertTrue();
expect(touchEvent.Action.DOWN == 1).assertTrue();
expect(touchEvent.Action.MOVE == 2).assertTrue();
expect(touchEvent.Action.UP == 3).assertTrue();
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0010 exit`);
console.info(`MultimodalInput_TouchEventTypeTest_0010 exit`);
})
it('MultimodalInput_
test::
TouchEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0020 enter`);
it('MultimodalInput_TouchEventTypeTest_0020', 0, function () {
console.info(`MultimodalInput_TouchEventTypeTest_0020 enter`);
expect(touchEvent.ToolType.FINGER == 0).assertTrue();
expect(touchEvent.ToolType.PEN == 1).assertTrue();
...
...
@@ -228,21 +228,21 @@ export default function MultimodalInputEventTypeTest() {
expect(touchEvent.ToolType.MOUSE == 6).assertTrue();
expect(touchEvent.ToolType.LENS == 7).assertTrue();
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0020 exit`);
console.info(`MultimodalInput_TouchEventTypeTest_0020 exit`);
})
it('MultimodalInput_
test::
TouchEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0030 enter`);
it('MultimodalInput_TouchEventTypeTest_0030', 0, function () {
console.info(`MultimodalInput_TouchEventTypeTest_0030 enter`);
expect(touchEvent.SourceType.TOUCH_SCREEN == 0).assertTrue();
expect(touchEvent.SourceType.PEN == 1).assertTrue();
expect(touchEvent.SourceType.TOUCH_PAD == 2).assertTrue();
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0030 exit`);
console.info(`MultimodalInput_TouchEventTypeTest_0030 exit`);
})
it('MultimodalInput_
test::
TouchEventTypeTest_0040', 0, function () {
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0040 enter`);
it('MultimodalInput_TouchEventTypeTest_0040', 0, function () {
console.info(`MultimodalInput_TouchEventTypeTest_0040 enter`);
let testTouch: Touch = {
id: 1, pressedTime: 1, screenX: 1, screenY: 1, windowX: 1, windowY: 1, pressure: 1,
...
...
@@ -268,11 +268,11 @@ export default function MultimodalInputEventTypeTest() {
expect(testTouch.rawY == 1).assertTrue();
expect(testTouch.toolType == touchEvent.ToolType.FINGER).assertTrue();
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0040 exit`);
console.info(`MultimodalInput_TouchEventTypeTest_0040 exit`);
})
it('MultimodalInput_
test::
TouchEventTypeTest_0050', 0, function () {
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0050 enter`);
it('MultimodalInput_TouchEventTypeTest_0050', 0, function () {
console.info(`MultimodalInput_TouchEventTypeTest_0050 enter`);
let testTouch: Touch = {
id: 1, pressedTime: 1, screenX: 1, screenY: 1, windowX: 1, windowY: 1, pressure: 1,
...
...
@@ -289,11 +289,11 @@ export default function MultimodalInputEventTypeTest() {
expect(testTouchEvent.touches[0].id == 1).assertTrue();
expect(testTouchEvent.sourceType == touchEvent.SourceType.TOUCH_SCREEN).assertTrue();
console.info(`MultimodalInput_
test::
TouchEventTypeTest_0050 exit`);
console.info(`MultimodalInput_TouchEventTypeTest_0050 exit`);
})
it('MultimodalInput_
test::
InputEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_
test::
InputEventTypeTest_0010 enter`);
it('MultimodalInput_InputEventTypeTest_0010', 0, function () {
console.info(`MultimodalInput_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();
...
...
@@ -301,7 +301,7 @@ export default function MultimodalInputEventTypeTest() {
expect(testInputEvent.screenId == 1).assertTrue();
expect(testInputEvent.windowId == 1).assertTrue();
console.info(`MultimodalInput_
test::
InputEventTypeTest_0010 exit`);
console.info(`MultimodalInput_InputEventTypeTest_0010 exit`);
})
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录