Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
81b05579
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看板
未验证
提交
81b05579
编写于
8月 26, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 26, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9864 测试用例优化
Merge pull request !9864 from lixiangpeng5/master-lxp
上级
4995d90c
bff9bf46
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
49 addition
and
14 deletion
+49
-14
sensors/miscdevice_standard/src/main/js/test/Vibrator_new.test.js
...miscdevice_standard/src/main/js/test/Vibrator_new.test.js
+5
-3
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupplement.test.js
..._standard/src/main/js/test/Vibrator_newSupplement.test.js
+28
-3
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupplement_common.test.js
...rd/src/main/js/test/Vibrator_newSupplement_common.test.js
+7
-3
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupportTest.test.js
...standard/src/main/js/test/Vibrator_newSupportTest.test.js
+0
-3
sensors/miscdevice_standard/src/main/js/test/Vibrator_options.test.js
...device_standard/src/main/js/test/Vibrator_options.test.js
+9
-2
未找到文件。
sensors/miscdevice_standard/src/main/js/test/Vibrator_new.test.js
浏览文件 @
81b05579
...
...
@@ -47,9 +47,6 @@ describe("VibratorJsTest_misc_4", function () {
/*
* @tc.teardown: teardown invoked after each testcases
*/
console
.
info
(
'
afterEach caled
'
)
vibrator
.
stop
(
"
preset
"
);
vibrator
.
stop
(
"
time
"
);
console
.
info
(
'
afterEach called
'
)
})
...
...
@@ -80,6 +77,7 @@ describe("VibratorJsTest_misc_4", function () {
},
500
);
}
vibrator
.
vibrate
(
10
,
vibrateCallback
);
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -143,6 +141,7 @@ describe("VibratorJsTest_misc_4", function () {
},
500
);
}
vibrator
.
vibrate
(
1800000
,
vibrateCallback
);
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -206,6 +205,7 @@ describe("VibratorJsTest_misc_4", function () {
},
500
);
}
vibrator
.
vibrate
(
"
haptic.clock.timer
"
,
vibrateCallback
);
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -329,6 +329,7 @@ describe("VibratorJsTest_misc_4", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -392,6 +393,7 @@ describe("VibratorJsTest_misc_4", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupplement.test.js
浏览文件 @
81b05579
...
...
@@ -47,9 +47,6 @@ describe("VibratorJsTest_misc_5", function () {
/*
* @tc.teardown: teardown invoked after each testcases
*/
console
.
info
(
'
afterEach caled
'
)
vibrator
.
stop
(
"
preset
"
);
vibrator
.
stop
(
"
time
"
);
console
.
info
(
'
afterEach called
'
)
})
...
...
@@ -84,6 +81,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -140,6 +138,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -237,6 +236,7 @@ describe("VibratorJsTest_misc_5", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -283,6 +283,7 @@ describe("VibratorJsTest_misc_5", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -410,6 +411,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest031 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -462,6 +464,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest032 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -514,6 +517,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest033 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -567,6 +571,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest034 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -619,6 +624,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest035 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -671,6 +677,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest036 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -724,6 +731,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest037 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -777,6 +785,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest038 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -830,6 +839,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest039 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
/*
...
...
@@ -856,6 +866,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -914,6 +925,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -971,6 +983,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -1027,6 +1040,7 @@ describe("VibratorJsTest_misc_5", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -1121,6 +1135,7 @@ describe("VibratorJsTest_misc_5", function () {
console
.
info
(
"
VibratorJsTest050 error :
"
+
error
);
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1171,6 +1186,7 @@ describe("VibratorJsTest_misc_5", function () {
console
.
info
(
"
VibratorJsTest052 error :
"
+
error
);
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1307,6 +1323,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest056 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1363,6 +1380,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest057 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1418,6 +1436,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest058 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1472,6 +1491,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest059 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1525,6 +1545,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest060 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1577,6 +1598,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest061 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1630,6 +1652,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest062 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
/*
...
...
@@ -1682,6 +1705,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest063 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -1736,6 +1760,7 @@ describe("VibratorJsTest_misc_5", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest064 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupplement_common.test.js
浏览文件 @
81b05579
...
...
@@ -47,9 +47,6 @@ describe("VibratorJsTest_misc_3", function () {
/*
* @tc.teardown: teardown invoked after each testcases
*/
console
.
info
(
'
afterEach called
'
)
vibrator
.
stop
(
"
preset
"
);
vibrator
.
stop
(
"
time
"
);
console
.
info
(
'
afterEach called
'
)
})
...
...
@@ -84,6 +81,7 @@ describe("VibratorJsTest_misc_3", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -179,6 +177,7 @@ describe("VibratorJsTest_misc_3", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -304,6 +303,7 @@ describe("VibratorJsTest_misc_3", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest023 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -331,6 +331,7 @@ describe("VibratorJsTest_misc_3", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -420,6 +421,7 @@ describe("VibratorJsTest_misc_3", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -517,6 +519,7 @@ describe("VibratorJsTest_misc_3", function () {
console
.
info
(
"
VibratorJsTest031 error :
"
+
error
);
expect
(
false
).
assertTrue
();
});
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -651,6 +654,7 @@ describe("VibratorJsTest_misc_3", function () {
},
()
=>
{
console
.
info
(
"
VibratorJsTest035 reject
"
);
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
sensors/miscdevice_standard/src/main/js/test/Vibrator_newSupportTest.test.js
浏览文件 @
81b05579
...
...
@@ -51,9 +51,6 @@ describe("VibratorJsTest_misc_6", function () {
* @tc.teardown: teardown invoked after each testcases
*/
console
.
info
(
'
afterEach caled
'
)
vibrator
.
stop
(
"
preset
"
);
vibrator
.
stop
(
"
time
"
);
console
.
info
(
'
afterEach called
'
)
})
const
OPERATION_FAIL_CODE
=
14600101
;
...
...
sensors/miscdevice_standard/src/main/js/test/Vibrator_options.test.js
浏览文件 @
81b05579
...
...
@@ -46,8 +46,6 @@ describe("VibratorJsTest_misc_7", function () {
/*
* @tc.teardown: teardown invoked after each testcases
*/
vibrator
.
stop
(
"
preset
"
);
vibrator
.
stop
(
"
time
"
);
console
.
info
(
'
afterEach called
'
)
})
...
...
@@ -78,6 +76,7 @@ describe("VibratorJsTest_misc_7", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -99,6 +98,7 @@ describe("VibratorJsTest_misc_7", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -120,6 +120,7 @@ describe("VibratorJsTest_misc_7", function () {
done
();
},
500
);
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -168,6 +169,7 @@ describe("VibratorJsTest_misc_7", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -217,6 +219,7 @@ describe("VibratorJsTest_misc_7", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -266,6 +269,7 @@ describe("VibratorJsTest_misc_7", function () {
}).
catch
((
error
)
=>
{
expect
(
false
).
assertTrue
();
})
await
vibrator
.
stopVibration
();
done
();
})
...
...
@@ -324,6 +328,7 @@ describe("VibratorJsTest_misc_7", function () {
fail
:
undefined
,
complete
:
undefined
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -342,6 +347,7 @@ describe("VibratorJsTest_misc_7", function () {
fail
:
null
,
complete
:
null
});
await
vibrator
.
stopVibration
();
})
/*
...
...
@@ -360,6 +366,7 @@ describe("VibratorJsTest_misc_7", function () {
fail
:
123
,
complete
:
123
});
await
vibrator
.
stopVibration
();
})
/*
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录