已合并
【gn 切hvigor】PART11_barrierfree #9108
quxianfei创建于 2023年6月27日
【gn 切hvigor】PART11_barrierfree #9108
已合并
共 148 个文件变更+6399-4721
| @@ -1,5 +1,5 @@ | |||
| 1 | -# Copyright (c) 2021 Huawei Device Co., Ltd. | 1 | +# Copyright (c) 2023 Huawei Device Co., Ltd. |
| 2 | -# Licensed under the Apache License, Version 2.0 (the "License"); | 2 | +# Licensed under the Apache License, Version 2.0 (the "License") |
| 3 | # you may not use this file except in compliance with the License. | 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at | 4 | # You may obtain a copy of the License at |
| 5 | # | 5 | # |
| @@ -10,26 +10,13 @@ | |||
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and | 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. | 12 | # limitations under the License. |
| 13 | - | ||
| 14 | import("//test/xts/tools/build/suite.gni") | 13 | import("//test/xts/tools/build/suite.gni") |
| 15 | 14 | ||
| 16 | -ohos_js_hap_suite("ActsAccessibleAbilityListTest") { | 15 | +ohos_js_app_suite("ActsAccessibleAbilityListTest") { |
| 17 | - hap_profile = "./src/main/config.json" | 16 | + test_hap = true |
| 18 | - deps = [ | 17 | + testonly = true |
| 19 | - ":hjs_demo_js_assets", | ||
| 20 | - ":hjs_demo_resources", | ||
| 21 | - ] | ||
| 22 | certificate_profile = "./signature/openharmony_sx.p7b" | 18 | certificate_profile = "./signature/openharmony_sx.p7b" |
| 23 | hap_name = "ActsAccessibleAbilityListTest" | 19 | hap_name = "ActsAccessibleAbilityListTest" |
| 24 | part_name = "accessibility" | 20 | part_name = "accessibility" |
| 25 | subsystem_name = "barrierfree" | 21 | subsystem_name = "barrierfree" |
| 26 | } | 22 | } |
| 27 | -ohos_js_assets("hjs_demo_js_assets") { | ||
| 28 | - js2abc = true | ||
| 29 | - hap_profile = "./src/main/config.json" | ||
| 30 | - source_dir = "./src/main/js" | ||
| 31 | -} | ||
| 32 | -ohos_resources("hjs_demo_resources") { | ||
| 33 | - sources = [ "./src/main/resources" ] | ||
| 34 | - hap_profile = "./src/main/config.json" | ||
| 35 | -} | ||
| @@ -5,7 +5,7 @@ | |||
| 5 | "test-timeout": "180000", | 5 | "test-timeout": "180000", |
| 6 | "shell-timeout": "180000", | 6 | "shell-timeout": "180000", |
| 7 | "bundle-name": "com.example.accessibleabilitylist", | 7 | "bundle-name": "com.example.accessibleabilitylist", |
| 8 | - "package-name": "com.example.accessibleabilitylist" | 8 | + "package-name": "com.example.accessibleabilitylist_test" |
| 9 | }, | 9 | }, |
| 10 | "kits": [ | 10 | "kits": [ |
| 11 | { | 11 | { |
| @@ -0,0 +1,43 @@ | |||
| 1 | +/** | ||
| 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | + | ||
| 16 | +{ | ||
| 17 | + "app": { | ||
| 18 | + "signingConfigs": [ | ||
| 19 | + ], | ||
| 20 | + "compileSdkVersion": 10, | ||
| 21 | + "compatibleSdkVersion": 10, | ||
| 22 | + "products": [ | ||
| 23 | + { | ||
| 24 | + "name": "default", | ||
| 25 | + "signingConfig": "default" | ||
| 26 | + } | ||
| 27 | + ] | ||
| 28 | + }, | ||
| 29 | + "modules": [ | ||
| 30 | + { | ||
| 31 | + "name": "entry", | ||
| 32 | + "srcPath": "./entry", | ||
| 33 | + "targets": [ | ||
| 34 | + { | ||
| 35 | + "name": "default", | ||
| 36 | + "applyToProducts": [ | ||
| 37 | + "default" | ||
| 38 | + ] | ||
| 39 | + } | ||
| 40 | + ] | ||
| 41 | + } | ||
| 42 | + ] | ||
| 43 | +} | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | +{ | ||
| 16 | + "apiType": 'faMode', | ||
| 17 | + "buildOption": { | ||
| 18 | + }, | ||
| 19 | + "targets": [ | ||
| 20 | + { | ||
| 21 | + "name": "default", | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "name": "ohosTest", | ||
| 25 | + } | ||
| 26 | + ] | ||
| 27 | +} | ||
| @@ -0,0 +1,17 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | + | ||
| 16 | +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. | ||
| 17 | +export { legacyHapTasks } from '@ohos/hvigor-ohos-plugin'; | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | + | ||
| 16 | +{ | ||
| 17 | + "name": "entry", | ||
| 18 | + "version": "1.0.0", | ||
| 19 | + "devDependencies": { | ||
| 20 | + }, | ||
| 21 | + "description": "Please describe the basic information.", | ||
| 22 | + "main": "", | ||
| 23 | + "author": "", | ||
| 24 | + "license": "", | ||
| 25 | + "dependencies": {} | ||
| 26 | +} | ||
| 27 | + | ||
| @@ -0,0 +1,65 @@ | |||
| 1 | +{ | ||
| 2 | + "app":{ | ||
| 3 | + "bundleName":"com.example.accessibleabilitylist", | ||
| 4 | + "vendor":"example", | ||
| 5 | + "version":{ | ||
| 6 | + "code":1, | ||
| 7 | + "name":"1.0" | ||
| 8 | + } | ||
| 9 | + }, | ||
| 10 | + "deviceConfig":{ | ||
| 11 | + | ||
| 12 | + }, | ||
| 13 | + "module":{ | ||
| 14 | + "package":"com.example.accessibleabilitylist", | ||
| 15 | + "name":".entry", | ||
| 16 | + "mainAbility":".MainAbility", | ||
| 17 | + "deviceType": [ | ||
| 18 | + "tablet", | ||
| 19 | + "default" | ||
| 20 | + ], | ||
| 21 | + "distro":{ | ||
| 22 | + "deliveryWithInstall":true, | ||
| 23 | + "installationFree":false, | ||
| 24 | + "moduleName":"entry", | ||
| 25 | + "moduleType":"entry" | ||
| 26 | + }, | ||
| 27 | + "abilities":[ | ||
| 28 | + { | ||
| 29 | + "description":"$string:MainAbility_desc", | ||
| 30 | + "formsEnabled":false, | ||
| 31 | + "icon":"$media:icon", | ||
| 32 | + "label":"$string:MainAbility_label", | ||
| 33 | + "launchType":"standard", | ||
| 34 | + "name":".MainAbility", | ||
| 35 | + "orientation":"unspecified", | ||
| 36 | + "skills":[ | ||
| 37 | + { | ||
| 38 | + "actions":[ | ||
| 39 | + "action.system.home" | ||
| 40 | + ], | ||
| 41 | + "entities":[ | ||
| 42 | + "entity.system.home" | ||
| 43 | + ] | ||
| 44 | + } | ||
| 45 | + ], | ||
| 46 | + "srcLanguage":"js", | ||
| 47 | + "srcPath":"MainAbility", | ||
| 48 | + "type":"page", | ||
| 49 | + "visible":true | ||
| 50 | + } | ||
| 51 | + ], | ||
| 52 | + "js":[ | ||
| 53 | + { | ||
| 54 | + "name":".MainAbility", | ||
| 55 | + "pages":[ | ||
| 56 | + "pages/index/index" | ||
| 57 | + ], | ||
| 58 | + "window":{ | ||
| 59 | + "autoDesignWidth":false, | ||
| 60 | + "designWidth":720 | ||
| 61 | + } | ||
| 62 | + } | ||
| 63 | + ] | ||
| 64 | + } | ||
| 65 | +} | ||
Rbarrierfree/accessiblecheckability/src/main/js/MainAbility/app.js→barrierfree/accessibleabilitylist/entry/src/main/js/MainAbility/app.js+26-22
| @@ -1,22 +1,26 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2021 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | -export default { | 15 | +import hilog from '@ohos.hilog'; |
| 16 | - onCreate() { | 16 | +export default { |
| 17 | - console.info('AccessibilityApplication onCreate'); | 17 | + onCreate() { |
| 18 | - }, | 18 | + hilog.info(0x0000, 'testTag', '%{public}s', 'Application onCreate'); |
| 19 | - onDestroy() { | 19 | + }, |
| 20 | - console.info('AccessibilityApplication onDestroy'); | 20 | + onDestroy() { |
| 21 | - } | 21 | + hilog.info(0x0000, 'testTag', '%{public}s', 'Application onDestroy'); |
| 22 | -}; | 22 | + }, |
| 23 | +} | ||
| 24 | + | ||
| 25 | + | ||
| 26 | + | ||
Rbarrierfree/accessibleabilitylist/src/main/js/MainAbility/i18n/en-US.json→barrierfree/accessibleabilitylist/entry/src/main/js/MainAbility/i18n/en-US.json+0-0
文件重命名但无更改。
Rbarrierfree/accessibleabilitylist/src/main/js/MainAbility/i18n/zh-CN.json→barrierfree/accessibleabilitylist/entry/src/main/js/MainAbility/i18n/zh-CN.json+0-0
文件重命名但无更改。
| @@ -0,0 +1,60 @@ | |||
| 1 | +/* | ||
| 2 | + * Copyright (c) 2022 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +.container { | ||
| 16 | + flex-direction: column; | ||
| 17 | + justify-content: center; | ||
| 18 | + align-items: center; | ||
| 19 | + width: 100%; | ||
| 20 | + height: 100%; | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +.title { | ||
| 24 | + font-size: 40px; | ||
| 25 | + color: #000000; | ||
| 26 | + opacity: 0.9; | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +@media screen and (device-type: tablet) and (orientation: landscape) { | ||
| 30 | + .title { | ||
| 31 | + font-size: 100px; | ||
| 32 | + } | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +@media screen and (device-type: wearable) { | ||
| 36 | + .title { | ||
| 37 | + font-size: 28px; | ||
| 38 | + color: #FFFFFF; | ||
| 39 | + } | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +@media screen and (device-type: tv) { | ||
| 43 | + .container { | ||
| 44 | + background-image: url("/common/images/Wallpaper.png"); | ||
| 45 | + background-size: cover; | ||
| 46 | + background-repeat: no-repeat; | ||
| 47 | + background-position: center; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + .title { | ||
| 51 | + font-size: 100px; | ||
| 52 | + color: #FFFFFF; | ||
| 53 | + } | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | +@media screen and (device-type: phone) and (orientation: landscape) { | ||
| 57 | + .title { | ||
| 58 | + font-size: 60px; | ||
| 59 | + } | ||
| 60 | +} | ||
| @@ -0,0 +1,19 @@ | |||
| 1 | +/* | ||
| 2 | + * Copyright (c) 2022 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +<div class="container"> | ||
| 16 | + <text class="title"> | ||
| 17 | + {{ $t('strings.hello') }} {{ title }} | ||
| 18 | + </text> | ||
| 19 | +</div> | ||
| @@ -0,0 +1,22 @@ | |||
| 1 | +/** | ||
| 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +export default { | ||
| 16 | + data: { | ||
| 17 | + title: "" | ||
| 18 | + }, | ||
| 19 | + onInit() { | ||
| 20 | + this.title = this.$t('strings.world'); | ||
| 21 | + } | ||
| 22 | +} | ||
Rbarrierfree/accessibleabilitylist/src/main/resources/base/element/string.json→barrierfree/accessibleabilitylist/entry/src/main/resources/base/element/string.json+27-27
| @@ -1,28 +1,28 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "string": [ | 2 | + "string": [ |
| 3 | - { | 3 | + { |
| 4 | - "name": "app_name", | 4 | + "name": "app_name", |
| 5 | - "value": "ActsSetCheckSyncEnable" | 5 | + "value": "ActsSetCheckSyncEnable" |
| 6 | - }, | 6 | + }, |
| 7 | - { | 7 | + { |
| 8 | - "name": "mainability_description", | 8 | + "name": "mainability_description", |
| 9 | - "value": "JS_Phone_Empty Feature Ability" | 9 | + "value": "JS_Phone_Empty Feature Ability" |
| 10 | - }, | 10 | + }, |
| 11 | - { | 11 | + { |
| 12 | - "name": "MainAbility_desc", | 12 | + "name": "MainAbility_desc", |
| 13 | - "value": "description" | 13 | + "value": "description" |
| 14 | - }, | 14 | + }, |
| 15 | - { | 15 | + { |
| 16 | - "name": "MainAbility_label", | 16 | + "name": "MainAbility_label", |
| 17 | - "value": "label" | 17 | + "value": "label" |
| 18 | - }, | 18 | + }, |
| 19 | - { | 19 | + { |
| 20 | - "name": "TestAbility_desc", | 20 | + "name": "TestAbility_desc", |
| 21 | - "value": "description" | 21 | + "value": "description" |
| 22 | - }, | 22 | + }, |
| 23 | - { | 23 | + { |
| 24 | - "name": "TestAbility_label", | 24 | + "name": "TestAbility_label", |
| 25 | - "value": "label" | 25 | + "value": "label" |
| 26 | - } | 26 | + } |
| 27 | - ] | 27 | + ] |
| 28 | } | 28 | } |
Rbarrierfree/accessibleabilitylist/src/main/resources/base/media/icon.png→barrierfree/accessibleabilitylist/entry/src/main/resources/base/media/icon.png+0-0
文件重命名但无更改。
| @@ -0,0 +1,82 @@ | |||
| 1 | +{ | ||
| 2 | + "app":{ | ||
| 3 | + "bundleName":"com.example.accessibleabilitylist", | ||
| 4 | + "vendor":"example", | ||
| 5 | + "version":{ | ||
| 6 | + "code":1, | ||
| 7 | + "name":"1.0" | ||
| 8 | + } | ||
| 9 | + }, | ||
| 10 | + "deviceConfig":{ | ||
| 11 | + | ||
| 12 | + }, | ||
| 13 | + "module":{ | ||
| 14 | + "package":"com.example.accessibleabilitylist_test", | ||
| 15 | + "name":".entry_test", | ||
| 16 | + "mainAbility":".TestAbility", | ||
| 17 | + "deviceType": [ | ||
| 18 | + "tablet", | ||
| 19 | + "default" | ||
| 20 | + ], | ||
| 21 | + "testRunner":{ | ||
| 22 | + "name":"OpenHarmonyTestRunner", | ||
| 23 | + "srcPath":"TestRunner" | ||
| 24 | + }, | ||
| 25 | + "distro":{ | ||
| 26 | + "deliveryWithInstall":true, | ||
| 27 | + "installationFree":false, | ||
| 28 | + "moduleName":"entry_test", | ||
| 29 | + "moduleType":"feature" | ||
| 30 | + }, | ||
| 31 | + "abilities":[ | ||
| 32 | + { | ||
| 33 | + "description":"$string:TestAbility_desc", | ||
| 34 | + "formsEnabled":false, | ||
| 35 | + "icon":"$media:icon", | ||
| 36 | + "label":"$string:TestAbility_label", | ||
| 37 | + "launchType":"standard", | ||
| 38 | + "name":".TestAbility", | ||
| 39 | + "orientation":"unspecified", | ||
| 40 | + "skills":[ | ||
| 41 | + { | ||
| 42 | + "actions":[ | ||
| 43 | + "action.system.home" | ||
| 44 | + ], | ||
| 45 | + "entities":[ | ||
| 46 | + "entity.system.home" | ||
| 47 | + ] | ||
| 48 | + } | ||
| 49 | + ], | ||
| 50 | + "srcLanguage":"js", | ||
| 51 | + "srcPath":"TestAbility", | ||
| 52 | + "type":"page", | ||
| 53 | + "visible":true | ||
| 54 | + } | ||
| 55 | + ], | ||
| 56 | + "defPermissions": [ | ||
| 57 | + { | ||
| 58 | + "availableScope": [], | ||
| 59 | + "grantMode": "system_grant", | ||
| 60 | + "name": "ohos.permission.DISTRIBUTED_DATASYNC" | ||
| 61 | + } | ||
| 62 | + ], | ||
| 63 | + "reqPermissions": [ | ||
| 64 | + { | ||
| 65 | + "name": "ohos.permission.DISTRIBUTED_DATASYNC", | ||
| 66 | + "reason": "ceshi" | ||
| 67 | + } | ||
| 68 | + ], | ||
| 69 | + "js":[ | ||
| 70 | + { | ||
| 71 | + "name":".TestAbility", | ||
| 72 | + "pages":[ | ||
| 73 | + "pages/index/index" | ||
| 74 | + ], | ||
| 75 | + "window":{ | ||
| 76 | + "autoDesignWidth":false, | ||
| 77 | + "designWidth":720 | ||
| 78 | + } | ||
| 79 | + } | ||
| 80 | + ] | ||
| 81 | + } | ||
| 82 | +} | ||
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/app.js→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/app.js+33-31
| @@ -1,31 +1,33 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2022 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | - | 15 | +import hilog from '@ohos.hilog'; |
| 16 | -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' | 16 | +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; |
| 17 | -import { Hypium } from '@ohos/hypium' | 17 | +import { Hypium } from '@ohos/hypium'; |
| 18 | -import testsuite from '../test/List.test' | 18 | +import testsuite from '../test/List.test'; |
| 19 | - | 19 | + |
| 20 | -export default { | 20 | +export default { |
| 21 | - onCreate() { | 21 | + onCreate() { |
| 22 | - console.info('TestApplication onCreate') | 22 | + hilog.info(0x0000, 'testTag', '%{public}s', 'TestApplication onCreate'); |
| 23 | - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() | 23 | + var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() |
| 24 | - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() | 24 | + var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() |
| 25 | - console.info('start run testcase!!!') | 25 | + hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!'); |
| 26 | - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) | 26 | + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) |
| 27 | - }, | 27 | + }, |
| 28 | - onDestroy() { | 28 | + onDestroy() { |
| 29 | - console.info("TestApplication onDestroy"); | 29 | + hilog.info(0x0000, 'testTag', '%{public}s', 'TestApplication onDestroy'); |
| 30 | - } | 30 | + } |
| 31 | -}; | 31 | +}; |
| 32 | + | ||
| 33 | + | ||
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/i18n/en-US.json→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/i18n/en-US.json+7-7
| @@ -1,8 +1,8 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "strings": { | 2 | + "strings": { |
| 3 | - "hello": "Hello", | 3 | + "hello": "Hello", |
| 4 | - "world": "World" | 4 | + "world": "World" |
| 5 | - }, | 5 | + }, |
| 6 | - "Files": { | 6 | + "Files": { |
| 7 | - } | 7 | + } |
| 8 | } | 8 | } |
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/i18n/zh-CN.json→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/i18n/zh-CN.json+7-7
| @@ -1,8 +1,8 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "strings": { | 2 | + "strings": { |
| 3 | - "hello": "您好", | 3 | + "hello": "您好", |
| 4 | - "world": "世界" | 4 | + "world": "世界" |
| 5 | - }, | 5 | + }, |
| 6 | - "Files": { | 6 | + "Files": { |
| 7 | - } | 7 | + } |
| 8 | } | 8 | } |
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/pages/index/index.css→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/pages/index/index.css+29-29
| @@ -1,30 +1,30 @@ | |||
| 1 | -.container { | 1 | +.container { |
| 2 | - display: flex; | 2 | + display: flex; |
| 3 | - flex-direction: column; | 3 | + flex-direction: column; |
| 4 | - justify-content: center; | 4 | + justify-content: center; |
| 5 | - align-items: center; | 5 | + align-items: center; |
| 6 | - left: 0px; | 6 | + left: 0px; |
| 7 | - top: 0px; | 7 | + top: 0px; |
| 8 | - width: 100%; | 8 | + width: 100%; |
| 9 | - height: 100%; | 9 | + height: 100%; |
| 10 | -} | 10 | +} |
| 11 | - | 11 | + |
| 12 | -.title { | 12 | +.title { |
| 13 | - font-size: 60px; | 13 | + font-size: 60px; |
| 14 | - text-align: center; | 14 | + text-align: center; |
| 15 | - width: 100%; | 15 | + width: 100%; |
| 16 | - height: 40%; | 16 | + height: 40%; |
| 17 | - margin: 10px; | 17 | + margin: 10px; |
| 18 | -} | 18 | +} |
| 19 | - | 19 | + |
| 20 | -@media screen and (device-type: phone) and (orientation: landscape) { | 20 | +@media screen and (device-type: phone) and (orientation: landscape) { |
| 21 | - .title { | 21 | + .title { |
| 22 | - font-size: 60px; | 22 | + font-size: 60px; |
| 23 | - } | 23 | + } |
| 24 | -} | 24 | +} |
| 25 | - | 25 | + |
| 26 | -@media screen and (device-type: tablet) and (orientation: landscape) { | 26 | +@media screen and (device-type: tablet) and (orientation: landscape) { |
| 27 | - .title { | 27 | + .title { |
| 28 | - font-size: 100px; | 28 | + font-size: 100px; |
| 29 | - } | 29 | + } |
| 30 | } | 30 | } |
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/pages/index/index.hml→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/pages/index/index.hml+5-5
| @@ -1,5 +1,5 @@ | |||
| 1 | -<div class="container"> | 1 | +<div class="container"> |
| 2 | - <text class="title"> | 2 | + <text class="title"> |
| 3 | - {{ $t('strings.hello') }} {{ title }} | 3 | + {{ $t('strings.hello') }} {{ title }} |
| 4 | - </text> | 4 | + </text> |
| 5 | -</div> | 5 | +</div> |
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/pages/index/index.js→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestAbility/pages/index/index.js+25-26
| @@ -1,26 +1,25 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2022 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | - | 15 | +export default { |
| 16 | -export default { | 16 | + data: { |
| 17 | - data: { | 17 | + title: "" |
| 18 | - title: "" | 18 | + }, |
| 19 | - }, | 19 | + onInit() { |
| 20 | - onInit() { | 20 | + this.title = this.$t('strings.world'); |
| 21 | - this.title = this.$t('strings.world'); | 21 | + } |
| 22 | - } | 22 | +} |
| 23 | -} | 23 | + |
| 24 | - | 24 | + |
| 25 | - | 25 | + |
| 26 | - | ||
Rbarrierfree/accessibleregisterstate/src/main/js/TestRunner/OpenHarmonyTestRunner.js→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/TestRunner/OpenHarmonyTestRunner.js+41-59
| @@ -1,59 +1,41 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2022 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | - | 15 | +import hilog from '@ohos.hilog'; |
| 16 | -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' | 16 | +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; |
| 17 | - | 17 | + |
| 18 | -function translateParamsToString(parameters) { | 18 | + export default { |
| 19 | - const keySet = new Set([ | 19 | + onPrepare() { |
| 20 | - '-s class', '-s notClass', '-s suite', '-s itName', | 20 | + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner OnPrepare'); |
| 21 | - '-s level', '-s testType', '-s size', '-s timeout', | 21 | + }, |
| 22 | - '-s package', '-s dryRun' | 22 | + onRun() { |
| 23 | - ]) | 23 | + hilog.info(0x0000, 'testTag', '%{public}s', 'OpenHarmonyTestRunner onRun run'); |
| 24 | - let targetParams = ''; | 24 | + var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() |
| 25 | - for (const key in parameters) { | 25 | + var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() |
| 26 | - if (keySet.has(key)) { | 26 | + |
| 27 | - targetParams += ' ' + key + ' ' + parameters[key] | 27 | + var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility' |
| 28 | - } | 28 | + var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName |
| 29 | - } | 29 | + var debug = abilityDelegatorArguments.parameters["-D"] |
| 30 | - return targetParams.trim() | 30 | + if (debug == 'true') |
| 31 | -} | 31 | + { |
| 32 | - | 32 | + cmd += ' -D' |
| 33 | - export default { | 33 | + } |
| 34 | - onPrepare() { | 34 | + hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd); |
| 35 | - console.info('OpenHarmonyTestRunner OnPrepare') | 35 | + abilityDelegator.executeShellCommand(cmd, (err, data) => { |
| 36 | - }, | 36 | + hilog.info(0x0000, 'testTag', 'executeShellCommand : err : %{public}s', JSON.stringify(err) ?? ''); |
| 37 | - onRun() { | 37 | + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', data.stdResult ?? ''); |
| 38 | - console.log('OpenHarmonyTestRunner onRun run') | 38 | + hilog.info(0x0000, 'testTag', 'executeShellCommand : data : %{public}s', data.exitCode ?? ''); |
| 39 | - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() | 39 | + }) |
| 40 | - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() | 40 | + } |
| 41 | - | 41 | +}; |
| 42 | - var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility' | ||
| 43 | - | ||
| 44 | - var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName | ||
| 45 | - cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) | ||
| 46 | - var debug = abilityDelegatorArguments.parameters["-D"] | ||
| 47 | - console.info('debug value : '+debug) | ||
| 48 | - if (debug == 'true') | ||
| 49 | - { | ||
| 50 | - cmd += ' -D' | ||
| 51 | - } | ||
| 52 | - console.info('cmd : '+cmd) | ||
| 53 | - abilityDelegator.executeShellCommand(cmd, (err, data) => { | ||
| 54 | - console.info('executeShellCommand : err : ' + JSON.stringify(err)); | ||
| 55 | - console.info('executeShellCommand : data : ' + data.stdResult); | ||
| 56 | - console.info('executeShellCommand : data : ' + data.exitCode); | ||
| 57 | - }) | ||
| 58 | - } | ||
| 59 | -}; | ||
Rbarrierfree/accessibleabilitylist/src/main/js/test/AccessibleAbilityList.test.js→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/test/AccessibleAbilityList.test.js+540-540
| @@ -1,540 +1,540 @@ | |||
| 1 | -/* | 1 | +/* |
| 2 | - * Copyright (C) 2021 Huawei Device Co., Ltd. | 2 | + * Copyright (C) 2021 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' | 15 | +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' |
| 16 | - | 16 | + |
| 17 | -import accessibility from '@ohos.accessibility' | 17 | +import accessibility from '@ohos.accessibility' |
| 18 | -const abilityType = 'all'; | 18 | +const abilityType = 'all'; |
| 19 | -const abilityState = 'install'; | 19 | +const abilityState = 'install'; |
| 20 | -export default function AccessibleAbilityList() { | 20 | +export default function AccessibleAbilityList() { |
| 21 | -describe('AccessibleAbilityList', function () { | 21 | +describe('AccessibleAbilityList', function () { |
| 22 | - | 22 | + |
| 23 | - beforeAll(async function (done) { | 23 | + beforeAll(async function (done) { |
| 24 | - console.info(`AccessibleAbilityList: beforeAll starts`); | 24 | + console.info(`AccessibleAbilityList: beforeAll starts`); |
| 25 | - done(); | 25 | + done(); |
| 26 | - }) | 26 | + }) |
| 27 | - | 27 | + |
| 28 | - beforeEach(async function (done) { | 28 | + beforeEach(async function (done) { |
| 29 | - console.info(`AccessibleAbilityList: beforeEach starts`); | 29 | + console.info(`AccessibleAbilityList: beforeEach starts`); |
| 30 | - done(); | 30 | + done(); |
| 31 | - }) | 31 | + }) |
| 32 | - | 32 | + |
| 33 | - afterEach(async function (done) { | 33 | + afterEach(async function (done) { |
| 34 | - console.info(`AccessibleAbilityList: afterEach starts`); | 34 | + console.info(`AccessibleAbilityList: afterEach starts`); |
| 35 | - done(); | 35 | + done(); |
| 36 | - }) | 36 | + }) |
| 37 | - | 37 | + |
| 38 | - /******************************************************************************** */ | 38 | + /******************************************************************************** */ |
| 39 | - /* Cases AbilityList_0210-0460 are for accessibility.getAbilityLists() API test */ | 39 | + /* Cases AbilityList_0210-0460 are for accessibility.getAbilityLists() API test */ |
| 40 | - /******************************************************************************** */ | 40 | + /******************************************************************************** */ |
| 41 | - | 41 | + |
| 42 | - /* | 42 | + /* |
| 43 | - * @tc.number AbilityList_0210 | 43 | + * @tc.number AbilityList_0210 |
| 44 | - * @tc.name AbilityList_0210 | 44 | + * @tc.name AbilityList_0210 |
| 45 | - * @tc.desc The parameters input are 'audible' and 'install', test the getAbilityLists() function, | 45 | + * @tc.desc The parameters input are 'audible' and 'install', test the getAbilityLists() function, |
| 46 | - * and the output is the list of AccessibilityAbilityInfo | 46 | + * and the output is the list of AccessibilityAbilityInfo |
| 47 | - * @tc.size SmallTest | 47 | + * @tc.size SmallTest |
| 48 | - * @tc.type User | 48 | + * @tc.type User |
| 49 | - */ | 49 | + */ |
| 50 | - it('AbilityList_0210', 0, async function (done) { | 50 | + it('AbilityList_0210', 0, async function (done) { |
| 51 | - console.info('AbilityList_0210'); | 51 | + console.info('AbilityList_0210'); |
| 52 | - let abilityType = 'audible'; | 52 | + let abilityType = 'audible'; |
| 53 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 53 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 54 | - if (err && err.code != 0) { | 54 | + if (err && err.code != 0) { |
| 55 | - console.error(`AccessibleAbilityList: AbilityList_0210 has error: ${err.code}`); | 55 | + console.error(`AccessibleAbilityList: AbilityList_0210 has error: ${err.code}`); |
| 56 | - expect(null).assertFail(); | 56 | + expect(null).assertFail(); |
| 57 | - done(); | 57 | + done(); |
| 58 | - } | 58 | + } |
| 59 | - console.info(`AccessibleAbilityList: AbilityList_0210 result ${data.length}`); | 59 | + console.info(`AccessibleAbilityList: AbilityList_0210 result ${data.length}`); |
| 60 | - expect(Array.isArray(data)).assertEqual(true); | 60 | + expect(Array.isArray(data)).assertEqual(true); |
| 61 | - done(); | 61 | + done(); |
| 62 | - }); | 62 | + }); |
| 63 | - }) | 63 | + }) |
| 64 | - | 64 | + |
| 65 | - /* | 65 | + /* |
| 66 | - * @tc.number AbilityList_0220 | 66 | + * @tc.number AbilityList_0220 |
| 67 | - * @tc.name AbilityList_0220 | 67 | + * @tc.name AbilityList_0220 |
| 68 | - * @tc.desc The parameters input are 'generic' and 'install', test the getAbilityLists() function, | 68 | + * @tc.desc The parameters input are 'generic' and 'install', test the getAbilityLists() function, |
| 69 | - * and the output is the list of AccessibilityAbilityInfo | 69 | + * and the output is the list of AccessibilityAbilityInfo |
| 70 | - * @tc.size SmallTest | 70 | + * @tc.size SmallTest |
| 71 | - * @tc.type User | 71 | + * @tc.type User |
| 72 | - */ | 72 | + */ |
| 73 | - it('AbilityList_0220', 0, async function (done) { | 73 | + it('AbilityList_0220', 0, async function (done) { |
| 74 | - console.info('AbilityList_0220'); | 74 | + console.info('AbilityList_0220'); |
| 75 | - let abilityType = 'generic'; | 75 | + let abilityType = 'generic'; |
| 76 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 76 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 77 | - if (err && err.code != 0) { | 77 | + if (err && err.code != 0) { |
| 78 | - console.error(`AccessibleAbilityList: AbilityList_0220 has error: ${err.code}`); | 78 | + console.error(`AccessibleAbilityList: AbilityList_0220 has error: ${err.code}`); |
| 79 | - expect(null).assertFail(); | 79 | + expect(null).assertFail(); |
| 80 | - done(); | 80 | + done(); |
| 81 | - } | 81 | + } |
| 82 | - console.info(`AccessibleAbilityList: AbilityList_0220 result ${data.length}`); | 82 | + console.info(`AccessibleAbilityList: AbilityList_0220 result ${data.length}`); |
| 83 | - expect(Array.isArray(data)).assertEqual(true); | 83 | + expect(Array.isArray(data)).assertEqual(true); |
| 84 | - done(); | 84 | + done(); |
| 85 | - }); | 85 | + }); |
| 86 | - }) | 86 | + }) |
| 87 | - | 87 | + |
| 88 | - /* | 88 | + /* |
| 89 | - * @tc.number AbilityList_0230 | 89 | + * @tc.number AbilityList_0230 |
| 90 | - * @tc.name AbilityList_0230 | 90 | + * @tc.name AbilityList_0230 |
| 91 | - * @tc.desc The parameters input are 'haptic' and 'install', test the getAbilityLists() function, | 91 | + * @tc.desc The parameters input are 'haptic' and 'install', test the getAbilityLists() function, |
| 92 | - * and the output is the list of AccessibilityAbilityInfo | 92 | + * and the output is the list of AccessibilityAbilityInfo |
| 93 | - * @tc.size SmallTest | 93 | + * @tc.size SmallTest |
| 94 | - * @tc.type User | 94 | + * @tc.type User |
| 95 | - */ | 95 | + */ |
| 96 | - it('AbilityList_0230', 0, async function (done) { | 96 | + it('AbilityList_0230', 0, async function (done) { |
| 97 | - console.info('AbilityList_0230'); | 97 | + console.info('AbilityList_0230'); |
| 98 | - let abilityType = 'haptic'; | 98 | + let abilityType = 'haptic'; |
| 99 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 99 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 100 | - if (err && err.code != 0) { | 100 | + if (err && err.code != 0) { |
| 101 | - console.error(`AccessibleAbilityList: AbilityList_0230 has error: ${err.code}`); | 101 | + console.error(`AccessibleAbilityList: AbilityList_0230 has error: ${err.code}`); |
| 102 | - expect(null).assertFail(); | 102 | + expect(null).assertFail(); |
| 103 | - done(); | 103 | + done(); |
| 104 | - } | 104 | + } |
| 105 | - console.info(`AccessibleAbilityList: AbilityList_0230 result ${data.length}`); | 105 | + console.info(`AccessibleAbilityList: AbilityList_0230 result ${data.length}`); |
| 106 | - expect(Array.isArray(data)).assertEqual(true); | 106 | + expect(Array.isArray(data)).assertEqual(true); |
| 107 | - done(); | 107 | + done(); |
| 108 | - }); | 108 | + }); |
| 109 | - }) | 109 | + }) |
| 110 | - | 110 | + |
| 111 | - /* | 111 | + /* |
| 112 | - * @tc.number AbilityList_0240 | 112 | + * @tc.number AbilityList_0240 |
| 113 | - * @tc.name AbilityList_0240 | 113 | + * @tc.name AbilityList_0240 |
| 114 | - * @tc.desc The parameters input are 'spoken' and 'install', test the getAbilityLists() function, | 114 | + * @tc.desc The parameters input are 'spoken' and 'install', test the getAbilityLists() function, |
| 115 | - * and the output is the list of AccessibilityAbilityInfo | 115 | + * and the output is the list of AccessibilityAbilityInfo |
| 116 | - * @tc.size SmallTest | 116 | + * @tc.size SmallTest |
| 117 | - * @tc.type User | 117 | + * @tc.type User |
| 118 | - */ | 118 | + */ |
| 119 | - it('AbilityList_0240', 0, async function (done) { | 119 | + it('AbilityList_0240', 0, async function (done) { |
| 120 | - console.info('AbilityList_0240'); | 120 | + console.info('AbilityList_0240'); |
| 121 | - let abilityType = 'spoken'; | 121 | + let abilityType = 'spoken'; |
| 122 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 122 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 123 | - if (err && err.code != 0) { | 123 | + if (err && err.code != 0) { |
| 124 | - console.error(`AccessibleAbilityList: AbilityList_0240 has error: ${err.code}`); | 124 | + console.error(`AccessibleAbilityList: AbilityList_0240 has error: ${err.code}`); |
| 125 | - expect(null).assertFail(); | 125 | + expect(null).assertFail(); |
| 126 | - done(); | 126 | + done(); |
| 127 | - } | 127 | + } |
| 128 | - console.info(`AccessibleAbilityList: AbilityList_0240 result ${data.length}`); | 128 | + console.info(`AccessibleAbilityList: AbilityList_0240 result ${data.length}`); |
| 129 | - expect(Array.isArray(data)).assertEqual(true); | 129 | + expect(Array.isArray(data)).assertEqual(true); |
| 130 | - done(); | 130 | + done(); |
| 131 | - }); | 131 | + }); |
| 132 | - }) | 132 | + }) |
| 133 | - | 133 | + |
| 134 | - /* | 134 | + /* |
| 135 | - * @tc.number AbilityList_0250 | 135 | + * @tc.number AbilityList_0250 |
| 136 | - * @tc.name AbilityList_0250 | 136 | + * @tc.name AbilityList_0250 |
| 137 | - * @tc.desc The parameters input are 'visual' and 'install', test the getAbilityLists() function, | 137 | + * @tc.desc The parameters input are 'visual' and 'install', test the getAbilityLists() function, |
| 138 | - * and the output is the list of AccessibilityAbilityInfo | 138 | + * and the output is the list of AccessibilityAbilityInfo |
| 139 | - * @tc.size SmallTest | 139 | + * @tc.size SmallTest |
| 140 | - * @tc.type User | 140 | + * @tc.type User |
| 141 | - */ | 141 | + */ |
| 142 | - it('AbilityList_0250', 0, async function (done) { | 142 | + it('AbilityList_0250', 0, async function (done) { |
| 143 | - console.info('AbilityList_0250'); | 143 | + console.info('AbilityList_0250'); |
| 144 | - let abilityType = 'visual'; | 144 | + let abilityType = 'visual'; |
| 145 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 145 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 146 | - if (err && err.code != 0) { | 146 | + if (err && err.code != 0) { |
| 147 | - console.error(`AccessibleAbilityList: AbilityList_0250 has error: ${err.code}`); | 147 | + console.error(`AccessibleAbilityList: AbilityList_0250 has error: ${err.code}`); |
| 148 | - expect(null).assertFail(); | 148 | + expect(null).assertFail(); |
| 149 | - done(); | 149 | + done(); |
| 150 | - } | 150 | + } |
| 151 | - console.info(`AccessibleAbilityList: AbilityList_0250 result ${data.length}`); | 151 | + console.info(`AccessibleAbilityList: AbilityList_0250 result ${data.length}`); |
| 152 | - expect(Array.isArray(data)).assertEqual(true); | 152 | + expect(Array.isArray(data)).assertEqual(true); |
| 153 | - done(); | 153 | + done(); |
| 154 | - }); | 154 | + }); |
| 155 | - }) | 155 | + }) |
| 156 | - | 156 | + |
| 157 | - /* | 157 | + /* |
| 158 | - * @tc.number AbilityList_0260 | 158 | + * @tc.number AbilityList_0260 |
| 159 | - * @tc.name AbilityList_0260 | 159 | + * @tc.name AbilityList_0260 |
| 160 | - * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, | 160 | + * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, |
| 161 | - * and the output is the list of AccessibilityAbilityInfo | 161 | + * and the output is the list of AccessibilityAbilityInfo |
| 162 | - * @tc.size SmallTest | 162 | + * @tc.size SmallTest |
| 163 | - * @tc.type User | 163 | + * @tc.type User |
| 164 | - */ | 164 | + */ |
| 165 | - it('AbilityList_0260', 0, async function (done) { | 165 | + it('AbilityList_0260', 0, async function (done) { |
| 166 | - console.info('AbilityList_0260'); | 166 | + console.info('AbilityList_0260'); |
| 167 | - let abilityType = 'all'; | 167 | + let abilityType = 'all'; |
| 168 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 168 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 169 | - if (err && err.code != 0) { | 169 | + if (err && err.code != 0) { |
| 170 | - console.error(`AccessibleAbilityList: AbilityList_0260 has error: ${err.code}`); | 170 | + console.error(`AccessibleAbilityList: AbilityList_0260 has error: ${err.code}`); |
| 171 | - expect(null).assertFail(); | 171 | + expect(null).assertFail(); |
| 172 | - done(); | 172 | + done(); |
| 173 | - } | 173 | + } |
| 174 | - console.info(`AccessibleAbilityList: AbilityList_0260 result ${data.length}`); | 174 | + console.info(`AccessibleAbilityList: AbilityList_0260 result ${data.length}`); |
| 175 | - expect(Array.isArray(data)).assertEqual(true); | 175 | + expect(Array.isArray(data)).assertEqual(true); |
| 176 | - done(); | 176 | + done(); |
| 177 | - }); | 177 | + }); |
| 178 | - }) | 178 | + }) |
| 179 | - | 179 | + |
| 180 | - /* | 180 | + /* |
| 181 | - * @tc.number AbilityList_0270 | 181 | + * @tc.number AbilityList_0270 |
| 182 | - * @tc.name AbilityList_0270 | 182 | + * @tc.name AbilityList_0270 |
| 183 | - * @tc.desc The parameters input are '' and 'install', test the getAbilityLists() function, | 183 | + * @tc.desc The parameters input are '' and 'install', test the getAbilityLists() function, |
| 184 | - * and the output is the list of AccessibilityAbilityInfo | 184 | + * and the output is the list of AccessibilityAbilityInfo |
| 185 | - * @tc.size SmallTest | 185 | + * @tc.size SmallTest |
| 186 | - * @tc.type User | 186 | + * @tc.type User |
| 187 | - */ | 187 | + */ |
| 188 | - it('AbilityList_0270', 0, async function (done) { | 188 | + it('AbilityList_0270', 0, async function (done) { |
| 189 | - console.info('AbilityList_0270'); | 189 | + console.info('AbilityList_0270'); |
| 190 | - let abilityType = ''; | 190 | + let abilityType = ''; |
| 191 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 191 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 192 | - if (err && err.code != 0) { | 192 | + if (err && err.code != 0) { |
| 193 | - console.error(`AccessibleAbilityList: AbilityList_0270 has error: ${err.code}`); | 193 | + console.error(`AccessibleAbilityList: AbilityList_0270 has error: ${err.code}`); |
| 194 | - expect(Array.isArray(data)).assertEqual(true); | 194 | + expect(Array.isArray(data)).assertEqual(true); |
| 195 | - done(); | 195 | + done(); |
| 196 | - } | 196 | + } |
| 197 | - console.info(`AccessibleAbilityList: AbilityList_0270 result ${data.length}`); | 197 | + console.info(`AccessibleAbilityList: AbilityList_0270 result ${data.length}`); |
| 198 | - expect(Array.isArray(data)).assertEqual(true); | 198 | + expect(Array.isArray(data)).assertEqual(true); |
| 199 | - done(); | 199 | + done(); |
| 200 | - }); | 200 | + }); |
| 201 | - }) | 201 | + }) |
| 202 | - | 202 | + |
| 203 | - /* | 203 | + /* |
| 204 | - * @tc.number AbilityList_0280 | 204 | + * @tc.number AbilityList_0280 |
| 205 | - * @tc.name AbilityList_0280 | 205 | + * @tc.name AbilityList_0280 |
| 206 | - * @tc.desc The parameters input are null and 'install', test the getAbilityLists() function, | 206 | + * @tc.desc The parameters input are null and 'install', test the getAbilityLists() function, |
| 207 | - * and the output is the list of AccessibilityAbilityInfo | 207 | + * and the output is the list of AccessibilityAbilityInfo |
| 208 | - * @tc.size SmallTest | 208 | + * @tc.size SmallTest |
| 209 | - * @tc.type User | 209 | + * @tc.type User |
| 210 | - */ | 210 | + */ |
| 211 | - it('AbilityList_0280', 0, async function (done) { | 211 | + it('AbilityList_0280', 0, async function (done) { |
| 212 | - console.info('AbilityList_0280'); | 212 | + console.info('AbilityList_0280'); |
| 213 | - let abilityType = null; | 213 | + let abilityType = null; |
| 214 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 214 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 215 | - if (err && err.code != 0) { | 215 | + if (err && err.code != 0) { |
| 216 | - console.error(`AccessibleAbilityList: AbilityList_0280 has error: ${err.code}`); | 216 | + console.error(`AccessibleAbilityList: AbilityList_0280 has error: ${err.code}`); |
| 217 | - expect(Array.isArray(data)).assertEqual(true); | 217 | + expect(Array.isArray(data)).assertEqual(true); |
| 218 | - done(); | 218 | + done(); |
| 219 | - } | 219 | + } |
| 220 | - console.info(`AccessibleAbilityList: AbilityList_0280 result ${data.length}`); | 220 | + console.info(`AccessibleAbilityList: AbilityList_0280 result ${data.length}`); |
| 221 | - expect(Array.isArray(data)).assertEqual(true); | 221 | + expect(Array.isArray(data)).assertEqual(true); |
| 222 | - done(); | 222 | + done(); |
| 223 | - }); | 223 | + }); |
| 224 | - }) | 224 | + }) |
| 225 | - | 225 | + |
| 226 | - /* | 226 | + /* |
| 227 | - * @tc.number AbilityList_0290 | 227 | + * @tc.number AbilityList_0290 |
| 228 | - * @tc.name AbilityList_0290 | 228 | + * @tc.name AbilityList_0290 |
| 229 | - * @tc.desc The parameters input are 'all' and 'enable', test the getAbilityLists() function, | 229 | + * @tc.desc The parameters input are 'all' and 'enable', test the getAbilityLists() function, |
| 230 | - * and the output is the list of AccessibilityAbilityInfo | 230 | + * and the output is the list of AccessibilityAbilityInfo |
| 231 | - * @tc.size SmallTest | 231 | + * @tc.size SmallTest |
| 232 | - * @tc.type User | 232 | + * @tc.type User |
| 233 | - */ | 233 | + */ |
| 234 | - it('AbilityList_0290', 0, async function (done) { | 234 | + it('AbilityList_0290', 0, async function (done) { |
| 235 | - console.info('AbilityList_0290'); | 235 | + console.info('AbilityList_0290'); |
| 236 | - let abilityState = 'enable'; | 236 | + let abilityState = 'enable'; |
| 237 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 237 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 238 | - if (err && err.code != 0) { | 238 | + if (err && err.code != 0) { |
| 239 | - console.error(`AccessibleAbilityList: AbilityList_0290 has error: ${err.code}`); | 239 | + console.error(`AccessibleAbilityList: AbilityList_0290 has error: ${err.code}`); |
| 240 | - expect(null).assertFail(); | 240 | + expect(null).assertFail(); |
| 241 | - done(); | 241 | + done(); |
| 242 | - } | 242 | + } |
| 243 | - console.info(`AccessibleAbilityList: AbilityList_0290 result ${data.length}`); | 243 | + console.info(`AccessibleAbilityList: AbilityList_0290 result ${data.length}`); |
| 244 | - expect(Array.isArray(data)).assertEqual(true); | 244 | + expect(Array.isArray(data)).assertEqual(true); |
| 245 | - done(); | 245 | + done(); |
| 246 | - }); | 246 | + }); |
| 247 | - }) | 247 | + }) |
| 248 | - | 248 | + |
| 249 | - /* | 249 | + /* |
| 250 | - * @tc.number AbilityList_0300 | 250 | + * @tc.number AbilityList_0300 |
| 251 | - * @tc.name AbilityList_0300 | 251 | + * @tc.name AbilityList_0300 |
| 252 | - * @tc.desc The parameters input are 'all' and 'disable', test the getAbilityLists() function, | 252 | + * @tc.desc The parameters input are 'all' and 'disable', test the getAbilityLists() function, |
| 253 | - * and the output is the list of AccessibilityAbilityInfo | 253 | + * and the output is the list of AccessibilityAbilityInfo |
| 254 | - * @tc.size SmallTest | 254 | + * @tc.size SmallTest |
| 255 | - * @tc.type User | 255 | + * @tc.type User |
| 256 | - */ | 256 | + */ |
| 257 | - it('AbilityList_0300', 0, async function (done) { | 257 | + it('AbilityList_0300', 0, async function (done) { |
| 258 | - console.info('AbilityList_0300'); | 258 | + console.info('AbilityList_0300'); |
| 259 | - let abilityState = 'disable'; | 259 | + let abilityState = 'disable'; |
| 260 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 260 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 261 | - if (err && err.code != 0) { | 261 | + if (err && err.code != 0) { |
| 262 | - console.error(`AccessibleAbilityList: AbilityList_0300 has error: ${err.code}`); | 262 | + console.error(`AccessibleAbilityList: AbilityList_0300 has error: ${err.code}`); |
| 263 | - expect(null).assertFail(); | 263 | + expect(null).assertFail(); |
| 264 | - done(); | 264 | + done(); |
| 265 | - } | 265 | + } |
| 266 | - console.info(`AccessibleAbilityList: AbilityList_0300 result ${data.length}`); | 266 | + console.info(`AccessibleAbilityList: AbilityList_0300 result ${data.length}`); |
| 267 | - expect(Array.isArray(data)).assertEqual(true); | 267 | + expect(Array.isArray(data)).assertEqual(true); |
| 268 | - done(); | 268 | + done(); |
| 269 | - }); | 269 | + }); |
| 270 | - }) | 270 | + }) |
| 271 | - | 271 | + |
| 272 | - /* | 272 | + /* |
| 273 | - * @tc.number AbilityList_0310 | 273 | + * @tc.number AbilityList_0310 |
| 274 | - * @tc.name AbilityList_0310 | 274 | + * @tc.name AbilityList_0310 |
| 275 | - * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, | 275 | + * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, |
| 276 | - * and the output is the list of AccessibilityAbilityInfo | 276 | + * and the output is the list of AccessibilityAbilityInfo |
| 277 | - * @tc.size SmallTest | 277 | + * @tc.size SmallTest |
| 278 | - * @tc.type User | 278 | + * @tc.type User |
| 279 | - */ | 279 | + */ |
| 280 | - it('AbilityList_0310', 0, async function (done) { | 280 | + it('AbilityList_0310', 0, async function (done) { |
| 281 | - console.info('AbilityList_0310'); | 281 | + console.info('AbilityList_0310'); |
| 282 | - let abilityState = 'install'; | 282 | + let abilityState = 'install'; |
| 283 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 283 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 284 | - if (err && err.code != 0) { | 284 | + if (err && err.code != 0) { |
| 285 | - console.error(`AccessibleAbilityList: AbilityList_0310 has error: ${err.code}`); | 285 | + console.error(`AccessibleAbilityList: AbilityList_0310 has error: ${err.code}`); |
| 286 | - expect(null).assertFail(); | 286 | + expect(null).assertFail(); |
| 287 | - done(); | 287 | + done(); |
| 288 | - } | 288 | + } |
| 289 | - console.info(`AccessibleAbilityList: AbilityList_0310 result ${data.length}`); | 289 | + console.info(`AccessibleAbilityList: AbilityList_0310 result ${data.length}`); |
| 290 | - expect(Array.isArray(data)).assertEqual(true); | 290 | + expect(Array.isArray(data)).assertEqual(true); |
| 291 | - done(); | 291 | + done(); |
| 292 | - }); | 292 | + }); |
| 293 | - }) | 293 | + }) |
| 294 | - | 294 | + |
| 295 | - /* | 295 | + /* |
| 296 | - * @tc.number AbilityList_0320 | 296 | + * @tc.number AbilityList_0320 |
| 297 | - * @tc.name AbilityList_0320 | 297 | + * @tc.name AbilityList_0320 |
| 298 | - * @tc.desc The parameters input are 'all' and '', test the getAbilityLists() function, | 298 | + * @tc.desc The parameters input are 'all' and '', test the getAbilityLists() function, |
| 299 | - * and the output is the list of AccessibilityAbilityInfo | 299 | + * and the output is the list of AccessibilityAbilityInfo |
| 300 | - * @tc.size SmallTest | 300 | + * @tc.size SmallTest |
| 301 | - * @tc.type User | 301 | + * @tc.type User |
| 302 | - */ | 302 | + */ |
| 303 | - it('AbilityList_0320', 0, async function (done) { | 303 | + it('AbilityList_0320', 0, async function (done) { |
| 304 | - console.info('AbilityList_0320'); | 304 | + console.info('AbilityList_0320'); |
| 305 | - let abilityState = ''; | 305 | + let abilityState = ''; |
| 306 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 306 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 307 | - if (err && err.code != 0) { | 307 | + if (err && err.code != 0) { |
| 308 | - console.error(`AccessibleAbilityList: AbilityList_0320 has error: ${err.code}`); | 308 | + console.error(`AccessibleAbilityList: AbilityList_0320 has error: ${err.code}`); |
| 309 | - expect(Array.isArray(data)).assertEqual(true); | 309 | + expect(Array.isArray(data)).assertEqual(true); |
| 310 | - done(); | 310 | + done(); |
| 311 | - } | 311 | + } |
| 312 | - console.info(`AccessibleAbilityList: AbilityList_0320 result ${data.length}`); | 312 | + console.info(`AccessibleAbilityList: AbilityList_0320 result ${data.length}`); |
| 313 | - expect(Array.isArray(data)).assertEqual(true); | 313 | + expect(Array.isArray(data)).assertEqual(true); |
| 314 | - done(); | 314 | + done(); |
| 315 | - }); | 315 | + }); |
| 316 | - }) | 316 | + }) |
| 317 | - | 317 | + |
| 318 | - /* | 318 | + /* |
| 319 | - * @tc.number AbilityList_0330 | 319 | + * @tc.number AbilityList_0330 |
| 320 | - * @tc.name AbilityList_0330 | 320 | + * @tc.name AbilityList_0330 |
| 321 | - * @tc.desc The parameters input are 'all' and null, test the getAbilityLists() function, | 321 | + * @tc.desc The parameters input are 'all' and null, test the getAbilityLists() function, |
| 322 | - * and the output is the list of AccessibilityAbilityInfo | 322 | + * and the output is the list of AccessibilityAbilityInfo |
| 323 | - * @tc.size SmallTest | 323 | + * @tc.size SmallTest |
| 324 | - * @tc.type User | 324 | + * @tc.type User |
| 325 | - */ | 325 | + */ |
| 326 | - it('AbilityList_0330', 0, async function (done) { | 326 | + it('AbilityList_0330', 0, async function (done) { |
| 327 | - console.info('AbilityList_0330'); | 327 | + console.info('AbilityList_0330'); |
| 328 | - let abilityState = null; | 328 | + let abilityState = null; |
| 329 | - accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { | 329 | + accessibility.getAbilityLists(abilityType, abilityState, (err, data) => { |
| 330 | - if (err && err.code != 0) { | 330 | + if (err && err.code != 0) { |
| 331 | - console.error(`AccessibleAbilityList: AbilityList_0330 has error: ${err.code}`); | 331 | + console.error(`AccessibleAbilityList: AbilityList_0330 has error: ${err.code}`); |
| 332 | - expect(Array.isArray(data)).assertEqual(true); | 332 | + expect(Array.isArray(data)).assertEqual(true); |
| 333 | - done(); | 333 | + done(); |
| 334 | - } | 334 | + } |
| 335 | - console.info(`AccessibleAbilityList: AbilityList_0330 result ${data.length}`); | 335 | + console.info(`AccessibleAbilityList: AbilityList_0330 result ${data.length}`); |
| 336 | - expect(Array.isArray(data)).assertEqual(true); | 336 | + expect(Array.isArray(data)).assertEqual(true); |
| 337 | - done(); | 337 | + done(); |
| 338 | - }); | 338 | + }); |
| 339 | - }) | 339 | + }) |
| 340 | - | 340 | + |
| 341 | - /* | 341 | + /* |
| 342 | - * @tc.number AbilityList_0340 | 342 | + * @tc.number AbilityList_0340 |
| 343 | - * @tc.name AbilityList_0340 | 343 | + * @tc.name AbilityList_0340 |
| 344 | - * @tc.desc The parameters input are 'audible' and 'install', test the getAbilityLists() function, | 344 | + * @tc.desc The parameters input are 'audible' and 'install', test the getAbilityLists() function, |
| 345 | - * and the output is the list of AccessibilityAbilityInfo | 345 | + * and the output is the list of AccessibilityAbilityInfo |
| 346 | - * @tc.size SmallTest | 346 | + * @tc.size SmallTest |
| 347 | - * @tc.type User | 347 | + * @tc.type User |
| 348 | - */ | 348 | + */ |
| 349 | - it('AbilityList_0340', 0, async function (done) { | 349 | + it('AbilityList_0340', 0, async function (done) { |
| 350 | - console.info('AbilityList_0340'); | 350 | + console.info('AbilityList_0340'); |
| 351 | - let abilityType = 'audible'; | 351 | + let abilityType = 'audible'; |
| 352 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 352 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 353 | - console.info(`AccessibleAbilityList: AbilityList_0340 result ${result.length}`); | 353 | + console.info(`AccessibleAbilityList: AbilityList_0340 result ${result.length}`); |
| 354 | - expect(Array.isArray(result)).assertEqual(true); | 354 | + expect(Array.isArray(result)).assertEqual(true); |
| 355 | - done(); | 355 | + done(); |
| 356 | - }).catch((err) => { | 356 | + }).catch((err) => { |
| 357 | - console.error(`AccessibleAbilityList: AbilityList_0340 has error: ${err}`); | 357 | + console.error(`AccessibleAbilityList: AbilityList_0340 has error: ${err}`); |
| 358 | - expect(null).assertFail(); | 358 | + expect(null).assertFail(); |
| 359 | - done(); | 359 | + done(); |
| 360 | - }); | 360 | + }); |
| 361 | - }) | 361 | + }) |
| 362 | - | 362 | + |
| 363 | - /* | 363 | + /* |
| 364 | - * @tc.number AbilityList_0350 | 364 | + * @tc.number AbilityList_0350 |
| 365 | - * @tc.name AbilityList_0350 | 365 | + * @tc.name AbilityList_0350 |
| 366 | - * @tc.desc The parameters input are 'generic' and 'install', test the getAbilityLists() function, | 366 | + * @tc.desc The parameters input are 'generic' and 'install', test the getAbilityLists() function, |
| 367 | - * and the output is the list of AccessibilityAbilityInfo | 367 | + * and the output is the list of AccessibilityAbilityInfo |
| 368 | - * @tc.size SmallTest | 368 | + * @tc.size SmallTest |
| 369 | - * @tc.type User | 369 | + * @tc.type User |
| 370 | - */ | 370 | + */ |
| 371 | - it('AbilityList_0350', 0, async function (done) { | 371 | + it('AbilityList_0350', 0, async function (done) { |
| 372 | - console.info('AbilityList_0350'); | 372 | + console.info('AbilityList_0350'); |
| 373 | - let abilityType = 'generic'; | 373 | + let abilityType = 'generic'; |
| 374 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 374 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 375 | - console.info(`AccessibleAbilityList: AbilityList_0350 result ${result.length}`); | 375 | + console.info(`AccessibleAbilityList: AbilityList_0350 result ${result.length}`); |
| 376 | - expect(Array.isArray(result)).assertEqual(true); | 376 | + expect(Array.isArray(result)).assertEqual(true); |
| 377 | - done(); | 377 | + done(); |
| 378 | - }).catch((err) => { | 378 | + }).catch((err) => { |
| 379 | - console.error(`AccessibleAbilityList: AbilityList_0350 has error: ${err}`); | 379 | + console.error(`AccessibleAbilityList: AbilityList_0350 has error: ${err}`); |
| 380 | - expect(null).assertFail(); | 380 | + expect(null).assertFail(); |
| 381 | - done(); | 381 | + done(); |
| 382 | - }); | 382 | + }); |
| 383 | - }) | 383 | + }) |
| 384 | - | 384 | + |
| 385 | - /* | 385 | + /* |
| 386 | - * @tc.number AbilityList_0360 | 386 | + * @tc.number AbilityList_0360 |
| 387 | - * @tc.name AbilityList_0360 | 387 | + * @tc.name AbilityList_0360 |
| 388 | - * @tc.desc The parameters input are 'haptic' and 'install', test the getAbilityLists() function, | 388 | + * @tc.desc The parameters input are 'haptic' and 'install', test the getAbilityLists() function, |
| 389 | - * and the output is the list of AccessibilityAbilityInfo | 389 | + * and the output is the list of AccessibilityAbilityInfo |
| 390 | - * @tc.size SmallTest | 390 | + * @tc.size SmallTest |
| 391 | - * @tc.type User | 391 | + * @tc.type User |
| 392 | - */ | 392 | + */ |
| 393 | - it('AbilityList_0360', 0, async function (done) { | 393 | + it('AbilityList_0360', 0, async function (done) { |
| 394 | - console.info('AbilityList_0360'); | 394 | + console.info('AbilityList_0360'); |
| 395 | - let abilityType = 'haptic'; | 395 | + let abilityType = 'haptic'; |
| 396 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 396 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 397 | - console.info(`AccessibleAbilityList: AbilityList_0360 result ${result.length}`); | 397 | + console.info(`AccessibleAbilityList: AbilityList_0360 result ${result.length}`); |
| 398 | - expect(Array.isArray(result)).assertEqual(true); | 398 | + expect(Array.isArray(result)).assertEqual(true); |
| 399 | - done(); | 399 | + done(); |
| 400 | - }).catch((err) => { | 400 | + }).catch((err) => { |
| 401 | - console.error(`AccessibleAbilityList: AbilityList_0360 has error: ${err}`); | 401 | + console.error(`AccessibleAbilityList: AbilityList_0360 has error: ${err}`); |
| 402 | - expect(null).assertFail(); | 402 | + expect(null).assertFail(); |
| 403 | - done(); | 403 | + done(); |
| 404 | - }); | 404 | + }); |
| 405 | - }) | 405 | + }) |
| 406 | - | 406 | + |
| 407 | - /* | 407 | + /* |
| 408 | - * @tc.number AbilityList_0370 | 408 | + * @tc.number AbilityList_0370 |
| 409 | - * @tc.name AbilityList_0370 | 409 | + * @tc.name AbilityList_0370 |
| 410 | - * @tc.desc The parameters input are 'spoken' and 'install', test the getAbilityLists() function, | 410 | + * @tc.desc The parameters input are 'spoken' and 'install', test the getAbilityLists() function, |
| 411 | - * and the output is the list of AccessibilityAbilityInfo | 411 | + * and the output is the list of AccessibilityAbilityInfo |
| 412 | - * @tc.size SmallTest | 412 | + * @tc.size SmallTest |
| 413 | - * @tc.type User | 413 | + * @tc.type User |
| 414 | - */ | 414 | + */ |
| 415 | - it('AbilityList_0370', 0, async function (done) { | 415 | + it('AbilityList_0370', 0, async function (done) { |
| 416 | - console.info('AbilityList_0370'); | 416 | + console.info('AbilityList_0370'); |
| 417 | - let abilityType = 'spoken'; | 417 | + let abilityType = 'spoken'; |
| 418 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 418 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 419 | - console.info(`AccessibleAbilityList: AbilityList_0370 result ${result.length}`); | 419 | + console.info(`AccessibleAbilityList: AbilityList_0370 result ${result.length}`); |
| 420 | - expect(Array.isArray(result)).assertEqual(true); | 420 | + expect(Array.isArray(result)).assertEqual(true); |
| 421 | - done(); | 421 | + done(); |
| 422 | - }).catch((err) => { | 422 | + }).catch((err) => { |
| 423 | - console.error(`AccessibleAbilityList: AbilityList_0370 has error: ${err}`); | 423 | + console.error(`AccessibleAbilityList: AbilityList_0370 has error: ${err}`); |
| 424 | - expect(null).assertFail(); | 424 | + expect(null).assertFail(); |
| 425 | - done(); | 425 | + done(); |
| 426 | - }); | 426 | + }); |
| 427 | - }) | 427 | + }) |
| 428 | - | 428 | + |
| 429 | - /* | 429 | + /* |
| 430 | - * @tc.number AbilityList_0380 | 430 | + * @tc.number AbilityList_0380 |
| 431 | - * @tc.name AbilityList_0380 | 431 | + * @tc.name AbilityList_0380 |
| 432 | - * @tc.desc The parameters input are 'visual' and 'install', test the getAbilityLists() function, | 432 | + * @tc.desc The parameters input are 'visual' and 'install', test the getAbilityLists() function, |
| 433 | - * and the output is the list of AccessibilityAbilityInfo | 433 | + * and the output is the list of AccessibilityAbilityInfo |
| 434 | - * @tc.size SmallTest | 434 | + * @tc.size SmallTest |
| 435 | - * @tc.type User | 435 | + * @tc.type User |
| 436 | - */ | 436 | + */ |
| 437 | - it('AbilityList_0380', 0, async function (done) { | 437 | + it('AbilityList_0380', 0, async function (done) { |
| 438 | - console.info('AbilityList_0380'); | 438 | + console.info('AbilityList_0380'); |
| 439 | - let abilityType = 'visual'; | 439 | + let abilityType = 'visual'; |
| 440 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 440 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 441 | - console.info(`AccessibleAbilityList: AbilityList_0380 result ${result.length}`); | 441 | + console.info(`AccessibleAbilityList: AbilityList_0380 result ${result.length}`); |
| 442 | - expect(Array.isArray(result)).assertEqual(true); | 442 | + expect(Array.isArray(result)).assertEqual(true); |
| 443 | - done(); | 443 | + done(); |
| 444 | - }).catch((err) => { | 444 | + }).catch((err) => { |
| 445 | - console.error(`AccessibleAbilityList: AbilityList_0380 has error: ${err}`); | 445 | + console.error(`AccessibleAbilityList: AbilityList_0380 has error: ${err}`); |
| 446 | - expect(null).assertFail(); | 446 | + expect(null).assertFail(); |
| 447 | - done(); | 447 | + done(); |
| 448 | - }); | 448 | + }); |
| 449 | - }) | 449 | + }) |
| 450 | - | 450 | + |
| 451 | - /* | 451 | + /* |
| 452 | - * @tc.number AbilityList_0390 | 452 | + * @tc.number AbilityList_0390 |
| 453 | - * @tc.name AbilityList_0390 | 453 | + * @tc.name AbilityList_0390 |
| 454 | - * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, | 454 | + * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, |
| 455 | - * and the output is the list of AccessibilityAbilityInfo | 455 | + * and the output is the list of AccessibilityAbilityInfo |
| 456 | - * @tc.size SmallTest | 456 | + * @tc.size SmallTest |
| 457 | - * @tc.type User | 457 | + * @tc.type User |
| 458 | - */ | 458 | + */ |
| 459 | - it('AbilityList_0390', 0, async function (done) { | 459 | + it('AbilityList_0390', 0, async function (done) { |
| 460 | - console.info('AbilityList_0390'); | 460 | + console.info('AbilityList_0390'); |
| 461 | - let abilityType = 'all'; | 461 | + let abilityType = 'all'; |
| 462 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 462 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 463 | - console.info(`AccessibleAbilityList: AbilityList_0390 result ${result.length}`); | 463 | + console.info(`AccessibleAbilityList: AbilityList_0390 result ${result.length}`); |
| 464 | - expect(Array.isArray(result)).assertEqual(true); | 464 | + expect(Array.isArray(result)).assertEqual(true); |
| 465 | - done(); | 465 | + done(); |
| 466 | - }).catch((err) => { | 466 | + }).catch((err) => { |
| 467 | - console.error(`AccessibleAbilityList: AbilityList_0390 has error: ${err}`); | 467 | + console.error(`AccessibleAbilityList: AbilityList_0390 has error: ${err}`); |
| 468 | - expect(null).assertFail(); | 468 | + expect(null).assertFail(); |
| 469 | - done(); | 469 | + done(); |
| 470 | - }); | 470 | + }); |
| 471 | - }) | 471 | + }) |
| 472 | - | 472 | + |
| 473 | - | 473 | + |
| 474 | - /* | 474 | + /* |
| 475 | - * @tc.number AbilityList_0420 | 475 | + * @tc.number AbilityList_0420 |
| 476 | - * @tc.name AbilityList_0420 | 476 | + * @tc.name AbilityList_0420 |
| 477 | - * @tc.desc The parameters input are 'all' and 'enable', test the getAbilityLists() function, | 477 | + * @tc.desc The parameters input are 'all' and 'enable', test the getAbilityLists() function, |
| 478 | - * and the output is the list of AccessibilityAbilityInfo | 478 | + * and the output is the list of AccessibilityAbilityInfo |
| 479 | - * @tc.size SmallTest | 479 | + * @tc.size SmallTest |
| 480 | - * @tc.type User | 480 | + * @tc.type User |
| 481 | - */ | 481 | + */ |
| 482 | - it('AbilityList_0420', 0, async function (done) { | 482 | + it('AbilityList_0420', 0, async function (done) { |
| 483 | - console.info('AbilityList_0420'); | 483 | + console.info('AbilityList_0420'); |
| 484 | - let abilityState = 'enable'; | 484 | + let abilityState = 'enable'; |
| 485 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 485 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 486 | - console.info(`AccessibleAbilityList: AbilityList_0420 result ${result.length}`); | 486 | + console.info(`AccessibleAbilityList: AbilityList_0420 result ${result.length}`); |
| 487 | - expect(Array.isArray(result)).assertEqual(true); | 487 | + expect(Array.isArray(result)).assertEqual(true); |
| 488 | - done(); | 488 | + done(); |
| 489 | - }).catch((err) => { | 489 | + }).catch((err) => { |
| 490 | - console.error(`AccessibleAbilityList: AbilityList_0420 has error: ${err}`); | 490 | + console.error(`AccessibleAbilityList: AbilityList_0420 has error: ${err}`); |
| 491 | - expect(null).assertFail(); | 491 | + expect(null).assertFail(); |
| 492 | - done(); | 492 | + done(); |
| 493 | - }); | 493 | + }); |
| 494 | - }) | 494 | + }) |
| 495 | - | 495 | + |
| 496 | - /* | 496 | + /* |
| 497 | - * @tc.number AbilityList_0430 | 497 | + * @tc.number AbilityList_0430 |
| 498 | - * @tc.name AbilityList_0430 | 498 | + * @tc.name AbilityList_0430 |
| 499 | - * @tc.desc The parameters input are 'all' and 'disable', test the getAbilityLists() function, | 499 | + * @tc.desc The parameters input are 'all' and 'disable', test the getAbilityLists() function, |
| 500 | - * and the output is the list of AccessibilityAbilityInfo | 500 | + * and the output is the list of AccessibilityAbilityInfo |
| 501 | - * @tc.size SmallTest | 501 | + * @tc.size SmallTest |
| 502 | - * @tc.type User | 502 | + * @tc.type User |
| 503 | - */ | 503 | + */ |
| 504 | - it('AbilityList_0430', 0, async function (done) { | 504 | + it('AbilityList_0430', 0, async function (done) { |
| 505 | - console.info('AbilityList_0430'); | 505 | + console.info('AbilityList_0430'); |
| 506 | - let abilityState = 'disable'; | 506 | + let abilityState = 'disable'; |
| 507 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 507 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 508 | - console.info(`AccessibleAbilityList: AbilityList_0430 result ${result.length}`); | 508 | + console.info(`AccessibleAbilityList: AbilityList_0430 result ${result.length}`); |
| 509 | - expect(Array.isArray(result)).assertEqual(true); | 509 | + expect(Array.isArray(result)).assertEqual(true); |
| 510 | - done(); | 510 | + done(); |
| 511 | - }).catch((err) => { | 511 | + }).catch((err) => { |
| 512 | - console.error(`AccessibleAbilityList: AbilityList_0430 has error: ${err}`); | 512 | + console.error(`AccessibleAbilityList: AbilityList_0430 has error: ${err}`); |
| 513 | - expect(null).assertFail(); | 513 | + expect(null).assertFail(); |
| 514 | - done(); | 514 | + done(); |
| 515 | - }); | 515 | + }); |
| 516 | - }) | 516 | + }) |
| 517 | - | 517 | + |
| 518 | - /* | 518 | + /* |
| 519 | - * @tc.number AbilityList_0440 | 519 | + * @tc.number AbilityList_0440 |
| 520 | - * @tc.name AbilityList_0440 | 520 | + * @tc.name AbilityList_0440 |
| 521 | - * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, | 521 | + * @tc.desc The parameters input are 'all' and 'install', test the getAbilityLists() function, |
| 522 | - * and the output is the list of AccessibilityAbilityInfo | 522 | + * and the output is the list of AccessibilityAbilityInfo |
| 523 | - * @tc.size SmallTest | 523 | + * @tc.size SmallTest |
| 524 | - * @tc.type User | 524 | + * @tc.type User |
| 525 | - */ | 525 | + */ |
| 526 | - it('AbilityList_0440', 0, async function (done) { | 526 | + it('AbilityList_0440', 0, async function (done) { |
| 527 | - console.info('AbilityList_0440'); | 527 | + console.info('AbilityList_0440'); |
| 528 | - let abilityState = 'install'; | 528 | + let abilityState = 'install'; |
| 529 | - accessibility.getAbilityLists(abilityType, abilityState).then((result) => { | 529 | + accessibility.getAbilityLists(abilityType, abilityState).then((result) => { |
| 530 | - console.info(`AccessibleAbilityList: AbilityList_0440 result ${result.length}`); | 530 | + console.info(`AccessibleAbilityList: AbilityList_0440 result ${result.length}`); |
| 531 | - expect(Array.isArray(result)).assertEqual(true); | 531 | + expect(Array.isArray(result)).assertEqual(true); |
| 532 | - done(); | 532 | + done(); |
| 533 | - }).catch((err) => { | 533 | + }).catch((err) => { |
| 534 | - console.error(`AccessibleAbilityList: AbilityList_0440 has error: ${err}`); | 534 | + console.error(`AccessibleAbilityList: AbilityList_0440 has error: ${err}`); |
| 535 | - expect(null).assertFail(); | 535 | + expect(null).assertFail(); |
| 536 | - done(); | 536 | + done(); |
| 537 | - }); | 537 | + }); |
| 538 | - }) | 538 | + }) |
| 539 | -}) | 539 | +}) |
| 540 | -} | 540 | +} |
Rbarrierfree/accessibleabilitylist/src/main/js/test/List.test.js→barrierfree/accessibleabilitylist/entry/src/ohosTest/js/test/List.test.js+19-19
| @@ -1,19 +1,19 @@ | |||
| 1 | -/* | 1 | +/* |
| 2 | - * Copyright (C) 2021 Huawei Device Co., Ltd. | 2 | + * Copyright (C) 2021 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | -import AccessibleAbilityList from './AccessibleAbilityList.test.js' | 15 | +import AccessibleAbilityList from './AccessibleAbilityList.test.js' |
| 16 | - | 16 | + |
| 17 | -export default function testsuite() { | 17 | +export default function testsuite() { |
| 18 | - AccessibleAbilityList() | 18 | + AccessibleAbilityList() |
| 19 | -} | 19 | +} |
| @@ -0,0 +1,28 @@ | |||
| 1 | +{ | ||
| 2 | + "string": [ | ||
| 3 | + { | ||
| 4 | + "name": "app_name", | ||
| 5 | + "value": "ActsSetCheckSyncEnable" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "name": "mainability_description", | ||
| 9 | + "value": "JS_Phone_Empty Feature Ability" | ||
| 10 | + }, | ||
| 11 | + { | ||
| 12 | + "name": "MainAbility_desc", | ||
| 13 | + "value": "description" | ||
| 14 | + }, | ||
| 15 | + { | ||
| 16 | + "name": "MainAbility_label", | ||
| 17 | + "value": "label" | ||
| 18 | + }, | ||
| 19 | + { | ||
| 20 | + "name": "TestAbility_desc", | ||
| 21 | + "value": "description" | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "name": "TestAbility_label", | ||
| 25 | + "value": "label" | ||
| 26 | + } | ||
| 27 | + ] | ||
| 28 | +} | ||
Rbarrierfree/accessiblecheckability/src/main/resources/base/media/icon.png→barrierfree/accessibleabilitylist/entry/src/ohosTest/resources/base/media/icon.png+0-0
文件重命名但无更改。
| @@ -0,0 +1,20 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | +{ | ||
| 16 | + "hvigorVersion": "2.4.2", | ||
| 17 | + "dependencies": { | ||
| 18 | + "@ohos/hvigor-ohos-plugin": "2.4.2" | ||
| 19 | + } | ||
| 20 | +} | ||
| @@ -0,0 +1,16 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. | ||
| 16 | +export { legacyAppTasks } from '@ohos/hvigor-ohos-plugin'; | ||
| @@ -0,0 +1,61 @@ | |||
| 1 | +# Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 3 | +# you may not use this file except in compliance with the License. | ||
| 4 | +# You may obtain a copy of the License at | ||
| 5 | +# | ||
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| 7 | +# | ||
| 8 | +# Unless required by applicable law or agreed to in writing, software | ||
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 11 | +# See the License for the specific language governing permissions and | ||
| 12 | +# limitations under the License. | ||
| 13 | + | ||
| 14 | +#!/bin/bash | ||
| 15 | + | ||
| 16 | +# ---------------------------------------------------------------------------- | ||
| 17 | +# Hvigor startup script, version 1.0.0 | ||
| 18 | +# | ||
| 19 | +# Required ENV vars: | ||
| 20 | +# ------------------ | ||
| 21 | +# NODE_HOME - location of a Node home dir | ||
| 22 | +# or | ||
| 23 | +# Add /usr/local/nodejs/bin to the PATH environment variable | ||
| 24 | +# ---------------------------------------------------------------------------- | ||
| 25 | + | ||
| 26 | +HVIGOR_APP_HOME=$(dirname $(readlink -f $0)) | ||
| 27 | +HVIGOR_WRAPPER_SCRIPT=${HVIGOR_APP_HOME}/hvigor/hvigor-wrapper.js | ||
| 28 | +warn() { | ||
| 29 | + echo "" | ||
| 30 | + echo -e "\033[1;33m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m" | ||
| 31 | +} | ||
| 32 | + | ||
| 33 | +error() { | ||
| 34 | + echo "" | ||
| 35 | + echo -e "\033[1;31m`date '+[%Y-%m-%d %H:%M:%S]'`$@\033[0m" | ||
| 36 | +} | ||
| 37 | + | ||
| 38 | +fail() { | ||
| 39 | + error "$@" | ||
| 40 | + exit 1 | ||
| 41 | +} | ||
| 42 | + | ||
| 43 | +# Determine node to start hvigor wrapper script | ||
| 44 | +if [ -n "${NODE_HOME}" ];then | ||
| 45 | + EXECUTABLE_NODE="${NODE_HOME}/bin/node" | ||
| 46 | + if [ ! -x "$EXECUTABLE_NODE" ];then | ||
| 47 | + fail "ERROR: NODE_HOME is set to an invalid directory,check $NODE_HOME\n\nPlease set NODE_HOME in your environment to the location where your nodejs installed" | ||
| 48 | + fi | ||
| 49 | +else | ||
| 50 | + EXECUTABLE_NODE="node" | ||
| 51 | + which ${EXECUTABLE_NODE} > /dev/null 2>&1 || fail "ERROR: NODE_HOME is not set and not 'node' command found in your path" | ||
| 52 | +fi | ||
| 53 | + | ||
| 54 | +# Check hvigor wrapper script | ||
| 55 | +if [ ! -r "$HVIGOR_WRAPPER_SCRIPT" ];then | ||
| 56 | + fail "ERROR: Couldn't find hvigor/hvigor-wrapper.js in ${HVIGOR_APP_HOME}" | ||
| 57 | +fi | ||
| 58 | + | ||
| 59 | +# start hvigor-wrapper script | ||
| 60 | +exec "${EXECUTABLE_NODE}" \ | ||
| 61 | + "${HVIGOR_WRAPPER_SCRIPT}" "$@" | ||
| @@ -0,0 +1,70 @@ | |||
| 1 | +@rem Copyright (C) 2023 Huawei Device Co., Ltd. | ||
| 2 | +@rem Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 3 | +@rem you may not use this file except in compliance with the License. | ||
| 4 | +@rem You may obtain a copy of the License at | ||
| 5 | +@rem | ||
| 6 | +@rem http://www.apache.org/licenses/LICENSE-2.0 | ||
| 7 | +@rem | ||
| 8 | +@rem Unless required by applicable law or agreed to in writing, software | ||
| 9 | +@rem distributed under the License is distributed on an "AS IS" BASIS, | ||
| 10 | +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 11 | +@rem See the License for the specific language governing permissions and | ||
| 12 | +@rem limitations under the License. | ||
| 13 | + | ||
| 14 | +@if "%DEBUG%" == "" @echo off | ||
| 15 | +@rem ########################################################################## | ||
| 16 | +@rem | ||
| 17 | +@rem Hvigor startup script for Windows | ||
| 18 | +@rem | ||
| 19 | +@rem ########################################################################## | ||
| 20 | + | ||
| 21 | +@rem Set local scope for the variables with windows NT shell | ||
| 22 | +if "%OS%"=="Windows_NT" setlocal | ||
| 23 | + | ||
| 24 | +set DIRNAME=%~dp0 | ||
| 25 | +if "%DIRNAME%" == "" set DIRNAME=. | ||
| 26 | +set APP_BASE_NAME=%~n0 | ||
| 27 | +set APP_HOME=%DIRNAME% | ||
| 28 | + | ||
| 29 | +@rem Resolve any "." and ".." in APP_HOME to make it shorter. | ||
| 30 | +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | ||
| 31 | + | ||
| 32 | +set WRAPPER_MODULE_PATH=%APP_HOME%\hvigor\hvigor-wrapper.js | ||
| 33 | +set NODE_EXE=node.exe | ||
| 34 | + | ||
| 35 | +goto start | ||
| 36 | + | ||
| 37 | +:start | ||
| 38 | +@rem Find node.exe | ||
| 39 | +if defined NODE_HOME goto findNodeFromNodeHome | ||
| 40 | + | ||
| 41 | +%NODE_EXE% --version >NUL 2>&1 | ||
| 42 | +if "%ERRORLEVEL%" == "0" goto execute | ||
| 43 | + | ||
| 44 | +echo. | ||
| 45 | +echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. | ||
| 46 | +echo. | ||
| 47 | +echo Please set the NODE_HOME variable in your environment to match the | ||
| 48 | +echo location of your NodeJs installation. | ||
| 49 | + | ||
| 50 | +goto fail | ||
| 51 | + | ||
| 52 | +:findNodeFromNodeHome | ||
| 53 | +set NODE_HOME=%NODE_HOME:"=% | ||
| 54 | +set NODE_EXE_PATH=%NODE_HOME%/%NODE_EXE% | ||
| 55 | + | ||
| 56 | +if exist "%NODE_EXE_PATH%" goto execute | ||
| 57 | +echo. | ||
| 58 | +echo ERROR: NODE_HOME is not set and no 'node' command could be found in your PATH. | ||
| 59 | +echo. | ||
| 60 | +echo Please set the NODE_HOME variable in your environment to match the | ||
| 61 | +echo location of your NodeJs installation. | ||
| 62 | + | ||
| 63 | +goto fail | ||
| 64 | + | ||
| 65 | +:execute | ||
| 66 | +@rem Execute hvigor | ||
| 67 | +"%NODE_EXE%" %WRAPPER_MODULE_PATH% %* | ||
| 68 | + | ||
| 69 | +:fail | ||
| 70 | +exit /b 1 | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | +{ | ||
| 16 | + "name": "myapplication454434", | ||
| 17 | + "version": "1.0.0", | ||
| 18 | + "description": "Please describe the basic information.", | ||
| 19 | + "main": "", | ||
| 20 | + "author": "", | ||
| 21 | + "license": "", | ||
| 22 | + "dependencies": { | ||
| 23 | + }, | ||
| 24 | + "devDependencies": { | ||
| 25 | + "@ohos/hypium": "1.0.6" | ||
| 26 | + } | ||
| 27 | +} | ||
| @@ -1,109 +0,0 @@ | |||
| 1 | -{ | ||
| 2 | - "app": { | ||
| 3 | - "bundleName": "com.example.accessibleabilitylist", | ||
| 4 | - "vendor": "example", | ||
| 5 | - "version": { | ||
| 6 | - "code": 1, | ||
| 7 | - "name": "1.0" | ||
| 8 | - }, | ||
| 9 | - "apiVersion": { | ||
| 10 | - "compatible": 8, | ||
| 11 | - "target": 9, | ||
| 12 | - "releaseType": "Beta1" | ||
| 13 | - } | ||
| 14 | - }, | ||
| 15 | - "deviceConfig": {}, | ||
| 16 | - "module": { | ||
| 17 | - "package": "com.example.accessibleabilitylist", | ||
| 18 | - "name": ".entry", | ||
| 19 | - "mainAbility": ".MainAbility", | ||
| 20 | - "srcPath": "", | ||
| 21 | - "deviceType": [ | ||
| 22 | - "tablet", | ||
| 23 | - "default", | ||
| 24 | - "phone" | ||
| 25 | - ], | ||
| 26 | - "distro": { | ||
| 27 | - "deliveryWithInstall": true, | ||
| 28 | - "moduleName": "entry", | ||
| 29 | - "moduleType": "entry" | ||
| 30 | - }, | ||
| 31 | - "defPermissions": [ | ||
| 32 | - { | ||
| 33 | - "availableScope": [], | ||
| 34 | - "grantMode": "system_grant", | ||
| 35 | - "name": "ohos.permission.DISTRIBUTED_DATASYNC" | ||
| 36 | - } | ||
| 37 | - ], | ||
| 38 | - "reqPermissions": [ | ||
| 39 | - { | ||
| 40 | - "name": "ohos.permission.DISTRIBUTED_DATASYNC", | ||
| 41 | - "reason": "ceshi" | ||
| 42 | - } | ||
| 43 | - ], | ||
| 44 | - "abilities": [ | ||
| 45 | - { | ||
| 46 | - "skills": [ | ||
| 47 | - { | ||
| 48 | - "entities": [ | ||
| 49 | - "entity.system.home" | ||
| 50 | - ], | ||
| 51 | - "actions": [ | ||
| 52 | - "action.system.home" | ||
| 53 | - ] | ||
| 54 | - } | ||
| 55 | - ], | ||
| 56 | - "orientation": "unspecified", | ||
| 57 | - "formsEnabled": false, | ||
| 58 | - "name": ".MainAbility", | ||
| 59 | - "srcLanguage": "js", | ||
| 60 | - "srcPath": "MainAbility", | ||
| 61 | - "icon": "$media:icon", | ||
| 62 | - "description": "$string:MainAbility_desc", | ||
| 63 | - "label": "$string:MainAbility_label", | ||
| 64 | - "type": "page", | ||
| 65 | - "visible": true, | ||
| 66 | - "launchType": "standard" | ||
| 67 | - }, | ||
| 68 | - { | ||
| 69 | - "orientation": "unspecified", | ||
| 70 | - "formsEnabled": false, | ||
| 71 | - "name": ".TestAbility", | ||
| 72 | - "srcLanguage": "js", | ||
| 73 | - "srcPath": "TestAbility", | ||
| 74 | - "icon": "$media:icon", | ||
| 75 | - "description": "$string:TestAbility_desc", | ||
| 76 | - "label": "$string:TestAbility_label", | ||
| 77 | - "type": "page", | ||
| 78 | - "visible": true, | ||
| 79 | - "launchType": "standard" | ||
| 80 | - } | ||
| 81 | - ], | ||
| 82 | - "js": [ | ||
| 83 | - { | ||
| 84 | - "pages": [ | ||
| 85 | - "pages/index/index" | ||
| 86 | - ], | ||
| 87 | - "name": "default", | ||
| 88 | - "window": { | ||
| 89 | - "designWidth": 720, | ||
| 90 | - "autoDesignWidth": false | ||
| 91 | - } | ||
| 92 | - }, | ||
| 93 | - { | ||
| 94 | - "pages": [ | ||
| 95 | - "pages/index/index" | ||
| 96 | - ], | ||
| 97 | - "name": ".TestAbility", | ||
| 98 | - "window": { | ||
| 99 | - "designWidth": 720, | ||
| 100 | - "autoDesignWidth": false | ||
| 101 | - } | ||
| 102 | - } | ||
| 103 | - ], | ||
| 104 | - "testRunner": { | ||
| 105 | - "name": "OpenHarmonyTestRunner", | ||
| 106 | - "srcPath": "TestRunner" | ||
| 107 | - } | ||
| 108 | - } | ||
| 109 | -} | ||
| @@ -1,9 +0,0 @@ | |||
| 1 | -.container { | ||
| 2 | - flex-direction: column; | ||
| 3 | - justify-content: center; | ||
| 4 | - align-items: center; | ||
| 5 | -} | ||
| 6 | - | ||
| 7 | -.title { | ||
| 8 | - font-size: 100px; | ||
| 9 | -} | ||
| @@ -1,5 +0,0 @@ | |||
| 1 | -<div class="container"> | ||
| 2 | - <text class="title"> | ||
| 3 | - {{title}} | ||
| 4 | - </text> | ||
| 5 | -</div> | ||
| @@ -1,32 +0,0 @@ | |||
| 1 | -/* | ||
| 2 | - * Copyright (c) 2021 Huawei Device Co., Ltd. | ||
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | - * you may not use this file except in compliance with the License. | ||
| 5 | - * You may obtain a copy of the License at | ||
| 6 | - * | ||
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | - * | ||
| 9 | - * Unless required by applicable law or agreed to in writing, software | ||
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | - * See the License for the specific language governing permissions and | ||
| 13 | - * limitations under the License. | ||
| 14 | - */ | ||
| 15 | -import file from '@system.file' | ||
| 16 | - | ||
| 17 | -const injectRef = Object.getPrototypeOf(global) || global | ||
| 18 | -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') | ||
| 19 | - | ||
| 20 | -export default { | ||
| 21 | - data: { | ||
| 22 | - title: "Accessbility js test" | ||
| 23 | - }, | ||
| 24 | - onInit() { | ||
| 25 | - this.title = "Accessbility js test"; | ||
| 26 | - }, | ||
| 27 | - onShow() { | ||
| 28 | - console.info('onShow finish') | ||
| 29 | - }, | ||
| 30 | - onReady() { | ||
| 31 | - }, | ||
| 32 | -} | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | -# Copyright (c) 2021 Huawei Device Co., Ltd. | 1 | +# Copyright (c) 2023 Huawei Device Co., Ltd. |
| 2 | # Licensed under the Apache License, Version 2.0 (the "License"); | 2 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | # you may not use this file except in compliance with the License. | 3 | # you may not use this file except in compliance with the License. |
| 4 | # You may obtain a copy of the License at | 4 | # You may obtain a copy of the License at |
| @@ -10,26 +10,13 @@ | |||
| 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | # See the License for the specific language governing permissions and | 11 | # See the License for the specific language governing permissions and |
| 12 | # limitations under the License. | 12 | # limitations under the License. |
| 13 | - | ||
| 14 | import("//test/xts/tools/build/suite.gni") | 13 | import("//test/xts/tools/build/suite.gni") |
| 15 | 14 | ||
| 16 | -ohos_js_hap_suite("ActsAccessibleCheckAbilityTest") { | 15 | +ohos_js_app_suite("ActsAccessibleCheckAbilityTest") { |
| 17 | - hap_profile = "./src/main/config.json" | 16 | + test_hap = true |
| 18 | - deps = [ | 17 | + testonly = true |
| 19 | - ":hjs_demo_js_assets", | ||
| 20 | - ":hjs_demo_resources", | ||
| 21 | - ] | ||
| 22 | certificate_profile = "./signature/openharmony_sx.p7b" | 18 | certificate_profile = "./signature/openharmony_sx.p7b" |
| 23 | hap_name = "ActsAccessibleCheckAbilityTest" | 19 | hap_name = "ActsAccessibleCheckAbilityTest" |
| 24 | part_name = "accessibility" | 20 | part_name = "accessibility" |
| 25 | subsystem_name = "barrierfree" | 21 | subsystem_name = "barrierfree" |
| 26 | } | 22 | } |
| 27 | -ohos_js_assets("hjs_demo_js_assets") { | ||
| 28 | - js2abc = true | ||
| 29 | - hap_profile = "./src/main/config.json" | ||
| 30 | - source_dir = "./src/main/js" | ||
| 31 | -} | ||
| 32 | -ohos_resources("hjs_demo_resources") { | ||
| 33 | - sources = [ "./src/main/resources" ] | ||
| 34 | - hap_profile = "./src/main/config.json" | ||
| 35 | -} | ||
| @@ -5,7 +5,7 @@ | |||
| 5 | "test-timeout": "180000", | 5 | "test-timeout": "180000", |
| 6 | "shell-timeout": "180000", | 6 | "shell-timeout": "180000", |
| 7 | "bundle-name": "com.example.accessiblecheckability", | 7 | "bundle-name": "com.example.accessiblecheckability", |
| 8 | - "package-name": "com.example.accessiblecheckability" | 8 | + "package-name": "com.example.accessiblecheckability_test" |
| 9 | }, | 9 | }, |
| 10 | "kits": [ | 10 | "kits": [ |
| 11 | { | 11 | { |
| @@ -0,0 +1,43 @@ | |||
| 1 | +/** | ||
| 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | + | ||
| 16 | +{ | ||
| 17 | + "app": { | ||
| 18 | + "signingConfigs": [ | ||
| 19 | + ], | ||
| 20 | + "compileSdkVersion": 10, | ||
| 21 | + "compatibleSdkVersion": 10, | ||
| 22 | + "products": [ | ||
| 23 | + { | ||
| 24 | + "name": "default", | ||
| 25 | + "signingConfig": "default" | ||
| 26 | + } | ||
| 27 | + ] | ||
| 28 | + }, | ||
| 29 | + "modules": [ | ||
| 30 | + { | ||
| 31 | + "name": "entry", | ||
| 32 | + "srcPath": "./entry", | ||
| 33 | + "targets": [ | ||
| 34 | + { | ||
| 35 | + "name": "default", | ||
| 36 | + "applyToProducts": [ | ||
| 37 | + "default" | ||
| 38 | + ] | ||
| 39 | + } | ||
| 40 | + ] | ||
| 41 | + } | ||
| 42 | + ] | ||
| 43 | +} | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | +{ | ||
| 16 | + "apiType": 'faMode', | ||
| 17 | + "buildOption": { | ||
| 18 | + }, | ||
| 19 | + "targets": [ | ||
| 20 | + { | ||
| 21 | + "name": "default", | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "name": "ohosTest", | ||
| 25 | + } | ||
| 26 | + ] | ||
| 27 | +} | ||
| @@ -0,0 +1,17 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | + | ||
| 16 | +// Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. | ||
| 17 | +export { legacyHapTasks } from '@ohos/hvigor-ohos-plugin'; | ||
| @@ -0,0 +1,27 @@ | |||
| 1 | +/* | ||
| 2 | +* Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | +* Licensed under the Apache License, Version 2.0 (the "License") | ||
| 4 | +* you may not use this file except in compliance with the License. | ||
| 5 | +* You may obtain a copy of the License at | ||
| 6 | +* | ||
| 7 | +* http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | +* | ||
| 9 | +* Unless required by applicable law or agreed to in writing, software | ||
| 10 | +* distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | +* See the License for the specific language governing permissions and | ||
| 13 | +* limitations under the License. | ||
| 14 | +*/ | ||
| 15 | + | ||
| 16 | +{ | ||
| 17 | + "name": "entry", | ||
| 18 | + "version": "1.0.0", | ||
| 19 | + "devDependencies": { | ||
| 20 | + }, | ||
| 21 | + "description": "Please describe the basic information.", | ||
| 22 | + "main": "", | ||
| 23 | + "author": "", | ||
| 24 | + "license": "", | ||
| 25 | + "dependencies": {} | ||
| 26 | +} | ||
| 27 | + | ||
| @@ -0,0 +1,66 @@ | |||
| 1 | +{ | ||
| 2 | + "app":{ | ||
| 3 | + "bundleName":"com.example.accessiblecheckability", | ||
| 4 | + "vendor":"example", | ||
| 5 | + "version":{ | ||
| 6 | + "code":1, | ||
| 7 | + "name":"1.0" | ||
| 8 | + } | ||
| 9 | + }, | ||
| 10 | + "deviceConfig":{ | ||
| 11 | + | ||
| 12 | + }, | ||
| 13 | + "module":{ | ||
| 14 | + "package":"com.example.accessiblecheckability", | ||
| 15 | + "name":".entry", | ||
| 16 | + "mainAbility":".MainAbility", | ||
| 17 | + "deviceType":[ | ||
| 18 | + "tablet", | ||
| 19 | + "default", | ||
| 20 | + "phone" | ||
| 21 | + ], | ||
| 22 | + "distro":{ | ||
| 23 | + "deliveryWithInstall":true, | ||
| 24 | + "installationFree":false, | ||
| 25 | + "moduleName":"entry", | ||
| 26 | + "moduleType":"entry" | ||
| 27 | + }, | ||
| 28 | + "abilities":[ | ||
| 29 | + { | ||
| 30 | + "description":"$string:MainAbility_desc", | ||
| 31 | + "formsEnabled":false, | ||
| 32 | + "icon":"$media:icon", | ||
| 33 | + "label":"$string:MainAbility_label", | ||
| 34 | + "launchType":"standard", | ||
| 35 | + "name":".MainAbility", | ||
| 36 | + "orientation":"unspecified", | ||
| 37 | + "skills":[ | ||
| 38 | + { | ||
| 39 | + "actions":[ | ||
| 40 | + "action.system.home" | ||
| 41 | + ], | ||
| 42 | + "entities":[ | ||
| 43 | + "entity.system.home" | ||
| 44 | + ] | ||
| 45 | + } | ||
| 46 | + ], | ||
| 47 | + "srcLanguage":"js", | ||
| 48 | + "srcPath":"MainAbility", | ||
| 49 | + "type":"page", | ||
| 50 | + "visible":true | ||
| 51 | + } | ||
| 52 | + ], | ||
| 53 | + "js":[ | ||
| 54 | + { | ||
| 55 | + "name":".MainAbility", | ||
| 56 | + "pages":[ | ||
| 57 | + "pages/index/index" | ||
| 58 | + ], | ||
| 59 | + "window":{ | ||
| 60 | + "autoDesignWidth":false, | ||
| 61 | + "designWidth":720 | ||
| 62 | + } | ||
| 63 | + } | ||
| 64 | + ] | ||
| 65 | + } | ||
| 66 | +} | ||
Rbarrierfree/accessibleabilitylist/src/main/js/MainAbility/app.js→barrierfree/accessiblecheckability/entry/src/main/js/MainAbility/app.js+26-22
| @@ -1,22 +1,26 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2021 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | -export default { | 15 | +import hilog from '@ohos.hilog'; |
| 16 | - onCreate() { | 16 | +export default { |
| 17 | - console.info('AccessibilityApplication onCreate'); | 17 | + onCreate() { |
| 18 | - }, | 18 | + hilog.info(0x0000, 'testTag', '%{public}s', 'Application onCreate'); |
| 19 | - onDestroy() { | 19 | + }, |
| 20 | - console.info('AccessibilityApplication onDestroy'); | 20 | + onDestroy() { |
| 21 | - } | 21 | + hilog.info(0x0000, 'testTag', '%{public}s', 'Application onDestroy'); |
| 22 | -}; | 22 | + }, |
| 23 | +} | ||
| 24 | + | ||
| 25 | + | ||
| 26 | + | ||
Rbarrierfree/accessiblecheckability/src/main/js/MainAbility/i18n/en-US.json→barrierfree/accessiblecheckability/entry/src/main/js/MainAbility/i18n/en-US.json+0-0
文件重命名但无更改。
Rbarrierfree/accessiblecheckability/src/main/js/MainAbility/i18n/zh-CN.json→barrierfree/accessiblecheckability/entry/src/main/js/MainAbility/i18n/zh-CN.json+0-0
文件重命名但无更改。
| @@ -0,0 +1,60 @@ | |||
| 1 | +/* | ||
| 2 | + * Copyright (c) 2022 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +.container { | ||
| 16 | + flex-direction: column; | ||
| 17 | + justify-content: center; | ||
| 18 | + align-items: center; | ||
| 19 | + width: 100%; | ||
| 20 | + height: 100%; | ||
| 21 | +} | ||
| 22 | + | ||
| 23 | +.title { | ||
| 24 | + font-size: 40px; | ||
| 25 | + color: #000000; | ||
| 26 | + opacity: 0.9; | ||
| 27 | +} | ||
| 28 | + | ||
| 29 | +@media screen and (device-type: tablet) and (orientation: landscape) { | ||
| 30 | + .title { | ||
| 31 | + font-size: 100px; | ||
| 32 | + } | ||
| 33 | +} | ||
| 34 | + | ||
| 35 | +@media screen and (device-type: wearable) { | ||
| 36 | + .title { | ||
| 37 | + font-size: 28px; | ||
| 38 | + color: #FFFFFF; | ||
| 39 | + } | ||
| 40 | +} | ||
| 41 | + | ||
| 42 | +@media screen and (device-type: tv) { | ||
| 43 | + .container { | ||
| 44 | + background-image: url("/common/images/Wallpaper.png"); | ||
| 45 | + background-size: cover; | ||
| 46 | + background-repeat: no-repeat; | ||
| 47 | + background-position: center; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + .title { | ||
| 51 | + font-size: 100px; | ||
| 52 | + color: #FFFFFF; | ||
| 53 | + } | ||
| 54 | +} | ||
| 55 | + | ||
| 56 | +@media screen and (device-type: phone) and (orientation: landscape) { | ||
| 57 | + .title { | ||
| 58 | + font-size: 60px; | ||
| 59 | + } | ||
| 60 | +} | ||
| @@ -0,0 +1,19 @@ | |||
| 1 | +/* | ||
| 2 | + * Copyright (c) 2022 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +<div class="container"> | ||
| 16 | + <text class="title"> | ||
| 17 | + {{ $t('strings.hello') }} {{ title }} | ||
| 18 | + </text> | ||
| 19 | +</div> | ||
| @@ -0,0 +1,22 @@ | |||
| 1 | +/** | ||
| 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. | ||
| 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + * you may not use this file except in compliance with the License. | ||
| 5 | + * You may obtain a copy of the License at | ||
| 6 | + * | ||
| 7 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + * | ||
| 9 | + * Unless required by applicable law or agreed to in writing, software | ||
| 10 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + * See the License for the specific language governing permissions and | ||
| 13 | + * limitations under the License. | ||
| 14 | + */ | ||
| 15 | +export default { | ||
| 16 | + data: { | ||
| 17 | + title: "" | ||
| 18 | + }, | ||
| 19 | + onInit() { | ||
| 20 | + this.title = this.$t('strings.world'); | ||
| 21 | + } | ||
| 22 | +} | ||
Rbarrierfree/accessibleregisterstate/src/main/resources/base/element/string.json→barrierfree/accessiblecheckability/entry/src/main/resources/base/element/string.json+27-27
| @@ -1,28 +1,28 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "string": [ | 2 | + "string": [ |
| 3 | - { | 3 | + { |
| 4 | - "name": "app_name", | 4 | + "name": "app_name", |
| 5 | - "value": "ActsSetCheckSyncEnable" | 5 | + "value": "ActsSetCheckSyncEnable" |
| 6 | - }, | 6 | + }, |
| 7 | - { | 7 | + { |
| 8 | - "name": "mainability_description", | 8 | + "name": "mainability_description", |
| 9 | - "value": "JS_Phone_Empty Feature Ability" | 9 | + "value": "JS_Phone_Empty Feature Ability" |
| 10 | - }, | 10 | + }, |
| 11 | - { | 11 | + { |
| 12 | - "name": "MainAbility_desc", | 12 | + "name": "MainAbility_desc", |
| 13 | - "value": "description" | 13 | + "value": "description" |
| 14 | - }, | 14 | + }, |
| 15 | - { | 15 | + { |
| 16 | - "name": "MainAbility_label", | 16 | + "name": "MainAbility_label", |
| 17 | - "value": "label" | 17 | + "value": "label" |
| 18 | - }, | 18 | + }, |
| 19 | - { | 19 | + { |
| 20 | - "name": "TestAbility_desc", | 20 | + "name": "TestAbility_desc", |
| 21 | - "value": "description" | 21 | + "value": "description" |
| 22 | - }, | 22 | + }, |
| 23 | - { | 23 | + { |
| 24 | - "name": "TestAbility_label", | 24 | + "name": "TestAbility_label", |
| 25 | - "value": "label" | 25 | + "value": "label" |
| 26 | - } | 26 | + } |
| 27 | - ] | 27 | + ] |
| 28 | } | 28 | } |
Rbarrierfree/accessibleregisterstate/src/main/resources/base/media/icon.png→barrierfree/accessiblecheckability/entry/src/main/resources/base/media/icon.png+0-0
文件重命名但无更改。
| @@ -0,0 +1,82 @@ | |||
| 1 | +{ | ||
| 2 | + "app":{ | ||
| 3 | + "bundleName":"com.example.accessiblecheckability", | ||
| 4 | + "vendor":"example", | ||
| 5 | + "version":{ | ||
| 6 | + "code":1, | ||
| 7 | + "name":"1.0" | ||
| 8 | + } | ||
| 9 | + }, | ||
| 10 | + "deviceConfig":{ | ||
| 11 | + | ||
| 12 | + }, | ||
| 13 | + "module":{ | ||
| 14 | + "package":"com.example.accessiblecheckability_test", | ||
| 15 | + "name":".entry_test", | ||
| 16 | + "mainAbility":".TestAbility", | ||
| 17 | + "deviceType": [ | ||
| 18 | + "tablet", | ||
| 19 | + "default" | ||
| 20 | + ], | ||
| 21 | + "testRunner":{ | ||
| 22 | + "name":"OpenHarmonyTestRunner", | ||
| 23 | + "srcPath":"TestRunner" | ||
| 24 | + }, | ||
| 25 | + "distro":{ | ||
| 26 | + "deliveryWithInstall":true, | ||
| 27 | + "installationFree":false, | ||
| 28 | + "moduleName":"entry_test", | ||
| 29 | + "moduleType":"feature" | ||
| 30 | + }, | ||
| 31 | + "abilities":[ | ||
| 32 | + { | ||
| 33 | + "description":"$string:TestAbility_desc", | ||
| 34 | + "formsEnabled":false, | ||
| 35 | + "icon":"$media:icon", | ||
| 36 | + "label":"$string:TestAbility_label", | ||
| 37 | + "launchType":"standard", | ||
| 38 | + "name":".TestAbility", | ||
| 39 | + "orientation":"unspecified", | ||
| 40 | + "skills":[ | ||
| 41 | + { | ||
| 42 | + "actions":[ | ||
| 43 | + "action.system.home" | ||
| 44 | + ], | ||
| 45 | + "entities":[ | ||
| 46 | + "entity.system.home" | ||
| 47 | + ] | ||
| 48 | + } | ||
| 49 | + ], | ||
| 50 | + "srcLanguage":"js", | ||
| 51 | + "srcPath":"TestAbility", | ||
| 52 | + "type":"page", | ||
| 53 | + "visible":true | ||
| 54 | + } | ||
| 55 | + ], | ||
| 56 | + "defPermissions": [ | ||
| 57 | + { | ||
| 58 | + "availableScope": [], | ||
| 59 | + "grantMode": "system_grant", | ||
| 60 | + "name": "ohos.permission.DISTRIBUTED_DATASYNC" | ||
| 61 | + } | ||
| 62 | + ], | ||
| 63 | + "reqPermissions": [ | ||
| 64 | + { | ||
| 65 | + "name": "ohos.permission.DISTRIBUTED_DATASYNC", | ||
| 66 | + "reason": "ceshi" | ||
| 67 | + } | ||
| 68 | + ], | ||
| 69 | + "js":[ | ||
| 70 | + { | ||
| 71 | + "name":".TestAbility", | ||
| 72 | + "pages":[ | ||
| 73 | + "pages/index/index" | ||
| 74 | + ], | ||
| 75 | + "window":{ | ||
| 76 | + "autoDesignWidth":false, | ||
| 77 | + "designWidth":720 | ||
| 78 | + } | ||
| 79 | + } | ||
| 80 | + ] | ||
| 81 | + } | ||
| 82 | +} | ||
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/app.js→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/app.js+33-31
| @@ -1,31 +1,33 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2022 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | - | 15 | +import hilog from '@ohos.hilog'; |
| 16 | -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' | 16 | +import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; |
| 17 | -import { Hypium } from '@ohos/hypium' | 17 | +import { Hypium } from '@ohos/hypium'; |
| 18 | -import testsuite from '../test/List.test' | 18 | +import testsuite from '../test/List.test'; |
| 19 | - | 19 | + |
| 20 | -export default { | 20 | +export default { |
| 21 | - onCreate() { | 21 | + onCreate() { |
| 22 | - console.info('TestApplication onCreate') | 22 | + hilog.info(0x0000, 'testTag', '%{public}s', 'TestApplication onCreate'); |
| 23 | - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() | 23 | + var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() |
| 24 | - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() | 24 | + var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() |
| 25 | - console.info('start run testcase!!!') | 25 | + hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!'); |
| 26 | - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) | 26 | + Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) |
| 27 | - }, | 27 | + }, |
| 28 | - onDestroy() { | 28 | + onDestroy() { |
| 29 | - console.info("TestApplication onDestroy"); | 29 | + hilog.info(0x0000, 'testTag', '%{public}s', 'TestApplication onDestroy'); |
| 30 | - } | 30 | + } |
| 31 | -}; | 31 | +}; |
| 32 | + | ||
| 33 | + | ||
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/i18n/en-US.json→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/i18n/en-US.json+7-7
| @@ -1,8 +1,8 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "strings": { | 2 | + "strings": { |
| 3 | - "hello": "Hello", | 3 | + "hello": "Hello", |
| 4 | - "world": "World" | 4 | + "world": "World" |
| 5 | - }, | 5 | + }, |
| 6 | - "Files": { | 6 | + "Files": { |
| 7 | - } | 7 | + } |
| 8 | } | 8 | } |
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/i18n/zh-CN.json→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/i18n/zh-CN.json+7-7
| @@ -1,8 +1,8 @@ | |||
| 1 | -{ | 1 | +{ |
| 2 | - "strings": { | 2 | + "strings": { |
| 3 | - "hello": "您好", | 3 | + "hello": "您好", |
| 4 | - "world": "世界" | 4 | + "world": "世界" |
| 5 | - }, | 5 | + }, |
| 6 | - "Files": { | 6 | + "Files": { |
| 7 | - } | 7 | + } |
| 8 | } | 8 | } |
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/pages/index/index.css→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/pages/index/index.css+29-29
| @@ -1,30 +1,30 @@ | |||
| 1 | -.container { | 1 | +.container { |
| 2 | - display: flex; | 2 | + display: flex; |
| 3 | - flex-direction: column; | 3 | + flex-direction: column; |
| 4 | - justify-content: center; | 4 | + justify-content: center; |
| 5 | - align-items: center; | 5 | + align-items: center; |
| 6 | - left: 0px; | 6 | + left: 0px; |
| 7 | - top: 0px; | 7 | + top: 0px; |
| 8 | - width: 100%; | 8 | + width: 100%; |
| 9 | - height: 100%; | 9 | + height: 100%; |
| 10 | -} | 10 | +} |
| 11 | - | 11 | + |
| 12 | -.title { | 12 | +.title { |
| 13 | - font-size: 60px; | 13 | + font-size: 60px; |
| 14 | - text-align: center; | 14 | + text-align: center; |
| 15 | - width: 100%; | 15 | + width: 100%; |
| 16 | - height: 40%; | 16 | + height: 40%; |
| 17 | - margin: 10px; | 17 | + margin: 10px; |
| 18 | -} | 18 | +} |
| 19 | - | 19 | + |
| 20 | -@media screen and (device-type: phone) and (orientation: landscape) { | 20 | +@media screen and (device-type: phone) and (orientation: landscape) { |
| 21 | - .title { | 21 | + .title { |
| 22 | - font-size: 60px; | 22 | + font-size: 60px; |
| 23 | - } | 23 | + } |
| 24 | -} | 24 | +} |
| 25 | - | 25 | + |
| 26 | -@media screen and (device-type: tablet) and (orientation: landscape) { | 26 | +@media screen and (device-type: tablet) and (orientation: landscape) { |
| 27 | - .title { | 27 | + .title { |
| 28 | - font-size: 100px; | 28 | + font-size: 100px; |
| 29 | - } | 29 | + } |
| 30 | } | 30 | } |
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/pages/index/index.hml→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/pages/index/index.hml+5-5
| @@ -1,5 +1,5 @@ | |||
| 1 | -<div class="container"> | 1 | +<div class="container"> |
| 2 | - <text class="title"> | 2 | + <text class="title"> |
| 3 | - {{ $t('strings.hello') }} {{ title }} | 3 | + {{ $t('strings.hello') }} {{ title }} |
| 4 | - </text> | 4 | + </text> |
| 5 | -</div> | 5 | +</div> |
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/pages/index/index.js→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestAbility/pages/index/index.js+25-26
| @@ -1,26 +1,25 @@ | |||
| 1 | -/* | 1 | +/** |
| 2 | - * Copyright (c) 2022 Huawei Device Co., Ltd. | 2 | + * Copyright (c) 2023 Huawei Device Co., Ltd. |
| 3 | - * Licensed under the Apache License, Version 2.0 (the "License"); | 3 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | - * you may not use this file except in compliance with the License. | 4 | + * you may not use this file except in compliance with the License. |
| 5 | - * You may obtain a copy of the License at | 5 | + * You may obtain a copy of the License at |
| 6 | - * | 6 | + * |
| 7 | - * http://www.apache.org/licenses/LICENSE-2.0 | 7 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | - * | 8 | + * |
| 9 | - * Unless required by applicable law or agreed to in writing, software | 9 | + * Unless required by applicable law or agreed to in writing, software |
| 10 | - * distributed under the License is distributed on an "AS IS" BASIS, | 10 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 11 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | - * See the License for the specific language governing permissions and | 12 | + * See the License for the specific language governing permissions and |
| 13 | - * limitations under the License. | 13 | + * limitations under the License. |
| 14 | - */ | 14 | + */ |
| 15 | - | 15 | +export default { |
| 16 | -export default { | 16 | + data: { |
| 17 | - data: { | 17 | + title: "" |
| 18 | - title: "" | 18 | + }, |
| 19 | - }, | 19 | + onInit() { |
| 20 | - onInit() { | 20 | + this.title = this.$t('strings.world'); |
| 21 | - this.title = this.$t('strings.world'); | 21 | + } |
| 22 | - } | 22 | +} |
| 23 | -} | 23 | + |
| 24 | - | 24 | + |
| 25 | - | 25 | + |
| 26 | - | ||
Rbarrierfree/accessiblecheckability/src/main/js/TestRunner/OpenHarmonyTestRunner.js→barrierfree/accessiblecheckability/entry/src/ohosTest/js/TestRunner/OpenHarmonyTestRunner.js+41-59
Rbarrierfree/accessiblecheckability/src/main/js/test/AccessibleCheckAbility.test.js→barrierfree/accessiblecheckability/entry/src/ohosTest/js/test/AccessibleCheckAbility.test.js+129-129
Rbarrierfree/accessiblecheckability/src/main/js/test/List.test.js→barrierfree/accessiblecheckability/entry/src/ohosTest/js/test/List.test.js+18-18
Rbarrierfree/accessiblecheckability/src/main/resources/base/element/string.json→barrierfree/accessiblecheckability/entry/src/ohosTest/resources/base/element/string.json+27-27
Rbarrierfree/accessiblesendevent/src/main/resources/base/media/icon.png→barrierfree/accessiblecheckability/entry/src/ohosTest/resources/base/media/icon.png+0-0
Rbarrierfree/accessibleregisterstate/src/main/js/MainAbility/app.js→barrierfree/accessibleregisterstate/entry/src/main/js/MainAbility/app.js+26-22
Rbarrierfree/accessibleregisterstate/src/main/js/MainAbility/i18n/en-US.json→barrierfree/accessibleregisterstate/entry/src/main/js/MainAbility/i18n/en-US.json+0-0
Rbarrierfree/accessibleregisterstate/src/main/js/MainAbility/i18n/zh-CN.json→barrierfree/accessibleregisterstate/entry/src/main/js/MainAbility/i18n/zh-CN.json+0-0
Rbarrierfree/accessiblesendevent/src/main/resources/base/element/string.json→barrierfree/accessibleregisterstate/entry/src/main/resources/base/element/string.json+27-27
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/app.js→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/app.js+33-31
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/i18n/en-US.json→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/i18n/en-US.json+7-7
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/i18n/zh-CN.json→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/i18n/zh-CN.json+7-7
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/pages/index/index.css→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/pages/index/index.css+29-29
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/pages/index/index.hml→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/pages/index/index.hml+5-5
Rbarrierfree/accessibleregisterstate/src/main/js/TestAbility/pages/index/index.js→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestAbility/pages/index/index.js+25-26
Rbarrierfree/accessibleabilitylist/src/main/js/TestRunner/OpenHarmonyTestRunner.js→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/TestRunner/OpenHarmonyTestRunner.js+41-59
Rbarrierfree/accessibleregisterstate/src/main/js/test/AccessibleRegisterState.test.js→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/test/AccessibleRegisterState.test.js+108-108
Rbarrierfree/accessibleregisterstate/src/main/js/test/List.test.js→barrierfree/accessibleregisterstate/entry/src/ohosTest/js/test/List.test.js+18-18
Rbarrierfree/accessiblesendevent/src/main/js/MainAbility/app.js→barrierfree/accessiblesendevent/entry/src/main/js/MainAbility/app.js+26-22
Rbarrierfree/accessiblesendevent/src/main/js/MainAbility/i18n/en-US.json→barrierfree/accessiblesendevent/entry/src/main/js/MainAbility/i18n/en-US.json+0-0
Rbarrierfree/accessiblesendevent/src/main/js/MainAbility/i18n/zh-CN.json→barrierfree/accessiblesendevent/entry/src/main/js/MainAbility/i18n/zh-CN.json+0-0
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/app.js→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/app.js+33-31
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/i18n/en-US.json→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/i18n/en-US.json+7-7
Rbarrierfree/accessiblecheckability/src/main/js/TestAbility/i18n/zh-CN.json→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/i18n/zh-CN.json+7-7
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/pages/index/index.css→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/pages/index/index.css+29-29
Rbarrierfree/accessiblesendevent/src/main/js/TestAbility/pages/index/index.hml→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/pages/index/index.hml+5-5
Rbarrierfree/accessibleabilitylist/src/main/js/TestAbility/pages/index/index.js→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestAbility/pages/index/index.js+25-26
Rbarrierfree/accessiblesendevent/src/main/js/TestRunner/OpenHarmonyTestRunner.js→barrierfree/accessiblesendevent/entry/src/ohosTest/js/TestRunner/OpenHarmonyTestRunner.js+41-59
Rbarrierfree/accessiblesendevent/src/main/js/test/AccessibleSendEvent.test.js→barrierfree/accessiblesendevent/entry/src/ohosTest/js/test/AccessibleSendEvent.test.js+2326-2326
Rbarrierfree/accessiblesendevent/src/main/js/test/List.test.js→barrierfree/accessiblesendevent/entry/src/ohosTest/js/test/List.test.js+18-18