diff --git a/ability/ability_runtime/fa/BUILD.gn b/ability/ability_runtime/fa/BUILD.gn index f75ceef5a8bad76dae0eb4baf6e2884c612ae364..41314df7824bef3f43f3f8af80634c434793aef9 100644 --- a/ability/ability_runtime/fa/BUILD.gn +++ b/ability/ability_runtime/fa/BUILD.gn @@ -20,7 +20,6 @@ group("fa") { "faapplicationinfo:ActsApplicationinfoTest", "faconfigurationconstant:ActsConfigurationconstantTest", "facoverapi:ActsCoverapiTest", - "faequeryabilitybywant:ActsEqueryabilitybywantTest", ] } } diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn b/ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn deleted file mode 100644 index de29af9b022c59d27c51d8712122184058084902..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/BUILD.gn +++ /dev/null @@ -1,35 +0,0 @@ -# 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. - -import("//test/xts/tools/build/suite.gni") - -ohos_js_hap_suite("ActsEqueryabilitybywantTest") { - hap_profile = "./src/main/config.json" - deps = [ - ":hjs_demo_js_assets", - ":hjs_demo_resources", - ] - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsEqueryabilitybywantTest" - subsystem_name = "ability" - part_name = "ability_runtime" -} -ohos_js_assets("hjs_demo_js_assets") { - js2abc = true - hap_profile = "./src/main/config.json" - source_dir = "./src/main/js" -} -ohos_resources("hjs_demo_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/Test.json b/ability/ability_runtime/fa/faequeryabilitybywant/Test.json deleted file mode 100644 index 6061836983f8ee3a8ac3bd74ba34565f9959c604..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/Test.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "description": "Configuration for hjunit demo Tests", - "driver": { - "type": "OHJSUnitTest", - "test-timeout": "300000", - "bundle-name": "com.example.abilitydisable", - "package-name": "com.example.abilitydisable", - "shell-timeout": "600000" - }, - "kits": [ - { - "test-file-name": [ - "ActsEqueryabilitybywantTest.hap" - ], - "type": "AppInstallKit", - "cleanup-apps": true - } - ] -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b b/ability/ability_runtime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b deleted file mode 100644 index 958e3e85275c5e1b6e0877e642a196a0ef665663..0000000000000000000000000000000000000000 Binary files a/ability/ability_runtime/fa/faequeryabilitybywant/signature/openharmony_sx.p7b and /dev/null differ diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/config.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/config.json deleted file mode 100644 index 4a1d340bdbe2a2bbfa7d68591b634608456de112..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/config.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "app": { - "bundleName": "com.example.abilitydisable", - "vendor": "example", - "version": { - "code": 1, - "name": "1.0" - }, - "apiVersion": { - "compatible": 4, - "target": 5, - "releaseType": "Beta1" - } - }, - "deviceConfig": {}, - "module": { - "package": "com.example.abilitydisable", - "name": ".entry", - "mainAbility": ".MainAbility", - "srcPath":"", - "deviceType": [ - "default", - "tablet" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry", - "installationFree": true - }, - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "orientation": "unspecified", - "formsEnabled": false, - "name": ".MainAbility", - "srcLanguage": "js", - "srcPath": "MainAbility", - "icon": "$media:icon", - "description": "$string:MainAbility_desc", - "label": "$string:MainAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - }, - { - "orientation": "unspecified", - "formsEnabled": false, - "name": ".TestAbility", - "srcLanguage": "js", - "srcPath": "TestAbility", - "icon": "$media:icon", - "description": "$string:TestAbility_desc", - "label": "$string:TestAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - }, - { - "orientation": "unspecified", - "srcPath": "MainAbility2", - "name": ".MainAbility2", - "srcLanguage": "js", - "icon": "$media:icon", - "description": "$string:description_mainability2", - "formsEnabled": false, - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" - }, - { - "orientation": "unspecified", - "srcPath": "MainAbility3", - "name": ".MainAbility3", - "srcLanguage": "js", - "icon": "$media:icon", - "description": "$string:description_mainability3", - "formsEnabled": false, - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" - }, - { - "orientation": "unspecified", - "srcPath": "MainAbility4", - "name": ".MainAbility4", - "srcLanguage": "js", - "icon": "$media:icon", - "description": "$string:description_mainability4", - "formsEnabled": false, - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" - }, - { - "srcPath": "ServiceAbility", - "name": ".ServiceAbility", - "icon": "$media:icon", - "srcLanguage": "js", - "description": "$string:description_serviceability", - "type": "service" - } - ], - "js": [ - { - "pages": [ - "pages/index/index", - "pages/second/second" - ], - "name": ".MainAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index", - "pages/second/second" - ], - "name": ".MainAbility2", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index", - "pages/second/second" - ], - "name": ".MainAbility3", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index", - "pages/second/second" - ], - "name": ".MainAbility4", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index" - ], - "name": ".TestAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - } - ], - "testRunner": { - "name": "OpenHarmonyTestRunner", - "srcPath": "TestRunner" - } - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js deleted file mode 100644 index 9ddf5f71d69167bf2d3da3256eb2e993acfbac54..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/app.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ - -export default { - onCreate() { - console.info("Application onCreate"); - }, - onDestroy() { - console.info("Application onDestroy"); - }, - onForgeGround(){ - console.info("Application onForgeGround"); - } -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/en-US.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/en-US.json deleted file mode 100644 index 8feb7199333a82bab6f9e29341246e466c7dfd55..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World", - "page": "Second Page", - "next": "Next Page", - "back": "Back" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json deleted file mode 100644 index 6551d160806d9089707897124655bcba11a83932..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/i18n/zh-CN.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界", - "page": "第二页", - "next": "下一页", - "back": "返回" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.hml deleted file mode 100644 index 3afccfe1b9c5f2a164b8fddb3ba799db88211c65..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.hello') }} {{ title }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.js deleted file mode 100644 index 9ca9b4e2bc4e7af754e7c5bc0229b400389128ca..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/index/index.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../../../test/List.test' - -export default { - data: { - title: "" - }, - onInit() { - this.title = 'yingyong1'; - }, - onclick: function () { - router.replace({ - uri: "pages/second/second" - }) - }, - onShow() { - console.info('onShow start') - console.info('onShow start1') - - console.info('onShow start2') - - console.info('onShow start3') - - console.info('onShow start4') - - console.info('onShow start5') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - - } -} - - - diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.hml deleted file mode 100644 index 621e01f7d9c153b0e90ca9a12cc9d94b87735a54..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.page') }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.js deleted file mode 100644 index dcd09ec6dfcf670a1a203d5dc21d3a28e1af4a18..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility/pages/second/second.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' - -export default { - data: { - title: 'World' - }, - onclick: function () { - router.replace({ - uri: "pages/index/index" - }) - } -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js deleted file mode 100644 index 3c6cab70fb8119edbbe86736f7de2e2822455b4e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/app.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ -export default { - onCreate() { - console.info("Application onCreate"); - setTimeout(()=>{ - this.content.terminateSelf().then((data)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(data) ) - }).catch((error)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(error) ) - }) - },4000) - }, - onDestroy() { - console.info("Application onDestroy"); - } - - - - - - - - -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json deleted file mode 100644 index 8feb7199333a82bab6f9e29341246e466c7dfd55..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World", - "page": "Second Page", - "next": "Next Page", - "back": "Back" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json deleted file mode 100644 index 6551d160806d9089707897124655bcba11a83932..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/i18n/zh-CN.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界", - "page": "第二页", - "next": "下一页", - "back": "返回" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.hml deleted file mode 100644 index bf893e48bb4167444d90e9b9c2d5bcd4257737d3..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.hello') }} {{ title }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.js deleted file mode 100644 index eaff1d297f1b44feeb145532ebf3ecc4e8441ad3..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/index/index.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../../../test/List.test' - -export default { - data: { - title: "" - }, - onInit() { - this.title = 'yingyong2'; - }, - onclick: function () { - router.replace({ - uri: "pages/second/second" - }) - }, - onShow() { - console.info('onShow start') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - } -} - - - diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.hml deleted file mode 100644 index 39a75dbc2c384b7ea98089ed56ce23c4bec735df..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.page') }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.js deleted file mode 100644 index dcd09ec6dfcf670a1a203d5dc21d3a28e1af4a18..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility2/pages/second/second.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' - -export default { - data: { - title: 'World' - }, - onclick: function () { - router.replace({ - uri: "pages/index/index" - }) - } -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js deleted file mode 100644 index 0e1a9400a474f90fedee3c80bdab3e62a4358f83..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/app.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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. - */ -import abilityFeatureAbility from '@ohos.ability.featureAbility'; - -export default { - onCreate() { - console.info("Application onCreate MainAbility3"); - setTimeout(()=>{ - abilityFeatureAbility.terminateSelf().then((data)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(data) ) - }).catch((error)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(error) ) - }) - },4000) - }, - onDestroy() { - console.info("Application onDestroy"); - } -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json deleted file mode 100644 index 8feb7199333a82bab6f9e29341246e466c7dfd55..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World", - "page": "Second Page", - "next": "Next Page", - "back": "Back" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json deleted file mode 100644 index 6551d160806d9089707897124655bcba11a83932..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/i18n/zh-CN.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界", - "page": "第二页", - "next": "下一页", - "back": "返回" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.hml deleted file mode 100644 index 3afccfe1b9c5f2a164b8fddb3ba799db88211c65..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.hello') }} {{ title }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.js deleted file mode 100644 index 20caec02c93b7a0ea119da1e4a44225d90057908..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/index/index.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../../../test/List.test' - -export default { - data: { - title: "" - }, - onInit() { - this.title = 'yingyong3'; - }, - onclick: function () { - router.replace({ - uri: "pages/second/second" - }) - }, - onShow() { - console.info('onShow start') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - } -} - - - diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.hml deleted file mode 100644 index 621e01f7d9c153b0e90ca9a12cc9d94b87735a54..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.page') }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.js deleted file mode 100644 index dcd09ec6dfcf670a1a203d5dc21d3a28e1af4a18..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility3/pages/second/second.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' - -export default { - data: { - title: 'World' - }, - onclick: function () { - router.replace({ - uri: "pages/index/index" - }) - } -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js deleted file mode 100644 index dcb3a008c359acbc21761e359b02e94b7253f88b..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/app.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ -export default { - onCreate() { - console.info("Application onCreate"); - setTimeout(()=>{ - this.content.terminateSelf().then((data)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(data) ) - }).catch((error)=>{ - console.log("Application terminateSelf data:" + JSON.stringify(error) ) - }) - },4000) - }, - onDestroy() { - console.info("Application onDestroy"); - } -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json deleted file mode 100644 index 8feb7199333a82bab6f9e29341246e466c7dfd55..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/en-US.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World", - "page": "Second Page", - "next": "Next Page", - "back": "Back" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json deleted file mode 100644 index 6551d160806d9089707897124655bcba11a83932..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/i18n/zh-CN.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界", - "page": "第二页", - "next": "下一页", - "back": "返回" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.hml deleted file mode 100644 index 3afccfe1b9c5f2a164b8fddb3ba799db88211c65..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.hello') }} {{ title }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.js deleted file mode 100644 index b599fb4a34d055e5c2473691a9642fc0438e0bb5..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/index/index.js +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../../../test/List.test' - -export default { - data: { - title: "" - }, - onInit() { - this.title = 'yingyong4'; - }, - onclick: function () { - router.replace({ - uri: "pages/second/second" - }) - }, - onShow() { - console.info('onShow start') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - } -} - - - diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.css deleted file mode 100644 index bfe4a7008aefc3729b4cc5762c86b809cb6cf32e..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.css +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -.btn { - width: 50%; - height: 100px; - font-size: 40px; -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.hml deleted file mode 100644 index 621e01f7d9c153b0e90ca9a12cc9d94b87735a54..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.hml +++ /dev/null @@ -1,20 +0,0 @@ - -
- - {{ $t('strings.page') }} - - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.js deleted file mode 100644 index dcd09ec6dfcf670a1a203d5dc21d3a28e1af4a18..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/MainAbility4/pages/second/second.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - */ -import router from '@system.router' - -export default { - data: { - title: 'World' - }, - onclick: function () { - router.replace({ - uri: "pages/index/index" - }) - } -} diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/ServiceAbility/service.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/ServiceAbility/service.js deleted file mode 100644 index f62788a5cd79dfbeba1cf654866b78702c4496ab..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/ServiceAbility/service.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ -export default { - onStart(want) { - console.info('ServiceAbility onStart'); - }, - onStop() { - console.info('ServiceAbility onStop'); - }, - onConnect(want) { - console.info('ServiceAbility onConnect'); - return {}; - }, - onReconnect(want) { - console.info('ServiceAbility onReconnect'); - }, - onDisconnect() { - console.info('ServiceAbility onDisconnect'); - }, - onCommand(want, restart, startId) { - console.info('ServiceAbility onCommand'); - }, - - onForeground(){ - console.info('ServiceAbility onForeground'); - }, - -}; \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js deleted file mode 100644 index bbed2073aede31f8c44927299a4e9db991086fe6..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/app.js +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2022 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. - */ - -export default { - onCreate() { - console.info("Application onCreate"); - }, - onDestroy() { - console.info("Application onDestroy"); - } -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/en-US.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/en-US.json deleted file mode 100644 index 3cb24b374b1d919ca8eac0638f361692b603a900..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/en-US.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json deleted file mode 100644 index c804e32c0c3103929baca5617cdac70be11fdba1..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/i18n/zh-CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - }, - "Files": { - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.css b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.css deleted file mode 100644 index b1bcd43387ba131cc1d30975ff7508a6f8084a4b..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.css +++ /dev/null @@ -1,30 +0,0 @@ -.container { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - left: 0px; - top: 0px; - width: 100%; - height: 100%; -} - -.title { - font-size: 60px; - text-align: center; - width: 100%; - height: 40%; - margin: 10px; -} - -@media screen and (device-type: phone) and (orientation: landscape) { - .title { - font-size: 60px; - } -} - -@media screen and (device-type: tablet) and (orientation: landscape) { - .title { - font-size: 100px; - } -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.hml b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.hml deleted file mode 100644 index f629c71a9be857db6cdf94149652a191b9b272ea..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.hml +++ /dev/null @@ -1,5 +0,0 @@ -
- - {{ $t('strings.hello') }} {{ title }} - -
diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.js deleted file mode 100644 index 88b083a7f6b979019d6a2c5ad20b19c5fd43286b..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestAbility/pages/index/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2022 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. - */ - -export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - } -} - - - diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js deleted file mode 100644 index 05ba5782592890d16fe15add4421c6187bae9511..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/TestRunner/OpenHarmonyTestRunner.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2022 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. - */ - -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' - -function translateParamsToString(parameters) { - const keySet = new Set([ - '-s class', '-s notClass', '-s suite', '-s itName', - '-s level', '-s testType', '-s size', '-s timeout', - '-s package', '-s dryRun' - ]) - let targetParams = ''; - for (const key in parameters) { - if (keySet.has(key)) { - targetParams += ' ' + key + ' ' + parameters[key] - } - } - return targetParams.trim() -} - - export default { - onPrepare() { - console.info('OpenHarmonyTestRunner OnPrepare') - }, - onRun() { - console.log('OpenHarmonyTestRunner onRun run') - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - - var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.MainAbility' - - var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName - cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) - var debug = abilityDelegatorArguments.parameters["-D"] - console.info('debug value : '+debug) - if (debug == 'true') - { - cmd += ' -D' - } - console.info('cmd : '+cmd) - abilityDelegator.executeShellCommand(cmd, (err, data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); - console.info('executeShellCommand : data : ' + data.stdResult); - console.info('executeShellCommand : data : ' + data.exitCode); - }) - } -}; diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/JsAbilityDisable.test.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/JsAbilityDisable.test.js deleted file mode 100644 index 8132c674296027e0543809193cb599d18c4b67cd..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/JsAbilityDisable.test.js +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright (c) 2022 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. - */ - -import bundleManager from '@ohos.bundle'; -import account from "@ohos.account.osAccount" -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' - -let userId; -export default function AbilityDisable() { -describe('AbilityDisable', function () { - - /* - * @tc.number SUB_AA_OpenHarmony_EqueryAbilityByWant_0100 - * @tc.name Call queryAbilityByWant to get moduleName - * @tc.desc Function test - * @tc.level 0 - */ - it("SUB_AA_OpenHarmony_EqueryAbilityByWant_0100", 0, async function (done) { - console.info("------------------logMessage SUB_AA_OpenHarmony_EqueryAbilityByWant_0100-------------------"); - let accountManager = account.getAccountManager(); - let bundleFlags=bundleManager.BundleFlag.GET_ABILITY_INFO_WITH_PERMISSION; - await accountManager.getOsAccountLocalIdFromProcess().then((data)=>{ - console.log("success get userId:" + JSON.stringify(data)); - userId = data; - }).catch((err)=>{ - console.log("+++++++++++++" + JSON.stringify(err)); - }) - let want={ - bundleName:"com.example.abilitydisable", - abilityName:"com.example.abilitydisable.MainAbility" - }; - bundleManager.queryAbilityByWant(want,bundleFlags,userId,(err, data) => { - console.log('SUB_AA_OpenHarmony_Clear_0100 queryAbilityByWant errCode : ' - + JSON.stringify(err) + " data: " + JSON.stringify(data)); - for(var i=0;i{ - console.log("success get userId:" + JSON.stringify(data)); - userId = data; - }).catch((err)=>{ - console.log("+++++++++++++" + JSON.stringify(err)); - }) - let want={ - bundleName:"com.example.abilitydisable", - abilityName:"com.example.abilitydisable.MainAbility" - }; - bundleManager.queryAbilityByWant(want,bundleFlags,userId,(err, data) => { - console.log('SUB_AA_OpenHarmony_EqueryAbilityByWant_0200 queryAbilityByWant errCode : ' - + JSON.stringify(err) + " data: " + JSON.stringify(data)); - for(var i=0;i{ - console.log("success get userId:" + JSON.stringify(data)); - userId = data; - }).catch((err)=>{ - console.log("+++++++++++++" + JSON.stringify(err)); - }) - bundleManager.getApplicationInfo(bundleName, bundleFlags,userId,(err, data) => { - console.log('SUB_AA_OpenHarmony_EqueryAbilityByWant_0300 getapplicationInfo errCode : ' - + JSON.stringify(err) + " data: " + JSON.stringify(data)); - expect(data['name']).assertEqual("com.example.abilitydisable"); - }) - done(); - }); -}) -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/List.test.js b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/List.test.js deleted file mode 100644 index a82c1e16828142c028d870dbc2c129c2ce82c089..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/js/test/List.test.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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. - */ -import AbilityDisable from './JsAbilityDisable.test.js' - -export default function testsuite() { - AbilityDisable() -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/element/string.json b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/element/string.json deleted file mode 100644 index 0668347342d273dc038948526f348a1c29c716f6..0000000000000000000000000000000000000000 --- a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/element/string.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "string": [ - { - "name": "entry_MainAbility", - "value": "entry_MainAbility" - }, - { - "name": "description_mainability", - "value": "JS_Empty Ability" - }, - { - "name": "description_mainability2", - "value": "JS_Empty Ability" - }, - { - "name": "entry_MainAbility2", - "value": "entry_MainAbility2" - }, - { - "name": "description_mainability3", - "value": "JS_Empty Ability" - }, - { - "name": "entry_MainAbility3", - "value": "entry_MainAbility3" - }, - { - "name": "description_mainability4", - "value": "JS_Empty Ability" - }, - { - "name": "entry_MainAbility4", - "value": "entry_MainAbility4" - }, - { - "name": "description_serviceability", - "value": "hap sample empty service" - }, - { - "name": "MainAbility_desc", - "value": "description" - }, - { - "name": "MainAbility_label", - "value": "label" - }, - { - "name": "TestAbility_desc", - "value": "description" - }, - { - "name": "TestAbility_label", - "value": "label" - } - ] -} \ No newline at end of file diff --git a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/media/icon.png b/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/media/icon.png deleted file mode 100644 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 Binary files a/ability/ability_runtime/fa/faequeryabilitybywant/src/main/resources/base/media/icon.png and /dev/null differ