Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
c17f7935
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看板
提交
c17f7935
编写于
2月 26, 2022
作者:
L
logic42
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change miscdevice testcase
Signed-off-by:
N
logic42
<
wanglong108@huawei.com
>
上级
ded8a667
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
25 addition
and
14 deletion
+25
-14
sensors/BUILD.gn
sensors/BUILD.gn
+8
-1
sensors/miscdevice_standard/BUILD.gn
sensors/miscdevice_standard/BUILD.gn
+6
-6
sensors/miscdevice_standard/Test.json
sensors/miscdevice_standard/Test.json
+3
-3
sensors/miscdevice_standard/src/main/js/default/test/Vibrator.test.js
...device_standard/src/main/js/default/test/Vibrator.test.js
+1
-1
sensors/miscdevice_standard/src/main/resources/base/element/string.json
...vice_standard/src/main/resources/base/element/string.json
+1
-1
sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js
...standard/src/main/js/default/test/SensorOnOffTest.test.js
+6
-2
未找到文件。
sensors/BUILD.gn
100644 → 100755
浏览文件 @
c17f7935
...
...
@@ -15,7 +15,14 @@ import("//build/ohos_var.gni")
group("sensor") {
testonly = true
if (device_name == "rk3568") {
if (device_name == "m40") {
if (is_standard_system) {
deps = [ "sensor_standard:sensor_js_test" ]
}
} else if (device_name == "rk3568") {
if (is_standard_system) {
deps = [ "sensor_standard:sensor_js_test" ]
}
} else {
if (is_standard_system) {
deps = [ "sensor_standard:sensor_js_test" ]
...
...
sensors/miscdevice_standard/BUILD.gn
浏览文件 @
c17f7935
...
...
@@ -13,19 +13,19 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
sensor
_js_test") {
ohos_js_hap_suite("
miscdevice
_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":
sensor
_js_assets",
":
sensor
_js_resources",
":
miscdevice
_js_assets",
":
miscdevice
_js_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "Acts
Sensor
JSApiTest"
hap_name = "Acts
miscdevice
JSApiTest"
}
ohos_js_assets("
sensor
_js_assets") {
ohos_js_assets("
miscdevice
_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("
sensor
_js_resources") {
ohos_resources("
miscdevice
_js_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
sensors/miscdevice_standard/Test.json
浏览文件 @
c17f7935
{
"description"
:
"Configuration for
sensor
js api Tests"
,
"description"
:
"Configuration for
miscdevice
js api Tests"
,
"driver"
:
{
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"160000"
,
...
...
@@ -9,7 +9,7 @@
"kits"
:
[
{
"test-file-name"
:
[
"Acts
Sensor
JSApiTest.hap"
"Acts
miscdevice
JSApiTest.hap"
],
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
...
...
sensors/miscdevice_standard/src/main/js/default/test/Vibrator.test.js
浏览文件 @
c17f7935
...
...
@@ -232,7 +232,7 @@ describe("VibratorJsTest", function () {
* @tc.require: Issue Number
*/
it
(
"
VibratorJsTest009
"
,
0
,
async
function
(
done
)
{
console
.
info
(
'
----------------------
Sens
orJsTest001---------------------------
'
);
console
.
info
(
'
----------------------
Vibrat
orJsTest001---------------------------
'
);
function
stopPromise
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
vibrator
.
stop
(
"
time
"
,
(
error
)
=>
{
...
...
sensors/miscdevice_standard/src/main/resources/base/element/string.json
浏览文件 @
c17f7935
...
...
@@ -2,7 +2,7 @@
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"
Sensor
JSApiTest"
"value"
:
"
miscdevice
JSApiTest"
},
{
"name"
:
"mainability_description"
,
...
...
sensors/sensor_standard/src/main/js/default/test/SensorOnOffTest.test.js
100644 → 100755
浏览文件 @
c17f7935
...
...
@@ -55,8 +55,12 @@ describe('SystemParameterTest', function () {
console
.
info
(
'
SUB_SENSORS_Sensor_JSTest_0010 start
'
);
await
sensor
.
on
(
0
,
function
(
error
,
data
)
{
if
(
error
)
{
console
.
info
(
'
testRegisterSensortest001 on error
'
);
if
(
error
.
code
==
-
1
)
{
console
.
info
(
"
testRegisterSensortest001 on error: sensor 0 not exit
"
)
}
else
{
console
.
info
(
'
testRegisterSensortest001 on error :
'
+
error
.
code
);
expect
(
false
).
assertTrue
();
}
done
();
}
else
{
console
.
info
(
'
testRegisterSensortest001 on success
'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录