Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
de14257c
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看板
提交
de14257c
编写于
3月 22, 2022
作者:
高
高曦
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
剪贴板用例适配
Signed-off-by:
N
高曦
<
gaoxi785@huawei.com
>
上级
12d7c8e1
变更
9
显示空白变更内容
内联
并排
Showing
9 changed file
with
321 addition
and
314 deletion
+321
-314
miscservices/BUILD.gn
miscservices/BUILD.gn
+5
-5
miscservices/InputMethodTest_ets/BUILD.gn
miscservices/InputMethodTest_ets/BUILD.gn
+2
-2
miscservices/InputMethodTest_ets/Test.json
miscservices/InputMethodTest_ets/Test.json
+1
-1
miscservices/PasteBoardTest_js/BUILD.gn
miscservices/PasteBoardTest_js/BUILD.gn
+1
-1
miscservices/PasteBoardTest_js/src/main/js/default/test/PasteBoardJsunit.test.js
...Test_js/src/main/js/default/test/PasteBoardJsunit.test.js
+307
-300
miscservices/RequestTest_js/BUILD.gn
miscservices/RequestTest_js/BUILD.gn
+2
-2
miscservices/RequestTest_js/Test.json
miscservices/RequestTest_js/Test.json
+1
-1
miscservices/TimeTest_js/BUILD.gn
miscservices/TimeTest_js/BUILD.gn
+1
-1
miscservices/TimerTest_js/BUILD.gn
miscservices/TimerTest_js/BUILD.gn
+1
-1
未找到文件。
miscservices/BUILD.gn
浏览文件 @
de14257c
...
@@ -15,10 +15,10 @@ import("//build/ohos_var.gni")
...
@@ -15,10 +15,10 @@ import("//build/ohos_var.gni")
group("miscservices") {
group("miscservices") {
testonly = true
testonly = true
deps = [
deps = [
"InputMethodTest_ets:
inputMethod_ets_t
est",
"InputMethodTest_ets:
ActsInputMethodEtsT
est",
"PasteBoardTest_js:
pasteboard_js_t
est",
"PasteBoardTest_js:
ActsPasteBoardJSApiT
est",
"RequestTest_js:
miscservices_request_js_t
est",
"RequestTest_js:
ActsMiscservicesRequestJSApiT
est",
"TimeTest_js:
time_js_t
est",
"TimeTest_js:
ActsTimeJSApiT
est",
"TimerTest_js:
timer_js_t
est",
"TimerTest_js:
ActsTimerJSApiT
est",
]
]
}
}
miscservices/InputMethodTest_ets/BUILD.gn
浏览文件 @
de14257c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
inputMethod_ets_t
est") {
ohos_js_hap_suite("
ActsInputMethodEtsT
est") {
hap_profile = "./entry/src/main/config.json"
hap_profile = "./entry/src/main/config.json"
deps = [
deps = [
":inputMethod_ets_assets",
":inputMethod_ets_assets",
...
@@ -21,7 +21,7 @@ ohos_js_hap_suite("inputMethod_ets_test") {
...
@@ -21,7 +21,7 @@ ohos_js_hap_suite("inputMethod_ets_test") {
]
]
ets2abc = true
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "InputMethodEtsTest"
hap_name = "
Acts
InputMethodEtsTest"
}
}
ohos_js_assets("inputMethod_ets_assets") {
ohos_js_assets("inputMethod_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
source_dir = "./entry/src/main/ets/MainAbility"
...
...
miscservices/InputMethodTest_ets/Test.json
浏览文件 @
de14257c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"kits"
:
[
"kits"
:
[
{
{
"test-file-name"
:
[
"test-file-name"
:
[
"InputMethodEtsTest.hap"
"
Acts
InputMethodEtsTest.hap"
],
],
"type"
:
"AppInstallKit"
,
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
"cleanup-apps"
:
true
...
...
miscservices/PasteBoardTest_js/BUILD.gn
浏览文件 @
de14257c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
pasteboard_js_t
est") {
ohos_js_hap_suite("
ActsPasteBoardJSApiT
est") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":hjs_demo_js_assets",
":hjs_demo_js_assets",
...
...
miscservices/PasteBoardTest_js/src/main/js/default/test/PasteBoardJsunit.test.js
浏览文件 @
de14257c
...
@@ -145,7 +145,7 @@ describe('PasteBoardTest', function() {
...
@@ -145,7 +145,7 @@ describe('PasteBoardTest', function() {
systemPasteboard
.
clear
()
systemPasteboard
.
clear
()
var
textData
=
''
var
textData
=
''
for
(
var
i
=
0
;
i
<
(
300
*
1
024
);
i
++
){
for
(
var
i
=
0
;
i
<
(
300
*
1
);
i
++
){
textData
=
textData
+
"
A
"
;
textData
=
textData
+
"
A
"
;
}
}
console
.
log
(
'
createPlainTextData =
'
+
textData
)
console
.
log
(
'
createPlainTextData =
'
+
textData
)
...
@@ -187,7 +187,7 @@ describe('PasteBoardTest', function() {
...
@@ -187,7 +187,7 @@ describe('PasteBoardTest', function() {
var
textData
=
''
var
textData
=
''
var
textData300
=
''
var
textData300
=
''
for
(
var
i
=
0
;
i
<
(
301
*
1
024
);
i
++
){
for
(
var
i
=
0
;
i
<
(
301
*
1
);
i
++
){
textData
=
textData
+
"
A
"
;
textData
=
textData
+
"
A
"
;
if
(
299
==
i
)
if
(
299
==
i
)
{
{
...
@@ -738,6 +738,13 @@ describe('PasteBoardTest', function() {
...
@@ -738,6 +738,13 @@ describe('PasteBoardTest', function() {
assert
.
equal
(
pasteData
.
getRecordAt
(
2
).
uri
,
uriText
)
assert
.
equal
(
pasteData
.
getRecordAt
(
2
).
uri
,
uriText
)
assert
.
deepEqual
(
pasteData
.
getRecordAt
(
3
).
want
,
wantText
)
assert
.
deepEqual
(
pasteData
.
getRecordAt
(
3
).
want
,
wantText
)
console
.
log
(
'
Checks the MIME types of all content on the pasteboard
'
)
var
getMimeTypesArray
=
pasteData
.
getMimeTypes
()
assert
.
equal
(
getMimeTypesArray
[
0
],
MIMETYPE_TEXT_PLAIN
)
assert
.
equal
(
getMimeTypesArray
[
1
],
MIMETYPE_TEXT_HTML
)
assert
.
equal
(
getMimeTypesArray
[
2
],
MIMETYPE_TEXT_URI
)
assert
.
equal
(
getMimeTypesArray
[
3
],
MIMETYPE_TEXT_WANT
)
console
.
log
(
'
SUB_pasteBoard_function_JS_API_1800 end
'
);
console
.
log
(
'
SUB_pasteBoard_function_JS_API_1800 end
'
);
})
})
...
@@ -936,7 +943,7 @@ describe('PasteBoardTest', function() {
...
@@ -936,7 +943,7 @@ describe('PasteBoardTest', function() {
systemPasteboard
.
clear
()
systemPasteboard
.
clear
()
var
textData
=
''
var
textData
=
''
for
(
var
i
=
0
;
i
<
(
300
*
1
024
);
i
++
){
for
(
var
i
=
0
;
i
<
(
300
*
1
);
i
++
){
textData
=
textData
+
"
A
"
;
textData
=
textData
+
"
A
"
;
}
}
console
.
log
(
'
createPlainTextData =
'
+
textData
)
console
.
log
(
'
createPlainTextData =
'
+
textData
)
...
@@ -1335,8 +1342,7 @@ describe('PasteBoardTest', function() {
...
@@ -1335,8 +1342,7 @@ describe('PasteBoardTest', function() {
systemPasteboard
.
clear
()
systemPasteboard
.
clear
()
var
textData0
=
''
var
textData0
=
''
for
(
var
i
=
0
;
i
<
(
300
*
1024
);
i
++
)
for
(
var
i
=
0
;
i
<
(
300
*
1
);
i
++
){
{
textData0
=
textData0
+
"
A
"
;
textData0
=
textData0
+
"
A
"
;
}
}
console
.
log
(
'
createPlainTextData =
'
+
textData0
)
console
.
log
(
'
createPlainTextData =
'
+
textData0
)
...
@@ -3074,7 +3080,7 @@ describe('PasteBoardTest', function() {
...
@@ -3074,7 +3080,7 @@ describe('PasteBoardTest', function() {
var
textData
=
''
var
textData
=
''
var
textData300
=
''
var
textData300
=
''
for
(
var
i
=
0
;
i
<
(
301
*
1024
);
i
++
){
for
(
var
i
=
0
;
i
<
(
301
*
1
);
i
++
){
textData
=
textData
+
"
A
"
;
textData
=
textData
+
"
A
"
;
if
(
299
==
i
)
if
(
299
==
i
)
{
{
...
@@ -3137,6 +3143,7 @@ describe('PasteBoardTest', function() {
...
@@ -3137,6 +3143,7 @@ describe('PasteBoardTest', function() {
console
.
log
(
'
SUB_pasteBoard_function_JS_API_6900 end
'
);
console
.
log
(
'
SUB_pasteBoard_function_JS_API_6900 end
'
);
})
})
/**
/**
* The callback function is used for pasteboard content changes
* The callback function is used for pasteboard content changes
*/
*/
...
...
miscservices/RequestTest_js/BUILD.gn
浏览文件 @
de14257c
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
# limitations under the License.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
miscservices_request_js_t
est") {
ohos_js_hap_suite("
ActsMiscservicesRequestJSApiT
est") {
hap_profile = "./entry/src/main/config.json"
hap_profile = "./entry/src/main/config.json"
deps = [
deps = [
":request_js_assets",
":request_js_assets",
":request_js_resources",
":request_js_resources",
]
]
certificate_profile = "./signature/openharmony_sx.p7b"
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "MiscservicesRequestJSApiTest"
hap_name = "
Acts
MiscservicesRequestJSApiTest"
}
}
ohos_js_assets("request_js_assets") {
ohos_js_assets("request_js_assets") {
source_dir = "./entry/src/main/js/default"
source_dir = "./entry/src/main/js/default"
...
...
miscservices/RequestTest_js/Test.json
浏览文件 @
de14257c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
},
},
"kits"
:
[
"kits"
:
[
{
{
"test-file-name"
:
[
"MiscservicesRequestJSApiTest.hap"
],
"test-file-name"
:
[
"
Acts
MiscservicesRequestJSApiTest.hap"
],
"type"
:
"AppInstallKit"
,
"type"
:
"AppInstallKit"
,
"cleanup-apps"
:
true
"cleanup-apps"
:
true
},
},
...
...
miscservices/TimeTest_js/BUILD.gn
浏览文件 @
de14257c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
time_js_t
est") {
ohos_js_hap_suite("
ActsTimeJSApiT
est") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":hjs_demo_js_assets",
":hjs_demo_js_assets",
...
...
miscservices/TimerTest_js/BUILD.gn
浏览文件 @
de14257c
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("
timer_js_t
est") {
ohos_js_hap_suite("
ActsTimerJSApiT
est") {
hap_profile = "./src/main/config.json"
hap_profile = "./src/main/config.json"
deps = [
deps = [
":hjs_demo_js_assets",
":hjs_demo_js_assets",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录