提交 4ca93762 编写于 作者: L lifansheng

Signed-off-by: lifansheng <lifansheng1@huawei.com>

 Changes to be committed:
	modified:   compileruntime/BUILD.gn
	modified:   compileruntime/process_lib_standard/BUILD.gn
	modified:   compileruntime/process_lib_standard/Test.json
	deleted:    compileruntime/process_lib_standard/project/entry/package.json
	new file:   compileruntime/process_lib_standard/signature/openharmony_sx.p7b
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/config.json -> compileruntime/process_lib_standard/src/main/config.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/java/com/example/childprocess/MainAbility.java -> compileruntime/process_lib_standard/src/main/java/com/example/childprocess/MainAbility.java
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/java/com/example/childprocess/MyApplication.java -> compileruntime/process_lib_standard/src/main/java/com/example/childprocess/MyApplication.java
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/app.js -> compileruntime/process_lib_standard/src/main/js/default/app.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/i18n/en-US.json -> compileruntime/process_lib_standard/src/main/js/default/i18n/en-US.json
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/i18n/zh-CN.json -> compileruntime/process_lib_standard/src/main/js/default/i18n/zh-CN.json
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/pages/index/index.css -> compileruntime/process_lib_standard/src/main/js/default/pages/index/index.css
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/pages/index/index.hml -> compileruntime/process_lib_standard/src/main/js/default/pages/index/index.hml
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/default/pages/index/index.js -> compileruntime/process_lib_standard/src/main/js/default/pages/index/index.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/test/ExampleJsunit.test.js -> compileruntime/process_lib_standard/src/main/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/test/List.test.js -> compileruntime/process_lib_standard/src/main/js/test/List.test.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/js/test/Process.test.js -> compileruntime/process_lib_standard/src/main/js/test/Process.test.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/resources/base/element/string.json -> compileruntime/process_lib_standard/src/main/resources/base/element/string.json
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/app.js -> compileruntime/process_lib_standard/src/ohosTest/js/default/app.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/i18n/en-US.json -> compileruntime/process_lib_standard/src/ohosTest/js/default/i18n/en-US.json
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/i18n/zh-CN.json -> compileruntime/process_lib_standard/src/ohosTest/js/default/i18n/zh-CN.json
        renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.css -> compileruntime/process_lib_standard/src/ohosTest/js/default/pages/index/index.css
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.hml -> compileruntime/process_lib_standard/src/ohosTest/js/default/pages/index/index.hml
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.js -> compileruntime/process_lib_standard/src/ohosTest/js/default/pages/index/index.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/test/ExampleJsunit.test.js -> compileruntime/process_lib_standard/src/ohosTest/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/test/List.test.js -> compileruntime/process_lib_standard/src/ohosTest/js/test/List.test.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/resources/base/element/string.json -> compileruntime/process_lib_standard/src/ohosTest/resources/base/element/string.json
	modified:   compileruntime/url_lib_standard/BUILD.gn
	modified:   compileruntime/url_lib_standard/Test.json
	deleted:    compileruntime/url_lib_standard/project/entry/package.json
	new file:   compileruntime/url_lib_standard/signature/openharmony_sx.p7b
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/config.json -> compileruntime/url_lib_standard/src/main/config.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/java/com/example/url/MainAbility.java -> compileruntime/url_lib_standard/src/main/java/com/example/url/MainAbility.java
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/java/com/example/url/MyApplication.java -> compileruntime/url_lib_standard/src/main/java/com/example/url/MyApplication.java
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/app.js -> compileruntime/url_lib_standard/src/main/js/default/app.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/common/images/Wallpaper.png -> compileruntime/url_lib_standard/src/main/js/default/common/images/Wallpaper.png
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/common/images/bg-tv.jpg -> compileruntime/url_lib_standard/src/main/js/default/common/images/bg-tv.jpg
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/i18n/en-US.json -> compileruntime/url_lib_standard/src/main/js/default/i18n/en-US.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/i18n/zh-CN.json -> compileruntime/url_lib_standard/src/main/js/default/i18n/zh-CN.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/pages/index/index.css -> compileruntime/url_lib_standard/src/main/js/default/pages/index/index.css
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/pages/index/index.hml -> compileruntime/url_lib_standard/src/main/js/default/pages/index/index.hml
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/default/pages/index/index.js -> compileruntime/url_lib_standard/src/main/js/default/pages/index/index.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/test/ExampleJsunit.test.js -> compileruntime/url_lib_standard/src/main/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/test/List.test.js -> compileruntime/url_lib_standard/src/main/js/test/List.test.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/js/test/url.test.js -> compileruntime/url_lib_standard/src/main/js/test/url.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/resources/base/element/string.json -> compileruntime/url_lib_standard/src/main/resources/base/element/string.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/app.js -> compileruntime/url_lib_standard/src/ohosTest/js/default/app.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/i18n/en-US.json -> compileruntime/url_lib_standard/src/ohosTest/js/default/i18n/en-US.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/i18n/zh-CN.json -> compileruntime/url_lib_standard/src/ohosTest/js/default/i18n/zh-CN.json
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.css -> compileruntime/url_lib_standard/src/ohosTest/js/default/pages/index/index.css
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.hml -> compileruntime/url_lib_standard/src/ohosTest/js/default/pages/index/index.hml
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.js -> compileruntime/url_lib_standard/src/ohosTest/js/default/pages/index/index.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/js/test/ExampleJsunit.test.js -> compileruntime/url_lib_standard/src/ohosTest/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/test/List.test.js -> compileruntime/url_lib_standard/src/ohosTest/js/test/List.test.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/ohosTest/resources/base/element/string.json -> compileruntime/url_lib_standard/src/ohosTest/resources/base/element/string.json
        modified:   compileruntime/util_lib_standard/BUILD.gn
	modified:   compileruntime/util_lib_standard/Test.json
	deleted:    compileruntime/util_lib_standard/project/entry/package.json
	new file:   compileruntime/util_lib_standard/signature/openharmony_sx.p7b
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/config.json -> compileruntime/util_lib_standard/src/main/config.json
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/java/com/example/childprocess/MainAbility.java -> compileruntime/util_lib_standard/src/main/java/com/example/childprocess/MainAbility.java
	renamed:    compileruntime/process_lib_standard/project/entry/src/main/java/com/example/childprocess/MyApplication.java -> compileruntime/util_lib_standard/src/main/java/com/example/childprocess/MyApplication.java
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/java/com/example/url/MainAbility.java -> compileruntime/util_lib_standard/src/main/java/com/example/url/MainAbility.java
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/java/com/example/url/MyApplication.java -> compileruntime/util_lib_standard/src/main/java/com/example/url/MyApplication.java
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/app.js -> compileruntime/util_lib_standard/src/main/js/default/app.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/common/images/Wallpaper.png -> compileruntime/util_lib_standard/src/main/js/default/common/images/Wallpaper.png
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/common/images/bg-tv.jpg -> compileruntime/util_lib_standard/src/main/js/default/common/images/bg-tv.jpg
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/i18n/en-US.json -> compileruntime/util_lib_standard/src/main/js/default/i18n/en-US.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/i18n/zh-CN.json -> compileruntime/util_lib_standard/src/main/js/default/i18n/zh-CN.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/pages/index/index.css -> compileruntime/util_lib_standard/src/main/js/default/pages/index/index.css
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/pages/index/index.hml -> compileruntime/util_lib_standard/src/main/js/default/pages/index/index.hml
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/default/pages/index/index.js -> compileruntime/util_lib_standard/src/main/js/default/pages/index/index.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/test/ExampleJsunit.test.js -> compileruntime/util_lib_standard/src/main/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/test/List.test.js -> compileruntime/util_lib_standard/src/main/js/test/List.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/test/TextCodr.test.js -> compileruntime/util_lib_standard/src/main/js/test/TextCodr.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/main/js/test/url.test.js -> compileruntime/util_lib_standard/src/main/js/test/url.test.js
	renamed:    compileruntime/url_lib_standard/project/entry/src/main/resources/base/element/string.json -> compileruntime/util_lib_standard/src/main/resources/base/element/string.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/app.js -> compileruntime/util_lib_standard/src/ohosTest/js/default/app.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/i18n/en-US.json -> compileruntime/util_lib_standard/src/ohosTest/js/default/i18n/en-US.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/i18n/zh-CN.json -> compileruntime/util_lib_standard/src/ohosTest/js/default/i18n/zh-CN.json
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.css -> compileruntime/util_lib_standard/src/ohosTest/js/default/pages/index/index.css
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.hml -> compileruntime/util_lib_standard/src/ohosTest/js/default/pages/index/index.hml
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/default/pages/index/index.js -> compileruntime/util_lib_standard/src/ohosTest/js/default/pages/index/index.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/js/test/ExampleJsunit.test.js -> compileruntime/util_lib_standard/src/ohosTest/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/process_lib_standard/project/entry/src/ohosTest/js/test/List.test.js -> compileruntime/util_lib_standard/src/ohosTest/js/test/List.test.js
	renamed:    compileruntime/util_lib_standard/project/entry/src/ohosTest/resources/base/element/string.json -> compileruntime/util_lib_standard/src/ohosTest/resources/base/element/string.json
	modified:   compileruntime/worker_lib_standard/BUILD.gn
	modified:   compileruntime/worker_lib_standard/Test.json
	deleted:    compileruntime/worker_lib_standard/hap/entry-debug-standard-unsigned.hap
	deleted:    compileruntime/worker_lib_standard/project/entry/package.json
	new file:   compileruntime/worker_lib_standard/signature/openharmony_sx.p7b
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/config.json -> compileruntime/worker_lib_standard/src/main/config.json
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/app.js -> compileruntime/worker_lib_standard/src/main/js/default/app.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/i18n/en-US.json -> compileruntime/worker_lib_standard/src/main/js/default/i18n/en-US.json
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/i18n/zh-CN.json -> compileruntime/worker_lib_standard/src/main/js/default/i18n/zh-CN.json
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/index/index.css -> compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.css
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/index/index.hml -> compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.hml
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/index/index.js -> compileruntime/worker_lib_standard/src/main/js/default/pages/index/index.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/second/second.css -> compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.css
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/second/second.hml -> compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.hml
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/pages/second/second.js -> compileruntime/worker_lib_standard/src/main/js/default/pages/second/second.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_002.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_002.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_003.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_003.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_004.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_004.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_005.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_005.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_006.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_006.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_007.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_007.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/default/workers/worker_008.js -> compileruntime/worker_lib_standard/src/main/js/default/workers/worker_008.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/test/ExampleJsunit.test.js -> compileruntime/worker_lib_standard/src/main/js/test/ExampleJsunit.test.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/test/List.test.js -> compileruntime/worker_lib_standard/src/main/js/test/List.test.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/js/test/Worker.test.js -> compileruntime/worker_lib_standard/src/main/js/test/Worker.test.js
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/resources/base/element/string.json -> compileruntime/worker_lib_standard/src/main/resources/base/element/string.json
	renamed:    compileruntime/worker_lib_standard/project/entry/src/main/resources/base/media/icon.png -> compileruntime/worker_lib_standard/src/main/resources/base/media/icon.png
上级 65142e8c
......@@ -10,13 +10,16 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
group("jsapi") {
group("compileruntime") {
testonly = true
deps = [
"StartupProcessJSApiTest:startup_process_js_test",
"StartupUrlJSApiTest:startup_url_js_test",
"StartupUtilJSApiTest:startup_util_js_test",
"StartupWorkerJSApiTest:startup_worker_js_test",
]
if (is_standard_system) {
deps = [
"process_lib_standard:process_js_test",
"url_lib_standard:url_js_test",
"util_lib_standard:util_js_test",
"worker_lib_standard:worker_js_hap",
]
}
}
......@@ -10,9 +10,29 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("process_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":process_js_assets",
":process_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "ProcessJSApiTest"
ohos_js_hap_suite("startup_process_js_test") {
test_hap_name = "StartupProcessJSApiTest"
hap_source_path = "hap/entry-debug-rich-unsigned.hap"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("process_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("process_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -9,7 +9,7 @@
"kits": [
{
"test-file-name": [
"StartupProcessJSApiTest.hap"
"ProcessJSApiTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
{
"app": {
"bundleName": "com.example.childprocess",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.childprocess",
"name": ".MyApplication",
"mainAbility": "com.example.childprocess.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.childprocess.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.childprocess",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.childprocess",
"name": ".MyApplication",
"mainAbility": "com.example.childprocess.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.childprocess.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
require('./Process.test.js')
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "childprocess"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
{
"string": [
{
"name": "app_name",
"value": "childprocess"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
\ No newline at end of file
......@@ -10,9 +10,29 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("url_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":url_js_assets",
":url_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "UrlJsTest"
ohos_js_hap_suite("startup_url_js_test") {
test_hap_name = "StartupUrlJSApiTest"
hap_source_path = "hap/entry-debug-rich-unsigned.hap"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("url_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("url_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -9,7 +9,7 @@
"kits": [
{
"test-file-name": [
"startup_url_js_test.hap"
"UrlJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
{
"app": {
"bundleName": "com.example.url",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.url",
"name": ".MyApplication",
"mainAbility": "com.example.url.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.url.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.url",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.url",
"name": ".MyApplication",
"mainAbility": "com.example.url.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.url.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./url.test.js')
require('./ExampleJsunit.test.js')
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./url.test.js')
require('./ExampleJsunit.test.js')
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "URL"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
{
"string": [
{
"name": "app_name",
"value": "URL"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
......@@ -10,9 +10,29 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("util_js_test") {
hap_profile = "./src/main/config.json"
deps = [
":util_js_assets",
":util_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "UtilJsTest"
ohos_js_hap_suite("startup_util_js_test") {
test_hap_name = "StartupUtilJSApiTest"
hap_source_path = "hap/entry-debug-rich-unsigned.hap"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("util_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("util_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -9,7 +9,7 @@
"kits": [
{
"test-file-name": [
"startup_util_js_test.hap"
"UtilJsTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
{
"app": {
"bundleName": "com.example.childprocess",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.childprocess",
"name": ".MyApplication",
"mainAbility": "com.example.childprocess.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.childprocess.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
{
"app": {
"bundleName": "com.example.childprocess",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.childprocess",
"name": ".MyApplication",
"mainAbility": "com.example.childprocess.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"name": "com.example.childprocess.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": true
}
}
]
}
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.childprocess;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.ace.ability.AceAbility;
import ohos.aafwk.content.Intent;
public class MainAbility extends AceAbility {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
}
@Override
public void onStop() {
super.onStop();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.example.url;
import ohos.aafwk.ability.AbilityPackage;
public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an 'AS IS' BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
require('./TextCodr.test.js')
\ No newline at end of file
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
{
"string": [
{
"name": "entry_MainAbility",
"value": "entry_MainAbility"
},
{
"name": "mainability_description",
"value": "JS_Empty Ability"
}
]
}
\ No newline at end of file
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require('./ExampleJsunit.test.js')
\ No newline at end of file
{
"string": [
{
"name": "app_name",
"value": "childprocess"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
{
"string": [
{
"name": "app_name",
"value": "childprocess"
},
{
"name": "mainability_description",
"value": "hap sample empty page"
}
]
}
......@@ -10,9 +10,29 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("worker_js_hap") {
hap_profile = "./src/main/config.json"
deps = [
":worker_js_assets",
":worker_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "WorkerJSTest"
ohos_js_hap_suite("startup_worker_js_test") {
test_hap_name = "StartupWorkerJSApiTest"
hap_source_path = "hap/entry-debug-standard-unsigned.hap"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("worker_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("worker_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
......@@ -9,7 +9,7 @@
"kits": [
{
"test-file-name": [
"startup_worker_js_test.hap"
"WorkerJSTest.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
......
{
"app": {
"bundleName": "com.example.workerxts",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.workerxts",
"name": ".MyApplication",
"mainAbility": "com.example.workerxts.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"orientation": "unspecified",
"name": "com.example.workerxts.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"formsEnabled": false,
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index",
"pages/second/second"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
{
"app": {
"bundleName": "com.example.workerxts",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.workerxts",
"name": ".MyApplication",
"mainAbility": "com.example.workerxts.MainAbility",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": false
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"orientation": "unspecified",
"name": "com.example.workerxts.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"formsEnabled": false,
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
}
],
"js": [
{
"pages": [
"pages/index/index",
"pages/second/second"
],
"name": "default",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
}
]
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册