Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
5cf07cd4
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看板
提交
5cf07cd4
编写于
8月 26, 2022
作者:
L
lidanyang16
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
<lidanyang16@huawei.com>
Signed-off-by:
N
lidanyang16
<
lidanyang16@huawei.com
>
上级
4bd7310b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
21 addition
and
27 deletion
+21
-27
sensors/BUILD.gn
sensors/BUILD.gn
+5
-12
sensors/miscdevice_standard/src/main/js/default/test/List.test.js
...miscdevice_standard/src/main/js/default/test/List.test.js
+1
-1
sensors/miscdevice_standard/src/main/js/default/test/Vibrator_new.test.js.js
...standard/src/main/js/default/test/Vibrator_new.test.js.js
+15
-14
sensors/miscdevice_standard/src/main/js/default/test/Vibrator_old.test.js.js
...standard/src/main/js/default/test/Vibrator_old.test.js.js
+0
-0
未找到文件。
sensors/BUILD.gn
100755 → 100644
浏览文件 @
5cf07cd4
...
...
@@ -15,17 +15,10 @@ import("//build/ohos_var.gni")
group("sensor") {
testonly = true
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" ]
}
if (is_standard_system) {
deps = [
"miscdevice_standard:miscdevice_js_test",
"sensor_standard:sensor_js_test",
]
}
}
sensors/miscdevice_standard/src/main/js/default/test/List.test.js
浏览文件 @
5cf07cd4
...
...
@@ -13,4 +13,4 @@
* limitations under the License.
*/
require
(
'
./Vibrator.test.js
'
)
require
(
'
./Vibrator
_new
.test.js
'
)
sensors/miscdevice_standard/src/main/js/default/test/Vibrator
.test
.js
→
sensors/miscdevice_standard/src/main/js/default/test/Vibrator
_new.test.js
.js
浏览文件 @
5cf07cd4
...
...
@@ -395,16 +395,16 @@ describe("VibratorJsTest_miscdevice2", function () {
* @tc.type: FUNC
* @tc.require: Issue Number
*/
it
(
"
VibratorJsTest015
"
,
0
,
async
function
(
done
)
{
vibrator
.
vibrate
(
"
"
).
then
(()
=>
{
console
.
log
(
"
VibratorJsTest015
vibrate error
"
);
expect
(
fals
e
).
assertTrue
();
it
(
"
VibratorJsTest015
"
,
0
,
async
function
(
done
)
{
vibrator
.
stop
(
"
preset
"
).
then
(()
=>
{
console
.
log
(
"
VibratorJsTest015
off success
"
);
expect
(
tru
e
).
assertTrue
();
setTimeout
(()
=>
{
done
();
},
500
);
},
(
error
)
=>
{
expect
(
tru
e
).
assertTrue
();
console
.
log
(
"
VibratorJsTest015
vibrate success
"
);
expect
(
fals
e
).
assertTrue
();
console
.
log
(
"
VibratorJsTest015
off error
"
);
setTimeout
(()
=>
{
done
();
},
500
);
...
...
@@ -419,14 +419,14 @@ describe("VibratorJsTest_miscdevice2", function () {
*/
it
(
"
VibratorJsTest016
"
,
0
,
async
function
(
done
)
{
vibrator
.
stop
(
""
).
then
(()
=>
{
console
.
log
(
"
VibratorJsTest016
stop error
"
);
console
.
log
(
"
VibratorJsTest016 stop error
"
);
expect
(
false
).
assertTrue
();
setTimeout
(()
=>
{
done
();
},
500
);
},
(
error
)
=>
{
expect
(
true
).
assertTrue
();
console
.
log
(
"
VibratorJsTest016
stop success
"
);
console
.
log
(
"
VibratorJsTest016 stop success
"
);
setTimeout
(()
=>
{
done
();
},
500
);
...
...
@@ -439,21 +439,22 @@ describe("VibratorJsTest_miscdevice2", function () {
* @tc.type: FUNC
* @tc.require: Issue Number
*/
it
(
"
VibratorJsTest017
"
,
0
,
async
function
(
done
)
{
vibrator
.
stop
(
"
preset
"
).
then
(()
=>
{
console
.
log
(
"
VibratorJsTest017
off success
"
);
expect
(
tru
e
).
assertTrue
();
it
(
"
VibratorJsTest017
"
,
0
,
async
function
(
done
)
{
vibrator
.
vibrate
(
"
"
).
then
(()
=>
{
console
.
log
(
"
VibratorJsTest017
vibrate error
"
);
expect
(
fals
e
).
assertTrue
();
setTimeout
(()
=>
{
done
();
},
500
);
},
(
error
)
=>
{
expect
(
fals
e
).
assertTrue
();
console
.
log
(
"
VibratorJsTest017
off error
"
);
expect
(
tru
e
).
assertTrue
();
console
.
log
(
"
VibratorJsTest017
vibrate success
"
);
setTimeout
(()
=>
{
done
();
},
500
);
});
})
/*
* @tc.name:VibratorJsTest018
...
...
sensors/miscdevice_standard/src/main/js/default/test/
vibrate
.js
→
sensors/miscdevice_standard/src/main/js/default/test/
Vibrator_old.test.js
.js
浏览文件 @
5cf07cd4
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录