Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
1330043b
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看板
提交
1330043b
编写于
8月 06, 2022
作者:
C
chenkang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Signed-off-by:
N
chenkang
<
chenkang85@huawei.com
>
上级
08d9a9cd
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
75 addition
and
71 deletion
+75
-71
multimodalinput/input_js_standard/BUILD.gn
multimodalinput/input_js_standard/BUILD.gn
+33
-31
multimodalinput/multimodalinput_ets_standard/BUILD.gn
multimodalinput/multimodalinput_ets_standard/BUILD.gn
+38
-36
multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets
...entry/src/main/ets/test/MultimodalInputEventType.test.ets
+4
-4
未找到文件。
multimodalinput/input_js_standard/BUILD.gn
100644 → 100755
浏览文件 @
1330043b
# Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("multimodalinput_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":multimodalinput_js_assets",
":multimodalinput_js_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsMultimodalinputJSApiTest"
}
ohos_js_assets("multimodalinput_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("multimodalinput_js_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
# Copyright (C) 2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("multimodalinput_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":multimodalinput_js_assets",
":multimodalinput_js_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsMultimodalinputJSApiTest"
subsystem_name = "multimodalinput"
part_name = "input"
}
ohos_js_assets("multimodalinput_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("multimodalinput_js_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
multimodalinput/multimodalinput_ets_standard/BUILD.gn
浏览文件 @
1330043b
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsMultimodalInputEtsTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":multimodalinput_ets_assets",
":multimodalinput_ets_resources",
":multimodalinput_ets_test_assets",
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsMultimodalInputEtsTest"
}
ohos_js_assets("multimodalinput_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
}
ohos_js_assets("multimodalinput_ets_test_assets") {
source_dir = "./entry/src/main/ets/TestAbility"
}
ohos_resources("multimodalinput_ets_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
# Copyright (c) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsMultimodalInputEtsTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":multimodalinput_ets_assets",
":multimodalinput_ets_resources",
":multimodalinput_ets_test_assets",
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsMultimodalInputEtsTest"
subsystem_name = "multimodalinput"
part_name = "input"
}
ohos_js_assets("multimodalinput_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
}
ohos_js_assets("multimodalinput_ets_test_assets") {
source_dir = "./entry/src/main/ets/TestAbility"
}
ohos_resources("multimodalinput_ets_resources") {
sources = [ "./entry/src/main/resources" ]
hap_profile = "./entry/src/main/config.json"
}
multimodalinput/multimodalinput_ets_standard/entry/src/main/ets/test/MultimodalInputEventType.test.ets
浏览文件 @
1330043b
...
...
@@ -63,7 +63,7 @@ export default function MultimodalInputEventTypeTest() {
let testKeyEvent: KeyEvent = {
id: 1, deviceId: 1, actionTime: 1, screenId: 1, windowId: 1,
action: keyEvent.Action.DOWN, key: testKey, unicodeChar: 1, keys: [testKey],
ctrlKey: true, altKey: true, shiftKey: true,
info
oKey: true, fnKey: true, capsLock: true, numLock: true,
ctrlKey: true, altKey: true, shiftKey: true,
log
oKey: true, fnKey: true, capsLock: true, numLock: true,
scrollLock: true
};
...
...
@@ -74,7 +74,7 @@ export default function MultimodalInputEventTypeTest() {
expect(testKeyEvent.ctrlKey).assertTrue();
expect(testKeyEvent.altKey).assertTrue();
expect(testKeyEvent.shiftKey).assertTrue();
expect(testKeyEvent.
info
oKey).assertTrue();
expect(testKeyEvent.
log
oKey).assertTrue();
expect(testKeyEvent.fnKey).assertTrue();
expect(testKeyEvent.capsLock).assertTrue();
expect(testKeyEvent.numLock).assertTrue();
...
...
@@ -188,7 +188,7 @@ export default function MultimodalInputEventTypeTest() {
windowY: 1, rawDeltaX: 1, rawDeltaY: 1, button: mouseEvent.Button.LEFT,
pressedButtons: [mouseEvent.Button.LEFT], axes: [testAxisValue],
pressedKeys: [inputkeyCode.KeyCode.KEYCODE_FN], ctrlKey: true, altKey: true, shiftKey: true,
info
oKey: true, fnKey: true, capsLock: true, numLock: true, scrollLock: true
log
oKey: true, fnKey: true, capsLock: true, numLock: true, scrollLock: true
};
expect(testMouseEvent.action == mouseEvent.Action.CANCEL).assertTrue();
expect(testMouseEvent.screenX == 1).assertTrue();
...
...
@@ -204,7 +204,7 @@ export default function MultimodalInputEventTypeTest() {
expect(testMouseEvent.ctrlKey).assertTrue();
expect(testMouseEvent.altKey).assertTrue();
expect(testMouseEvent.shiftKey).assertTrue();
expect(testMouseEvent.
info
oKey).assertTrue();
expect(testMouseEvent.
log
oKey).assertTrue();
expect(testMouseEvent.fnKey).assertTrue();
expect(testMouseEvent.capsLock).assertTrue();
expect(testMouseEvent.numLock).assertTrue();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录