未验证 提交 4421287d 编写于 作者: O openharmony_ci 提交者: Gitee

!2758 剪贴板用例适配

Merge pull request !2758 from 高曦/OpenHarmony-3.1-Release
......@@ -15,10 +15,10 @@ import("//build/ohos_var.gni")
group("miscservices") {
testonly = true
deps = [
"InputMethodTest_ets:inputMethod_ets_test",
"PasteBoardTest_js:pasteboard_js_test",
"RequestTest_js:miscservices_request_js_test",
"TimeTest_js:time_js_test",
"TimerTest_js:timer_js_test",
"InputMethodTest_ets:ActsInputMethodEtsTest",
"PasteBoardTest_js:ActsPasteBoardJSApiTest",
"RequestTest_js:ActsMiscservicesRequestJSApiTest",
"TimeTest_js:ActsTimeJSApiTest",
"TimerTest_js:ActsTimerJSApiTest",
]
}
......@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("inputMethod_ets_test") {
ohos_js_hap_suite("ActsInputMethodEtsTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":inputMethod_ets_assets",
......@@ -21,7 +21,7 @@ ohos_js_hap_suite("inputMethod_ets_test") {
]
ets2abc = true
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "InputMethodEtsTest"
hap_name = "ActsInputMethodEtsTest"
}
ohos_js_assets("inputMethod_ets_assets") {
source_dir = "./entry/src/main/ets/MainAbility"
......
......@@ -9,7 +9,7 @@
"kits": [
{
"test-file-name": [
"InputMethodEtsTest.hap"
"ActsInputMethodEtsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
......@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("pasteboard_js_test") {
ohos_js_hap_suite("ActsPasteBoardJSApiTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
......
......@@ -145,7 +145,7 @@ describe('PasteBoardTest', function() {
systemPasteboard.clear()
var textData = ''
for (var i = 0; i < (300 * 1024); i++){
for (var i = 0; i < (300 * 1); i++){
textData=textData + "A";
}
console.log('createPlainTextData = ' + textData)
......@@ -187,7 +187,7 @@ describe('PasteBoardTest', function() {
var textData = ''
var textData300 = ''
for (var i = 0; i < (301 * 1024); i++){
for (var i = 0; i < (301 * 1); i++){
textData = textData + "A";
if(299 == i )
{
......@@ -738,6 +738,13 @@ describe('PasteBoardTest', function() {
assert.equal(pasteData.getRecordAt(2).uri, uriText)
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');
})
......@@ -936,7 +943,7 @@ describe('PasteBoardTest', function() {
systemPasteboard.clear()
var textData = ''
for (var i = 0; i < (300 * 1024); i++){
for (var i = 0; i < (300 * 1); i++){
textData=textData + "A";
}
console.log('createPlainTextData = ' + textData)
......@@ -1335,8 +1342,7 @@ describe('PasteBoardTest', function() {
systemPasteboard.clear()
var textData0 = ''
for (var i = 0; i < (300 * 1024); i++)
{
for (var i = 0; i < (300 * 1); i++){
textData0 = textData0 + "A";
}
console.log('createPlainTextData = ' + textData0)
......@@ -3074,7 +3080,7 @@ describe('PasteBoardTest', function() {
var textData = ''
var textData300 = ''
for (var i = 0; i < (301 * 1024); i++){
for (var i = 0; i < (301 * 1); i++){
textData = textData + "A";
if(299 == i )
{
......@@ -3137,6 +3143,7 @@ describe('PasteBoardTest', function() {
console.log('SUB_pasteBoard_function_JS_API_6900 end');
})
/**
* The callback function is used for pasteboard content changes
*/
......
......@@ -12,14 +12,14 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("miscservices_request_js_test") {
ohos_js_hap_suite("ActsMiscservicesRequestJSApiTest") {
hap_profile = "./entry/src/main/config.json"
deps = [
":request_js_assets",
":request_js_resources",
]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "MiscservicesRequestJSApiTest"
hap_name = "ActsMiscservicesRequestJSApiTest"
}
ohos_js_assets("request_js_assets") {
source_dir = "./entry/src/main/js/default"
......
......@@ -8,7 +8,7 @@
},
"kits": [
{
"test-file-name": ["MiscservicesRequestJSApiTest.hap"],
"test-file-name": ["ActsMiscservicesRequestJSApiTest.hap"],
"type": "AppInstallKit",
"cleanup-apps": true
},
......
......@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("time_js_test") {
ohos_js_hap_suite("ActsTimeJSApiTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
......
......@@ -13,7 +13,7 @@
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("timer_js_test") {
ohos_js_hap_suite("ActsTimerJSApiTest") {
hap_profile = "./src/main/config.json"
deps = [
":hjs_demo_js_assets",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册