Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f7395a7f
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看板
提交
f7395a7f
编写于
2月 25, 2022
作者:
高
高曦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新杂散定时服务用例
Signed-off-by:
N
高曦
<
gaoxi785@huawei.com
>
上级
9ec86d40
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
891 addition
and
1761 deletion
+891
-1761
miscservices/BUILD.gn
miscservices/BUILD.gn
+4
-12
miscservices/TimeTest_js/BUILD.gn
miscservices/TimeTest_js/BUILD.gn
+4
-4
miscservices/TimeTest_js/Test.json
miscservices/TimeTest_js/Test.json
+2
-2
miscservices/TimeTest_js/src/main/js/default/test/List.test.js
...ervices/TimeTest_js/src/main/js/default/test/List.test.js
+0
-1
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
...Test_js/src/main/js/default/test/SystemTimeJsunit.test.js
+783
-1518
miscservices/TimerTest_js/BUILD.gn
miscservices/TimerTest_js/BUILD.gn
+4
-4
miscservices/TimerTest_js/Test.json
miscservices/TimerTest_js/Test.json
+2
-2
miscservices/TimerTest_js/src/main/js/default/test/SystemTimerJsunit.test.js
...est_js/src/main/js/default/test/SystemTimerJsunit.test.js
+91
-217
miscservices/TimerTest_js/src/main/resources/base/element/string.json
.../TimerTest_js/src/main/resources/base/element/string.json
+1
-1
未找到文件。
miscservices/BUILD.gn
浏览文件 @
f7395a7f
...
@@ -14,16 +14,8 @@
...
@@ -14,16 +14,8 @@
import("//build/ohos_var.gni")
import("//build/ohos_var.gni")
group("miscservices") {
group("miscservices") {
testonly = true
testonly = true
if (is_standard_system) {
deps = [
deps = [ "TimeTest_js:time_js_test","TimerTest_js:timer_js_test", ]
"TimeTest_js:time_js_test",
} else {
"TimerTest_js:timer_js_test",
deps = [
]
"DownloadTest:download_hap",
"InputMethodTest:InputMethodTest_hap",
"pasteboard:testpasteboard_hap",
"screenlock:ScreenLockTest_hap",
"timer:testtimer_hap",
"wallpaper:wallpaperTest_hap",
]
}
}
}
miscservices/TimeTest_js/BUILD.gn
浏览文件 @
f7395a7f
...
@@ -16,16 +16,16 @@ import("//test/xts/tools/build/suite.gni")
...
@@ -16,16 +16,16 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("time_js_test") {
ohos_js_hap_suite("time_js_test") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":
time
_js_assets",
":
hjs_demo
_js_assets",
":
time
_resources",
":
hjs_demo
_resources",
]
]
certificate_profile = "./signature/openharmony_sx.p7b"
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsTimeJSApiTest"
hap_name = "ActsTimeJSApiTest"
}
}
ohos_js_assets("
time
_js_assets") {
ohos_js_assets("
hjs_demo
_js_assets") {
source_dir = "./src/main/js/default"
source_dir = "./src/main/js/default"
}
}
ohos_resources("
time
_resources") {
ohos_resources("
hjs_demo
_resources") {
sources = [ "./src/main/resources" ]
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
}
}
miscservices/TimeTest_js/Test.json
浏览文件 @
f7395a7f
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
"description"
:
"Configuration for time js api Tests"
,
"description"
:
"Configuration for time js api Tests"
,
"driver"
:
{
"driver"
:
{
"type"
:
"JSUnitTest"
,
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"60000"
,
"test-timeout"
:
"60000
0
"
,
"package"
:
"ohos.acts.miscservices.timer"
,
"package"
:
"ohos.acts.miscservices.timer"
,
"shell-timeout"
:
"60000"
"shell-timeout"
:
"60000
0
"
},
},
"kits"
:
[
"kits"
:
[
{
{
...
...
miscservices/TimeTest_js/src/main/js/default/test/List.test.js
浏览文件 @
f7395a7f
...
@@ -13,5 +13,4 @@
...
@@ -13,5 +13,4 @@
* limitations under the License.
* limitations under the License.
*/
*/
require
(
'
./Time.test.js
'
)
require
(
'
./SystemTimeJsunit.test.js
'
)
require
(
'
./SystemTimeJsunit.test.js
'
)
\ No newline at end of file
miscservices/TimeTest_js/src/main/js/default/test/SystemTimeJsunit.test.js
浏览文件 @
f7395a7f
此差异已折叠。
点击以展开。
miscservices/TimerTest_js/BUILD.gn
浏览文件 @
f7395a7f
...
@@ -16,16 +16,16 @@ import("//test/xts/tools/build/suite.gni")
...
@@ -16,16 +16,16 @@ import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("timer_js_test") {
ohos_js_hap_suite("timer_js_test") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":
time
_js_assets",
":
hjs_demo
_js_assets",
":
time
_resources",
":
hjs_demo
_resources",
]
]
certificate_profile = "./signature/openharmony_sx.p7b"
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ActsTimerJSApiTest"
hap_name = "ActsTimerJSApiTest"
}
}
ohos_js_assets("
time
_js_assets") {
ohos_js_assets("
hjs_demo
_js_assets") {
source_dir = "./src/main/js/default"
source_dir = "./src/main/js/default"
}
}
ohos_resources("
time
_resources") {
ohos_resources("
hjs_demo
_resources") {
sources = [ "./src/main/resources" ]
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
}
}
miscservices/TimerTest_js/Test.json
浏览文件 @
f7395a7f
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
"description"
:
"Configuration for time js api Tests"
,
"description"
:
"Configuration for time js api Tests"
,
"driver"
:
{
"driver"
:
{
"type"
:
"JSUnitTest"
,
"type"
:
"JSUnitTest"
,
"test-timeout"
:
"60000"
,
"test-timeout"
:
"60000
0
"
,
"package"
:
"ohos.acts.miscservices.timer"
,
"package"
:
"ohos.acts.miscservices.timer"
,
"shell-timeout"
:
"60000"
"shell-timeout"
:
"60000
0
"
},
},
"kits"
:
[
"kits"
:
[
{
{
...
...
miscservices/TimerTest_js/src/main/js/default/test/SystemTimerJsunit.test.js
浏览文件 @
f7395a7f
此差异已折叠。
点击以展开。
miscservices/TimerTest_js/src/main/resources/base/element/string.json
浏览文件 @
f7395a7f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"string"
:
[
"string"
:
[
{
{
"name"
:
"app_name"
,
"name"
:
"app_name"
,
"value"
:
"JstimeTest"
"value"
:
"Jstime
r
Test"
},
},
{
{
"name"
:
"mainability_description"
,
"name"
:
"mainability_description"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录