From a2b833baca66c0e347ccb570b95f2f4ac1f5019f Mon Sep 17 00:00:00 2001 From: 15829070344 Date: Tue, 17 Jan 2023 10:14:19 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90monthly=5F20221018=E3=80=91=E3=80=90?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E3=80=91bundlename=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=92=8Cnormal=E6=9D=83=E9=99=90=E4=BF=AE=E6=94=B9,=E9=80=82?= =?UTF-8?q?=E9=85=8Dget=5Fall=5Fapp=5Faccounts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 15829070344 --- account/appaccount/BUILD.gn | 1 - .../src/main/js/test/ErrPermission.test.js | 19 +- .../signature/openharmony_sx.p7b | Bin 3749 -> 3704 bytes .../src/main/config.json | 9 - .../signature/openharmony_sx.p7b | Bin 3748 -> 3705 bytes .../actsgetallaccounts/src/main/config.json | 9 - .../src/main/js/test/Getallaccounts.test.js | 83 --- .../getallaccessibleaccounts/BUILD.gn | 24 - .../actsgetallaccessibleaccounts/BUILD.gn | 36 -- .../actsgetallaccessibleaccounts/Test.json | 20 - .../signature/openharmony_sx.p7b | Bin 3756 -> 0 bytes .../src/main/config.json | 129 ---- .../src/main/js/MainAbility/app.js | 22 - .../src/main/js/MainAbility/i18n/en-US.json | 6 - .../src/main/js/MainAbility/i18n/zh-CN.json | 6 - .../main/js/MainAbility/pages/index/index.css | 24 - .../main/js/MainAbility/pages/index/index.hml | 19 - .../main/js/MainAbility/pages/index/index.js | 31 - .../src/main/js/TestAbility/app.js | 31 - .../src/main/js/TestAbility/i18n/en-US.json | 8 - .../src/main/js/TestAbility/i18n/zh-CN.json | 8 - .../main/js/TestAbility/pages/index/index.css | 37 -- .../main/js/TestAbility/pages/index/index.hml | 21 - .../main/js/TestAbility/pages/index/index.js | 26 - .../js/TestRunner/OpenHarmonyTestRunner.js | 59 -- .../src/main/js/test/Getallaccessible.test.js | 603 ------------------ .../src/main/js/test/List.test.js | 19 - .../main/resources/base/element/string.json | 28 - .../src/main/resources/base/media/icon.png | Bin 6790 -> 0 bytes .../actsgetallaccessiblemultiple/BUILD.gn | 36 -- .../actsgetallaccessiblemultiple/Test.json | 21 - .../signature/openharmony_sx.p7b | Bin 3759 -> 0 bytes .../src/main/config.json | 129 ---- .../src/main/js/MainAbility/app.js | 22 - .../src/main/js/MainAbility/i18n/en-US.json | 6 - .../src/main/js/MainAbility/i18n/zh-CN.json | 6 - .../main/js/MainAbility/pages/index/index.css | 24 - .../main/js/MainAbility/pages/index/index.hml | 19 - .../main/js/MainAbility/pages/index/index.js | 30 - .../src/main/js/TestAbility/app.js | 31 - .../src/main/js/TestAbility/i18n/en-US.json | 8 - .../src/main/js/TestAbility/i18n/zh-CN.json | 8 - .../main/js/TestAbility/pages/index/index.css | 37 -- .../main/js/TestAbility/pages/index/index.hml | 21 - .../main/js/TestAbility/pages/index/index.js | 26 - .../js/TestRunner/OpenHarmonyTestRunner.js | 59 -- .../src/main/js/test/Getmultiple.test.js | 130 ---- .../src/main/js/test/List.test.js | 19 - .../main/resources/base/element/string.json | 28 - .../src/main/resources/base/media/icon.png | Bin 6790 -> 0 bytes .../signature/openharmony_sx.p7b | Bin 3752 -> 3708 bytes .../src/main/config.json | 9 - .../signature/openharmony_sx.p7b | Bin 3755 -> 3709 bytes .../src/main/config.json | 9 - 54 files changed, 13 insertions(+), 1943 deletions(-) delete mode 100644 account/appaccount/getallaccessibleaccounts/BUILD.gn delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/BUILD.gn delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/Test.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/signature/openharmony_sx.p7b delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/config.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/app.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/en-US.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/zh-CN.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.css delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.hml delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/app.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/en-US.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/zh-CN.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.css delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.hml delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestRunner/OpenHarmonyTestRunner.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/Getallaccessible.test.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/List.test.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/element/string.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/media/icon.png delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/BUILD.gn delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/Test.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/signature/openharmony_sx.p7b delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/config.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/app.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/en-US.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/zh-CN.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.css delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.hml delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/app.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/en-US.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/zh-CN.json delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.css delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.hml delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.js delete mode 100644 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestRunner/OpenHarmonyTestRunner.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/Getmultiple.test.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/List.test.js delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/element/string.json delete mode 100755 account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/media/icon.png diff --git a/account/appaccount/BUILD.gn b/account/appaccount/BUILD.gn index da882415b..e7a6ccf9e 100644 --- a/account/appaccount/BUILD.gn +++ b/account/appaccount/BUILD.gn @@ -24,7 +24,6 @@ group("appaccount_hap") { "actsgetallaccounts:ActsGetAllAccountsTest", "actssetcheckdatasyncenable:ActsSetCheckDataSyncEnableTest", "actssetchecksyncenable:ActsSetCheckSyncEnableTest", - "getallaccessibleaccounts:accessibleaccounts", "getallaccounts:getallaccounts", "sceneProject:appaccount_scene", ] diff --git a/account/appaccount/actsaccountoperatetest/src/main/js/test/ErrPermission.test.js b/account/appaccount/actsaccountoperatetest/src/main/js/test/ErrPermission.test.js index a6f106173..657a930cd 100644 --- a/account/appaccount/actsaccountoperatetest/src/main/js/test/ErrPermission.test.js +++ b/account/appaccount/actsaccountoperatetest/src/main/js/test/ErrPermission.test.js @@ -144,11 +144,13 @@ export default function ActsAccountErrPermission() { var appAccountManager = account.createAppAccountManager(); console.debug("====>creat finish===="); appAccountManager.createAccount("accessibleAccount_callback_nopermission", (err)=>{ - console.debug("====> add account ActsAccountErrPermission_0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); + console.debug("====>add account ActsAccountErrPermission_0500 err:" + JSON.stringify(err)); + expect(err).assertEqual(null); appAccountManager.getAllAccounts((err, data)=>{ console.debug("====>getAllAccounts 0500 err:" + JSON.stringify(err)); - expect(err.code).assertEqual(ERR_PERMISSION_DENIED); + expect(data.length).assertEqual(1); + expect(data[0].name).assertEqual("accessibleAccount_callback_nopermission"); + expect(data[0].owner).assertEqual("com.example.actsaccountoperatetest"); appAccountManager.removeAccount("accessibleAccount_callback_nopermission", (err)=>{ console.debug("====>delete Account ActsAccountErrPermission_0500 err:" + JSON.stringify(err)); expect(err).assertEqual(null); @@ -173,12 +175,17 @@ export default function ActsAccountErrPermission() { console.debug("====>getAllAccounts 0600 start===="); try{ var data = await appAccountManager.getAllAccounts(); + expect(data.length).assertEqual(1); + expect(data[0].name).assertEqual("accessibleAccount_promise_nopermission"); + expect(data[0].owner).assertEqual("com.example.actsaccountoperatetest"); + console.debug("====>getAllAccounts 0600 err:" + JSON.stringify(data)); + await appAccountManager.removeAccount("accessibleAccount_promise_nopermission"); + console.debug("====>ActsAccountErrPermission_0600 end===="); + done(); } catch(err){ console.debug("====>getAllAccounts 0600 err:" + JSON.stringify(err)); - expect(err.code).assertEqual(ERR_PERMISSION_DENIED); - await appAccountManager.removeAccount("accessibleAccount_promise_nopermission"); - console.debug("====>ActsAccountErrPermission_0600 end===="); + expect().assertFail(); done(); } }); diff --git a/account/appaccount/actsgetaccountsbyowner/signature/openharmony_sx.p7b b/account/appaccount/actsgetaccountsbyowner/signature/openharmony_sx.p7b index 553007892ad39b5d49ea181aa00b85aab944c09d..d1437ed06379a13d408074b041ec6a1f3f52563c 100644 GIT binary patch delta 995 zcmZ8gL5L$o6g8QcG49R?!{T9C*};pl9;P~z#Az6DtGcQ?-AN^>bTXNaIc$>7bnH&L zXVS@3r#%FM%t1W}0S}6@7x$zqA`2_Ro(A-^;zjV_NpaPSCvi~`JF}~Tx2ngZ>b>{> zd;h8Xm#%{O`Z$@oa*{v!Z7sGMzdm2@MNm5)iwSGsTrzd-Bp>UoB;qkJPd@n{F?M~P zTuscAD<5Cojm>fvOp^a?Hd@eBq?=hwjuHl+Z>MfTd zRe?gCNER>Fw$Y&D^!weRaNKd7K&iofWR><1^eG`CZ#J^3v9FCg>1 zu#aYEG)fice>5WVt`Zy?X&JN|;zT7SL{VlR*VK?=5|nH>jYQO(ptR>LQScA?5aVr3 ziWE9$B2k}83}gZsL;Zm;k4iw~Eq8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q<+x4J7$uiu*d5y?LZ+3X4w3M(K<`BKg_CU4GN z{LGkpaC#2VICO1tb>Y)dT!;&zfZ`}2)=})=4VsS#7b6$`%su?+mm_ce(fWg1U$2IK zy!X}qjU%U@dnNwfjgOwn+(%DDAD`~#;kC%Aa6~~Q{L*7@zw_w(Z{K+L?w3DTZ=%)0 z+?5Z{eSGQV`4?WhJ=j0ozw%c2Lg#Q8z5m@e;q!h^zVr0$%=^!tfBl(z{OGsOz3#*P IA8!8o7Z6HS;s5{u diff --git a/account/appaccount/actsgetaccountsbyowner/src/main/config.json b/account/appaccount/actsgetaccountsbyowner/src/main/config.json index 5901a7d3c..db08a4e44 100644 --- a/account/appaccount/actsgetaccountsbyowner/src/main/config.json +++ b/account/appaccount/actsgetaccountsbyowner/src/main/config.json @@ -28,17 +28,8 @@ "moduleType": "entry" }, "defPermissions": [ - { - "availableScope": [], - "grantMode": "system_grant", - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS" - } ], "reqPermissions": [ - { - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", - "reason": "ceshi" - }, { "name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", "reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" diff --git a/account/appaccount/actsgetallaccounts/signature/openharmony_sx.p7b b/account/appaccount/actsgetallaccounts/signature/openharmony_sx.p7b index 3adbe74ee3fd1bc4a2d6636706c19e588ca1a56a..f145018483e3e0ce03a42476ec30753efa392b5b 100644 GIT binary patch delta 596 zcmZ1?`%}ijpoy=PjZ>@5qwPB{BRkWACcZSFP!ba(qam*WHydX{n+IbmGYb==K@*!8 zLLuXVCN_4KCN}1c4(^O>{=u0=mVuLd85gNkIac_FL{`M)`DVEq`GrI!x|JJL`nfAmfWmy*aI+b|_85S1?yW|DuW|UO9rKW2eBpOv_C002V_&OQ5 zI~s*N=bTU6}rlww+Yr-vXknzCo?9B~nNi_U zS>*2$o}HHzlV|E274G7mp2B637OHQQWa{adK6wsHI9pzRQEp<+Vv-3C_ zG%?x&BgG)wAbD~Er~Tx0ys7oZ28M=ahDL^Frsh!w`tZo%WHD4?QLtt{Ib+Z3(u&{L z%sVYkt$wgLg_+;?-_5#q*REOTweMvcaItX!qy3yM3o{doyMZf{LbbvVWt(5Cmqx5+ zKIrmmmUenj!YdP>L-~2_#+ssB*BO`;8Ls9YuBg5DXwrqKy8U;BJ#OV!AFK0zn>knH Nm-E|MyYx>l2LLD{$@TyM delta 610 zcmYL{O=#0#0ES7HW$VVK4&B8GV+=tD>z8azr!c3~(2S~&AxM0Q*F6xPE1&*w!1mq{{OF}-bM zZ#>60V9az<1<3J~9Fx;R9WkfJ81ZD@R$Yb7ENOlUI2kDMTEIx>(k@ei z3=nBT)j4B1!7#BbbOEVWpq(o4z^!pL4)iT4GMg+j8N>BO3KA=u@`rM%esTXO0vKIKioMuu_r&&{%M2iHlRUYtx`q zFROMUV6k+@EKZnFSE(6fZ6ir9hBa+dl#_}sz{F;%Q0HQ#A?TsLG+?Z1Hdw6C-UBSr zZ#V2pHovxBEN8t_EPR%hq%}GcS)*AttjaOPTkRfup>!Yhbax6Ov)=5$(ActsGetAllAccounts_0900 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - var specifiedBundle = "com.example.actsscenegetallaccounts"; - console.debug("====>startAbility 1100 start===="); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.example.actsscenegetallaccounts", - abilityName: "com.example.actsscenegetallaccounts.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); - function getAllCallback(err, data){ - console.debug("====>getAllAccounts 1100 err:" + JSON.stringify(err)); - console.debug("====>getAllAccounts 1100 data:" + JSON.stringify(data)); - expect(err).assertEqual(null); - expect(data[0].name).assertEqual("account_name_scene_single"); - expect(data[0].owner).assertEqual("com.example.actsscenegetallaccounts"); - console.debug("====>ActsGetAllAccounts_1100 end===="); - done(); - } - setTimeout(async function(){ - console.debug("====>getAllAccounts 1100 start===="); - appAccountManager.getAllAccounts(specifiedBundle, getAllCallback); - }, TIMEOUT); - }); - - /* - * @tc.number : ActsGetAllAccounts_1200 - * @tc.name : getAllAccounts promise - * @tc.desc : This application adds an account, and after other applications authorize an account to this - * application, this application obtains the information of its own application - */ - it('ActsGetAllAccounts_1200', 0, async function (done) { - console.debug("====>ActsGetAllAccounts_1200 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - var specifiedBundle = "com.example.actsscenegetallaccounts"; - console.debug("====>startAbility 1200 start===="); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.example.actsscenegetallaccounts", - abilityName: "com.example.actsscenegetallaccounts.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); - setTimeout(async function(){ - console.debug("====>getAllAccounts 1200 start===="); - try{ - var data = await appAccountManager.getAllAccounts(specifiedBundle); - } - catch(err){ - console.error("====>getAllAccounts 1200 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccounts 1200 data:" + JSON.stringify(data)); - expect(data[0].name).assertEqual("account_name_scene_single"); - expect(data[0].owner).assertEqual("com.example.actsscenegetallaccounts"); - console.debug("====>ActsGetAllAccounts_1200 end===="); - done(); - }, TIMEOUT); - }); - /* * @tc.number : ActsGetAllAccounts_1300 * @tc.name : getAllAccounts callback diff --git a/account/appaccount/getallaccessibleaccounts/BUILD.gn b/account/appaccount/getallaccessibleaccounts/BUILD.gn deleted file mode 100644 index c01b1aade..000000000 --- a/account/appaccount/getallaccessibleaccounts/BUILD.gn +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//test/xts/tools/build/suite.gni") - -group("accessibleaccounts") { - testonly = true - if (is_standard_system) { - deps = [ - "actsgetallaccessibleaccounts:ActsGetAllAccessibleAccountsTest", - "actsgetallaccessiblemultiple:ActsGetAllAccessibleMultipleTest", - ] - } -} diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/BUILD.gn b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/BUILD.gn deleted file mode 100644 index 0e675e89e..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/BUILD.gn +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import("//test/xts/tools/build/suite.gni") - -ohos_js_hap_suite("ActsGetAllAccessibleAccountsTest") { - hap_profile = "./src/main/config.json" - deps = [ - ":hjs_demo_js_assets", - ":hjs_demo_resources", - ] - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsGetAllAccessibleAccountsTest" - subsystem_name = "account" - part_name = "os_account" -} -ohos_js_assets("hjs_demo_js_assets") { - js2abc = true - hap_profile = "./src/main/config.json" - source_dir = "./src/main/js" -} - -ohos_resources("hjs_demo_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" -} diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/Test.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/Test.json deleted file mode 100644 index 6fb55ad4a..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/Test.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "description": "Configuration for hjunit demo Tests", - "driver": { - "type": "OHJSUnitTest", - "test-timeout": "60000", - "bundle-name": "com.example.actsgetallaccessibleaccounts", - "package-name": "com.example.actsgetallaccessibleaccounts", - "shell-timeout": "60000" - }, - "kits": [ - { - "test-file-name": [ - "ActsGetAllAccessibleAccountsTest.hap", - "ActsAccountSceneAccessible.hap" - ], - "type": "AppInstallKit", - "cleanup-apps": true - } - ] -} diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/signature/openharmony_sx.p7b b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/signature/openharmony_sx.p7b deleted file mode 100644 index 4335d797121fce11289bd14d5b12ef96b28e6f98..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3756 zcmcgvdvH@#8gCv=EznXeP-KCYfRweQoSPscjN%Lx(P&ejr^JpG7BsaN9 z5X7=}MFdt|6$P}saRqchtvHIVyMm8ZS7n(U7gS`KU0Bq0!6yUmxoL&gsk5`=4EZDX ze&6}sbH4L^zw`U%fWFEdit=mw4gFtLNXn!GeU%S^zRLTh5(!cP#w*Hi={HDNnOrIX zeG0=Rpk$y=p_BJ1w2PHlHkFQW36-A|{ELo+Hx3<2bt7m5%K6GnCK7f~%|eGanN$TLX+9P4Wq5JD zVFZ`1l>#KD}9+nAjYa9i6AF_9$>RhFL(>dN>I8R}mUeX;d7oOVrS-O$s|)0M5_AC#51|-_iv9pa>IFZQOS;s0;O)|7 zXwr-^n5LU>(0Rr|=PV9VfH62ih#BETZ{d6Iuut$3q=`YJ#TcMtj@MDVSoxAXd=^EEwh@^(co%i0*(70m+_3NYlWA&SrmB zPo;8bFFu^P04Z4EJ1P+3o^7B5wHg*+DC9+mMH!3{vl}p4tqiOM%27C;rckR>j|mLH zU?GYq+E%O=N#mhJ2tx%c&7dy0cd{L|q5>Wo$^py(*^_`gB-{cjxKUbQ?3R3kk;*0u zxp;T9-RDA$c#w8ds55KK+g4%5F=t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account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/config.json deleted file mode 100644 index 6225796cb..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "app": { - "bundleName": "com.example.actsgetallaccessibleaccounts", - "vendor": "example", - "version": { - "code": 1, - "name": "1.0" - }, - "apiVersion": { - "compatible": 4, - "target": 5, - "releaseType": "Beta1" - } - }, - "deviceConfig": {}, - "module": { - "package": "com.example.actsgetallaccessibleaccounts", - "name": ".entry", - "mainAbility": ".MainAbility", - "srcPath":"", - "deviceType": [ - "tablet", - "default", - "phone" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry" - }, - "defPermissions": [ - { - "availableScope": [], - "grantMode": "system_grant", - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS" - } - ], - "reqPermissions": [ - { - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", - "reason": "ceshi" - }, - { - "name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", - "reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" - }, - { - "name":"ohos.permission.GET_BUNDLE_INFO", - "reason":"need use ohos.permission.GET_BUNDLE_INFO" - }, - { - "name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE", - "reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE" - }, - { - "name":"ohos.permission.REMOVE_CACHE_FILES", - "reason":"need use ohos.permission.REMOVE_CACHE_FILES" - }, - { - "name":"ohos.permission.LISTEN_BUNDLE_CHANGE", - "reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE" - } - ], - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "orientation": "unspecified", - "formsEnabled": false, - "name": ".MainAbility", - "srcLanguage": "js", - "srcPath": "MainAbility", - "icon": "$media:icon", - "description": "$string:MainAbility_desc", - "label": "$string:MainAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - }, - { - "orientation": "unspecified", - "formsEnabled": false, - "name": ".TestAbility", - "srcLanguage": "js", - "srcPath": "TestAbility", - "icon": "$media:icon", - "description": "$string:TestAbility_desc", - "label": "$string:TestAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - } - ], - "js": [ - { - "pages": [ - "pages/index/index" - ], - "name": "default", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index" - ], - "name": ".TestAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - } - ], - "testRunner": { - "name": "OpenHarmonyTestRunner", - "srcPath": "TestRunner" - } - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/app.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/app.js deleted file mode 100755 index 2a68c1992..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/app.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export default { - onCreate() { - console.info('AceApplication onCreate'); - }, - onDestroy() { - console.info('AceApplication onDestroy'); - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/en-US.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/en-US.json deleted file mode 100755 index e63c70d97..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/zh-CN.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/zh-CN.json deleted file mode 100755 index de6ee5748..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/i18n/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.css b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.css deleted file mode 100644 index 2334ecfa2..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.hml b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.hml deleted file mode 100644 index 58fdc1444..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.hml +++ /dev/null @@ -1,19 +0,0 @@ - -
- - {{title}} - -
diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.js deleted file mode 100755 index 7ffbf87ea..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/MainAbility/pages/index/index.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const injectRef = Object.getPrototypeOf(global) || global -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') - -export default { - data: { - title: "getAllAccessibleAccounts" - }, - onInit() { - this.title = "getAllAccessibleAccounts"; - }, - onShow() { - console.info('onShow finish') - }, - onReady() { - }, -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/app.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/app.js deleted file mode 100644 index cdc31f3dc..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/app.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../test/List.test' - -export default { - onCreate() { - console.info('TestApplication onCreate') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - }, - onDestroy() { - console.info("TestApplication onDestroy"); - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/en-US.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/en-US.json deleted file mode 100644 index 3cb24b374..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/en-US.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - }, - "Files": { - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/zh-CN.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/zh-CN.json deleted file mode 100644 index c804e32c0..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/i18n/zh-CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - }, - "Files": { - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.css b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.css deleted file mode 100644 index 1ba8e4e82..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.css +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} - - -@media screen and (device-type: phone) and (orientation: landscape) { - .title { - font-size: 60px; - } -} - -@media screen and (device-type: tablet) and (orientation: landscape) { - .title { - font-size: 100px; - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.hml b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.hml deleted file mode 100644 index 61ea59d93..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.hml +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - {{ $t('strings.hello') }} {{title}} - - -
diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.js deleted file mode 100644 index 88b083a7f..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestAbility/pages/index/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - } -} - - - diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestRunner/OpenHarmonyTestRunner.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestRunner/OpenHarmonyTestRunner.js deleted file mode 100644 index c5fa8620c..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/TestRunner/OpenHarmonyTestRunner.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' - -function translateParamsToString(parameters) { - const keySet = new Set([ - '-s class', '-s notClass', '-s suite', '-s itName', - '-s level', '-s testType', '-s size', '-s timeout', - '-s package', '-s dryRun' - ]) - let targetParams = ''; - for (const key in parameters) { - if (keySet.has(key)) { - targetParams += ' ' + key + ' ' + parameters[key] - } - } - return targetParams.trim() -} - - export default { - onPrepare() { - console.info('OpenHarmonyTestRunner OnPrepare') - }, - onRun() { - console.log('OpenHarmonyTestRunner onRun run') - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - - var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility' - - var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName - cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) - var debug = abilityDelegatorArguments.parameters["-D"] - console.info('debug value : '+debug) - if (debug == 'true') - { - cmd += ' -D' - } - console.info('cmd : '+cmd) - abilityDelegator.executeShellCommand(cmd, (err, data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); - console.info('executeShellCommand : data : ' + data.stdResult); - console.info('executeShellCommand : data : ' + data.exitCode); - }) - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/Getallaccessible.test.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/Getallaccessible.test.js deleted file mode 100755 index ec513b765..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/Getallaccessible.test.js +++ /dev/null @@ -1,603 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import account from '@ohos.account.appAccount' -import featureAbility from '@ohos.ability.featureAbility' -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' - -const TIMEOUT = 2000; -export default function ActsGetAllAccessibleAccounts() { - describe('ActsGetAllAccessibleAccounts', function () { - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0100 - * @tc.name : getAllAccessibleAccounts callback - * @tc.desc : This application has not added an account and has not been authorized by other applications to - * obtain authorization - */ - it('ActsGetAllAccessibleAccounts_0100', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0100 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts 0100 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts 0100 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0100 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(0); - console.debug("====>ActsGetAllAccessibleAccounts_0100 end===="); - done(); - }); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0200 - * @tc.name : getAllAccessibleAccounts promise - * @tc.desc : This application has not added an account and has not been authorized by other applications to - * obtain authorization - */ - it('ActsGetAllAccessibleAccounts_0200', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0200 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>getAllAccessibleAccounts 0300 start===="); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 0200 err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 0200 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0200 data.length:" + data.length); - expect(data.length).assertEqual(0); - console.debug("====>ActsGetAllAccessibleAccounts_0200 end===="); - done(); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0300 - * @tc.name : getAllAccessibleAccounts callback - * @tc.desc : This application gets authorization after adding a single account - */ - it('ActsGetAllAccessibleAccounts_0300', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0300 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - appAccountManager.addAccount("accessibleAccount_callback_single", (err)=>{ - console.debug("====> add account ActsGetAllAccessibleAccounts_0300 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts 0300 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts 0300 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0300 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(1); - try{ - expect(data[0].name).assertEqual("accessibleAccount_callback_single"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>getAllAccessibleAccounts check data 0300 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - appAccountManager.deleteAccount("accessibleAccount_callback_single", (err)=>{ - console.debug("====>delete Account ActsGetAllAccessibleAccounts_0300 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - console.debug("====>ActsGetAllAccessibleAccounts_0300 end===="); - done(); - }) - }); - }); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0400 - * @tc.name : getAllAccessibleAccounts promise - * @tc.desc : This application gets authorization after adding a single account - */ - it('ActsGetAllAccessibleAccounts_0400', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0400 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - var selfBundle = "com.example.actsgetallaccessibleaccounts"; - console.debug("====>getAllAccounts for clean===="); - try{ - var acclist = await appAccountManager.getAllAccounts(selfBundle); - } - catch(err){ - console.error("====>getAllAccounts err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>account list length: " + acclist.length); - if(acclist.length > 0){ - for(var i = 0;i < acclist.length; i++){ - await appAccountManager.deleteAccount(acclist[i].name); - } - } - console.debug("====>add account ActsGetAllAccessibleAccounts_0400 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_single"); - console.debug("====>getAllAccessibleAccounts 0400 start===="); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 0400 err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 0400 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0400 data.length:" + data.length); - try{ - expect(data[0].name).assertEqual("accessibleAccount_promise_single"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>getAllAccessibleAccounts check data 0400 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - await appAccountManager.deleteAccount("accessibleAccount_promise_single"); - console.debug("====>ActsGetAllAccessibleAccounts_0400 end===="); - done(); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0500 - * @tc.name : getAllAccessibleAccounts callback - * @tc.desc : This application is added to obtain authorization after adding multiple application accounts - */ - it('ActsGetAllAccessibleAccounts_0500', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0500 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - appAccountManager.addAccount("accessibleAccount_callback_first", (err)=>{ - console.debug("====>add account first time 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.addAccount("accessibleAccount_callback_second", (err)=>{ - console.debug("====>add account second time 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.addAccount("accessibleAccount_callback_third", (err)=>{ - console.debug("====>add account third time 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts 0500 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts 0500 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0500 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(3); - try{ - expect(data[0].name).assertEqual("accessibleAccount_callback_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_callback_second"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[2].name).assertEqual("accessibleAccount_callback_third"); - expect(data[2].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 0500 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - appAccountManager.deleteAccount("accessibleAccount_callback_first", (err)=>{ - console.debug("====>delete Account first 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.deleteAccount("accessibleAccount_callback_second", (err)=>{ - console.debug("====>delete Account second 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.deleteAccount("accessibleAccount_callback_third", (err)=>{ - console.debug("====>delete Account third 0500 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - console.debug("====>ActsGetAllAccessibleAccounts_0500 end===="); - done(); - }) - }) - }) - }); - }) - }) - }); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0600 - * @tc.name : getAllAccessibleAccounts promise - * @tc.desc : This application is added to obtain authorization after adding multiple application accounts - */ - it('ActsGetAllAccessibleAccounts_0600', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0600 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>getAllAccounts for clean===="); - var selfBundle = "com.example.actsgetallaccessibleaccounts"; - try{ - var acclist = await appAccountManager.getAllAccounts(selfBundle); - } - catch(err){ - console.error("====>getAllAccounts err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>account list length: " + acclist.length); - if(acclist.length > 0){ - for(var i = 0;i < acclist.length; i++){ - await appAccountManager.deleteAccount(acclist[i].name); - } - } - console.debug("====>add first account 0600 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_first"); - console.debug("====>add second account 0600 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_second"); - console.debug("====>add third account 0600 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_third"); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 0600 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 0600 data:" + JSON.stringify(data)); - expect(data.length).assertEqual(3); - try{ - expect(data[0].name).assertEqual("accessibleAccount_promise_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_promise_second"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[2].name).assertEqual("accessibleAccount_promise_third"); - expect(data[2].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 0600 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>delete first account 0600 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_first"); - console.debug("====>delete second account 0600 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_second"); - console.debug("====>delete third account 0600 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_third"); - console.debug("====>ActsGetAllAccessibleAccounts_0600 end===="); - done(); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0700 - * @tc.name : getAllAccessibleAccounts callback - * @tc.desc : This application adds different application accounts three times in a row, and obtains - * authorization after deleting the account added for the second time - */ - it('ActsGetAllAccessibleAccounts_0700', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0700 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - appAccountManager.addAccount("accessibleAccount_callback_delete_first", (err)=>{ - console.debug("====>add first account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.addAccount("accessibleAccount_callback_delete_second", (err)=>{ - console.debug("====>add second account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.addAccount("accessibleAccount_callback_delete_third", (err)=>{ - console.debug("====>add third account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.deleteAccount("accessibleAccount_callback_delete_second", (err)=>{ - console.debug("====>delete second account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts 0700 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts 0700 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts 0700 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("accessibleAccount_callback_delete_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_callback_delete_third"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 0700 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - appAccountManager.deleteAccount("accessibleAccount_callback_delete_first", (err)=>{ - console.debug("====>delete first account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.deleteAccount("accessibleAccount_callback_delete_third", (err)=>{ - console.debug("====>delete third account 0700 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - console.debug("====>ActsGetAllAccessibleAccounts_0700 end===="); - done(); - }) - }) - }); - }) - }) - }) - }); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0800 - * @tc.name : getAllAccessibleAccounts promise - * @tc.desc : This application adds different application accounts three times in a row, and obtains - * authorization after deleting the account added for the second time - */ - it('ActsGetAllAccessibleAccounts_0800', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0800 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>getAllAccounts for clean===="); - var selfBundle = "com.example.actsgetallaccessibleaccounts"; - try{ - var acclist = await appAccountManager.getAllAccounts(selfBundle); - } - catch(err){ - console.error("====>getAllAccounts err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>account list length: " + acclist.length); - if(acclist.length > 0){ - for(var i = 0;i < acclist.length; i++){ - await appAccountManager.deleteAccount(acclist[i].name); - } - } - console.debug("====>add first account 0800 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_first"); - console.debug("====>add second account 0800 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_second"); - console.debug("====>add third account 0800 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_third"); - console.debug("====>delete second account 0800 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_second"); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 0800 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 0800 data:" + JSON.stringify(data)); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("accessibleAccount_promise_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_promise_third"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 0800 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>delete first account 0800 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_first"); - console.debug("====>delete third account 0800 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_third"); - console.debug("====>ActsGetAllAccessibleAccounts_0800 end===="); - done(); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_0900 - * @tc.name : getAllAccessibleAccounts callback - * @tc.desc : This application adds different application accounts three times in a row, and then obtains - * authorization multiple times - */ - it('ActsGetAllAccessibleAccounts_0900', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_0900 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - appAccountManager.addAccount("accessibleAccount_callback_multiple_first", (err)=>{ - console.debug("====>add first account 0900 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.addAccount("accessibleAccount_callback_multiple_second", (err)=>{ - console.debug("====>add third account 0900 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts first 0900 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts first 0900 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts first 0900 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("accessibleAccount_callback_multiple_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_callback_multiple_second"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data first 0900 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - appAccountManager.getAllAccessibleAccounts((err, data)=>{ - console.debug("====>getAllAccessibleAccounts second 0900 err:" + JSON.stringify(err)); - console.debug("====>getAllAccessibleAccounts second 0900 data:" + JSON.stringify(data)); - console.debug("====>getAllAccessibleAccounts second 0900 data.length:" + data.length); - expect(err).assertEqual(null); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("accessibleAccount_callback_multiple_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_callback_multiple_second"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data second 0900 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - appAccountManager.deleteAccount("accessibleAccount_callback_multiple_first", (err)=>{ - console.debug("====>delete first account 0900 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - appAccountManager.deleteAccount("accessibleAccount_callback_multiple_second", (err)=>{ - console.debug("====>delete second account 0900 err:" + JSON.stringify(err)); - expect(err).assertEqual(null); - console.debug("====>ActsGetAllAccessibleAccounts_0900 end===="); - done(); - }) - }) - }) - }) - }) - }); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_1000 - * @tc.name : getAllAccessibleAccounts promise - * @tc.desc : This application adds different application accounts three times in a row, and then obtains - * authorization multiple times - */ - it('ActsGetAllAccessibleAccounts_1000', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_1000 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>getAllAccounts for clean===="); - var selfBundle = "com.example.actsgetallaccessibleaccounts"; - try{ - var acclist = await appAccountManager.getAllAccounts(selfBundle); - } - catch(err){ - console.error("====>getAllAccounts err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>account list length: " + acclist.length); - if(acclist.length > 0){ - for(var i = 0;i < acclist.length; i++){ - await appAccountManager.deleteAccount(acclist[i].name); - } - } - console.debug("====>add first account 1000 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_multiple_first"); - console.debug("====>add second account 1000 start===="); - await appAccountManager.addAccount("accessibleAccount_promise_multiple_second"); - console.debug("====>getAllAccessibleAccounts first 1000 start===="); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts first 1000 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 1000 data:" + JSON.stringify(data)); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("accessibleAccount_promise_multiple_first"); - expect(data[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(data[1].name).assertEqual("accessibleAccount_promise_multiple_second"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 1000 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts second 1000 start===="); - try{ - var dataTwo = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts second 1000 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 1000 dataTwo:" + JSON.stringify(dataTwo)); - expect(data.length).assertEqual(2); - try{ - expect(dataTwo[0].name).assertEqual("accessibleAccount_promise_multiple_first"); - expect(dataTwo[0].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - expect(dataTwo[1].name).assertEqual("accessibleAccount_promise_multiple_second"); - expect(dataTwo[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check dataTwo 1000 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>delete first account 1000 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_multiple_first"); - console.debug("====>delete second account 1000 start===="); - await appAccountManager.deleteAccount("accessibleAccount_promise_multiple_second"); - console.debug("====>ActsGetAllAccessibleAccounts_1000 end===="); - done(); - }); - - /* - * @tc.number : ActsGetAllAccessibleAccounts_1100 - * @tc.name : getAllAccessibleAccounts - * @tc.desc : This application adds an account, other application authorizes an account to this application - * and this application obtains authorization - */ - it('ActsGetAllAccessibleAccounts_1100', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleAccounts_1100 start===="); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>add account 1100 start===="); - await appAccountManager.addAccount("accessibleAccount_this_application"); - console.debug("====>startAbility 1100 start===="); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.example.actsaccountsceneaccessible", - abilityName: "com.example.actsaccountsceneaccessible.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); - setTimeout(async function(){ - console.debug("====>getAllAccessibleAccounts 1100 start===="); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 1100 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 1100 data:" + JSON.stringify(data)); - expect(data.length).assertEqual(2); - try{ - expect(data[0].name).assertEqual("account_name_scene_single"); - expect(data[0].owner).assertEqual("com.example.actsaccountsceneaccessible"); - expect(data[1].name).assertEqual("accessibleAccount_this_application"); - expect(data[1].owner).assertEqual("com.example.actsgetallaccessibleaccounts"); - } - catch(err){ - console.error("====>check data 1100 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>delete account 1100 start===="); - await appAccountManager.deleteAccount("accessibleAccount_this_application"); - console.debug("====>ActsGetAllAccessibleAccounts_1100 end===="); - done(); - }, TIMEOUT); - }); - }) -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/List.test.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/List.test.js deleted file mode 100755 index 31116b121..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/js/test/List.test.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import ActsGetAllAccessibleAccounts from './Getallaccessible.test.js' - -export default function testsuite() { - ActsGetAllAccessibleAccounts() -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/element/string.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/element/string.json deleted file mode 100755 index b8c402107..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/element/string.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "string": [ - { - "name": "app_name", - "value": "ActsGetAllAccessibleAccounts" - }, - { - "name": "mainability_description", - "value": "JS_Phone_Empty Feature Ability" - }, - { - "name": "MainAbility_desc", - "value": "description" - }, - { - "name": "MainAbility_label", - "value": "label" - }, - { - "name": "TestAbility_desc", - "value": "description" - }, - { - "name": "TestAbility_label", - "value": "label" - } - ] -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/media/icon.png b/account/appaccount/getallaccessibleaccounts/actsgetallaccessibleaccounts/src/main/resources/base/media/icon.png deleted file mode 100755 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1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}`~E_I%@cs^LOa$2)i@dIT>Xwt$NRJGKBwGxhRv>;|$~e?fhri0>v0f+(7wSh%fN0o?LS+RGi$u8e~@V$KxpPabqWYyMVNB!=(qG46gKCs_E zX~x}P?3GR~SDFDSuPE>Mx_8Of!DpHe-LhcO(R*KCTVpfV{Nc5I$5tHG{yMzv&U5`liTl4qEV%Cg diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/config.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/config.json deleted file mode 100644 index 5f51bc3da..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "app": { - "bundleName": "com.example.actsgetallaccessiblemultiple", - "vendor": "example", - "version": { - "code": 1, - "name": "1.0" - }, - "apiVersion": { - "compatible": 4, - "target": 5, - "releaseType": "Beta1" - } - }, - "deviceConfig": {}, - "module": { - "package": "com.example.actsgetallaccessiblemultiple", - "name": ".entry", - "mainAbility": ".MainAbility", - "srcPath":"", - "deviceType": [ - "tablet", - "default", - "phone" - ], - "distro": { - "deliveryWithInstall": true, - "moduleName": "entry", - "moduleType": "entry" - }, - "defPermissions": [ - { - "availableScope": [], - "grantMode": "system_grant", - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS" - } - ], - "reqPermissions": [ - { - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", - "reason": "ceshi" - }, - { - "name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", - "reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" - }, - { - "name":"ohos.permission.GET_BUNDLE_INFO", - "reason":"need use ohos.permission.GET_BUNDLE_INFO" - }, - { - "name":"ohos.permission.CHANGE_ABILITY_ENABLED_STATE", - "reason":"need use ohos.permission.CHANGE_ABILITY_ENABLED_STATE" - }, - { - "name":"ohos.permission.REMOVE_CACHE_FILES", - "reason":"need use ohos.permission.REMOVE_CACHE_FILES" - }, - { - "name":"ohos.permission.LISTEN_BUNDLE_CHANGE", - "reason":"need use ohos.permission.LISTEN_BUNDLE_CHANGE" - } - ], - "abilities": [ - { - "skills": [ - { - "entities": [ - "entity.system.home" - ], - "actions": [ - "action.system.home" - ] - } - ], - "orientation": "unspecified", - "formsEnabled": false, - "name": ".MainAbility", - "srcLanguage": "js", - "srcPath": "MainAbility", - "icon": "$media:icon", - "description": "$string:MainAbility_desc", - "label": "$string:MainAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - }, - { - "orientation": "unspecified", - "formsEnabled": false, - "name": ".TestAbility", - "srcLanguage": "js", - "srcPath": "TestAbility", - "icon": "$media:icon", - "description": "$string:TestAbility_desc", - "label": "$string:TestAbility_label", - "type": "page", - "visible": true, - "launchType": "standard" - } - ], - "js": [ - { - "pages": [ - "pages/index/index" - ], - "name": "default", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - }, - { - "pages": [ - "pages/index/index" - ], - "name": ".TestAbility", - "window": { - "designWidth": 720, - "autoDesignWidth": false - } - } - ], - "testRunner": { - "name": "OpenHarmonyTestRunner", - "srcPath": "TestRunner" - } - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/app.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/app.js deleted file mode 100755 index 2a68c1992..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/app.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export default { - onCreate() { - console.info('AceApplication onCreate'); - }, - onDestroy() { - console.info('AceApplication onDestroy'); - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/en-US.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/en-US.json deleted file mode 100755 index e63c70d97..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/zh-CN.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/zh-CN.json deleted file mode 100755 index de6ee5748..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/i18n/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.css b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.css deleted file mode 100644 index 2334ecfa2..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.css +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.hml b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.hml deleted file mode 100644 index 58fdc1444..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.hml +++ /dev/null @@ -1,19 +0,0 @@ - -
- - {{title}} - -
diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.js deleted file mode 100755 index c4ec23182..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/MainAbility/pages/index/index.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -const injectRef = Object.getPrototypeOf(global) || global -injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') - -export default { - data: { - title: "getAllAccessibleAccounts" - }, - onInit() { - this.title = "getAllAccessibleAccounts"; - }, - onShow() { - console.info('onShow finish') - }, - onReady() { - }, -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/app.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/app.js deleted file mode 100644 index cdc31f3dc..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/app.js +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' -import { Hypium } from '@ohos/hypium' -import testsuite from '../test/List.test' - -export default { - onCreate() { - console.info('TestApplication onCreate') - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - console.info('start run testcase!!!') - Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite) - }, - onDestroy() { - console.info("TestApplication onDestroy"); - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/en-US.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/en-US.json deleted file mode 100644 index 3cb24b374..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/en-US.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - }, - "Files": { - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/zh-CN.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/zh-CN.json deleted file mode 100644 index c804e32c0..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/i18n/zh-CN.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - }, - "Files": { - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.css b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.css deleted file mode 100644 index 1ba8e4e82..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.css +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -.container { - flex-direction: column; - justify-content: center; - align-items: center; -} - -.title { - font-size: 100px; -} - - -@media screen and (device-type: phone) and (orientation: landscape) { - .title { - font-size: 60px; - } -} - -@media screen and (device-type: tablet) and (orientation: landscape) { - .title { - font-size: 100px; - } -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.hml b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.hml deleted file mode 100644 index 61ea59d93..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.hml +++ /dev/null @@ -1,21 +0,0 @@ - - -
- - {{ $t('strings.hello') }} {{title}} - - -
diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.js deleted file mode 100644 index 88b083a7f..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestAbility/pages/index/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -export default { - data: { - title: "" - }, - onInit() { - this.title = this.$t('strings.world'); - } -} - - - diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestRunner/OpenHarmonyTestRunner.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestRunner/OpenHarmonyTestRunner.js deleted file mode 100644 index c5fa8620c..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/TestRunner/OpenHarmonyTestRunner.js +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2022 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' - -function translateParamsToString(parameters) { - const keySet = new Set([ - '-s class', '-s notClass', '-s suite', '-s itName', - '-s level', '-s testType', '-s size', '-s timeout', - '-s package', '-s dryRun' - ]) - let targetParams = ''; - for (const key in parameters) { - if (keySet.has(key)) { - targetParams += ' ' + key + ' ' + parameters[key] - } - } - return targetParams.trim() -} - - export default { - onPrepare() { - console.info('OpenHarmonyTestRunner OnPrepare') - }, - onRun() { - console.log('OpenHarmonyTestRunner onRun run') - var abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments() - var abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator() - - var testAbilityName = abilityDelegatorArguments.parameters['-p'] + '.TestAbility' - - var cmd = 'aa start -d 0 -a ' + testAbilityName + ' -b ' + abilityDelegatorArguments.bundleName - cmd += ' ' + translateParamsToString(abilityDelegatorArguments.parameters) - var debug = abilityDelegatorArguments.parameters["-D"] - console.info('debug value : '+debug) - if (debug == 'true') - { - cmd += ' -D' - } - console.info('cmd : '+cmd) - abilityDelegator.executeShellCommand(cmd, (err, data) => { - console.info('executeShellCommand : err : ' + JSON.stringify(err)); - console.info('executeShellCommand : data : ' + data.stdResult); - console.info('executeShellCommand : data : ' + data.exitCode); - }) - } -}; diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/Getmultiple.test.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/Getmultiple.test.js deleted file mode 100755 index 3f206507b..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/Getmultiple.test.js +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import account from '@ohos.account.appAccount' -import featureAbility from '@ohos.ability.featureAbility' -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' - -const TIMEOUT = 5000; -export default function ActsGetAllAccessibleMultiple() { - describe('ActsGetAllAccessibleMultiple', function () { - beforeAll(async function (done) { - console.debug("====>startAbility first start===="); - await featureAbility.startAbility( - { - want: - { - deviceId: "", - bundleName: "com.example.actsaccountaccessiblefirst", - abilityName: "com.example.actsaccountaccessiblefirst.MainAbility", - action: "action1", - parameters: - {}, - }, - }, - ); - sleep(TIMEOUT); - done(); - }); - - function sleep(delay) { - var start = (new Date()).getTime(); - while((new Date()).getTime() - start < delay) { - continue; - } - } - - /* - * @tc.number : ActsGetAllAccessibleMultiple_0100 - * @tc.name : getAllAccessibleAccounts - * @tc.desc : This application adds multiple account, other applications authorizes multiple accounts to this - * application and this application obtains authorization - */ - it('ActsGetAllAccessibleMultiple_0100', 0, async function (done) { - console.debug("====>ActsGetAllAccessibleMultiple_0100 start===="); - let dataMap = new Map(); - var appAccountManager = account.createAppAccountManager(); - console.debug("====>creat finish===="); - console.debug("====>add first account 0100 start===="); - await appAccountManager.addAccount("accessibleAccount_this_application_first"); - console.debug("====>add second account 0100 start===="); - await appAccountManager.addAccount("accessibleAccount_this_application_second"); - console.debug("====>add third account 0100 start===="); - await appAccountManager.addAccount("accessibleAccount_this_application_third"); - console.debug("====>getAllAccessibleAccounts 0100 start===="); - try{ - var data = await appAccountManager.getAllAccessibleAccounts(); - } - catch(err){ - console.error("====>getAllAccessibleAccounts 0100 fail err:" + JSON.stringify(err)); - expect().assertFail(); - done(); - } - console.debug("====>getAllAccessibleAccounts 0100 data:" + JSON.stringify(data)); - expect(data.length).assertEqual(7); - console.debug("====>data.length:" + data.length); - for (let i = 0, len = data.length; i < len; i++) { - dataMap.set(data[i].name, data[i].owner) - } - expect(dataMap.has("account_name_scene_first_first")).assertTrue(); - if (dataMap.has("account_name_scene_first_first")) { - let data = dataMap.get("account_name_scene_first_first"); - console.debug("====>first account owner is: " + data); - expect(data).assertEqual("com.example.actsaccountaccessiblefirst"); - } - expect(dataMap.has("account_name_scene_first_second")).assertTrue(); - if (dataMap.has("account_name_scene_first_second")) { - let data = dataMap.get("account_name_scene_first_second"); - console.debug("====>second account owner is: " + data); - expect(data).assertEqual("com.example.actsaccountaccessiblefirst"); - } - expect(dataMap.has("account_name_scene_second_first")).assertTrue(); - if (dataMap.has("account_name_scene_second_first")) { - let data = dataMap.get("account_name_scene_second_first"); - console.debug("====>third account owner is: " + data); - expect(data).assertEqual("com.example.actsaccountaccessiblesecond"); - } - expect(dataMap.has("account_name_scene_second_second")).assertTrue(); - if (dataMap.has("account_name_scene_second_second")) { - let data = dataMap.get("account_name_scene_second_second"); - console.debug("====>fourth account owner is: " + data); - expect(data).assertEqual("com.example.actsaccountaccessiblesecond"); - } - expect(dataMap.has("accessibleAccount_this_application_first")).assertTrue(); - if (dataMap.has("accessibleAccount_this_application_first")) { - let data = dataMap.get("accessibleAccount_this_application_first"); - console.debug("====>fifth account owner is: " + data); - expect(data).assertEqual("com.example.actsgetallaccessiblemultiple"); - } - expect(dataMap.has("accessibleAccount_this_application_second")).assertTrue(); - if (dataMap.has("accessibleAccount_this_application_second")) { - let data = dataMap.get("accessibleAccount_this_application_second"); - console.debug("====>sixth account owner is: " + data); - expect(data).assertEqual("com.example.actsgetallaccessiblemultiple"); - } - expect(dataMap.has("accessibleAccount_this_application_third")).assertTrue(); - if (dataMap.has("accessibleAccount_this_application_third")) { - let data = dataMap.get("accessibleAccount_this_application_third"); - console.debug("====>seventh account owner is: " + data); - expect(data).assertEqual("com.example.actsgetallaccessiblemultiple"); - } - console.debug("====>delete account start===="); - await appAccountManager.deleteAccount("accessibleAccount_this_application_first"); - await appAccountManager.deleteAccount("accessibleAccount_this_application_second"); - await appAccountManager.deleteAccount("accessibleAccount_this_application_third"); - console.debug("====>ActsGetAllAccessibleAccounts_0100 end===="); - done(); - }); - }) -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/List.test.js b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/List.test.js deleted file mode 100755 index 8e3c24929..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/js/test/List.test.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) 2021 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import ActsGetAllAccessibleMultiple from './Getmultiple.test.js' - -export default function testsuite() { - ActsGetAllAccessibleMultiple() -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/element/string.json b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/element/string.json deleted file mode 100755 index e2244febf..000000000 --- a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/element/string.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "string": [ - { - "name": "app_name", - "value": "ActsGetAllAccessibleMultiple" - }, - { - "name": "mainability_description", - "value": "JS_Phone_Empty Feature Ability" - }, - { - "name": "MainAbility_desc", - "value": "description" - }, - { - "name": "MainAbility_label", - "value": "label" - }, - { - "name": "TestAbility_desc", - "value": "description" - }, - { - "name": "TestAbility_label", - "value": "label" - } - ] -} \ No newline at end of file diff --git a/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/media/icon.png b/account/appaccount/getallaccessibleaccounts/actsgetallaccessiblemultiple/src/main/resources/base/media/icon.png deleted file mode 100755 index ce307a8827bd75456441ceb57d530e4c8d45d36c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6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^Yk%`a&ny9%eY7-%eB%sB)cLe&)3D($k!z!(XHH|(zgmC z3Kg3i%(SE4#l*ABw8$`|Dz~D<(BILsC@3Jw(nH(WB`3+htlT5fJ=ZA9DcQ3q*V8l5 zGCjH4E3wL{z}LyZ z-O(^K#U(v3+{r00EGxp&%RjIpH73u%GtjHVASsP2#9!aC)WBQcKWp+7=Eiz+&!T)s zQ~$`M)L_GOv#6Ak@~}vQ^pcWX1GDV(^q}nU@Uk$I+>$VF@5*o^*Oat~n7lyKpil+(>O?bA)}qq#dhduKgOnc}cie)C>$11>fWU=lcI%figW;$h&% zq{uM2S#jH}g$pbt-y>Xw%06+WO7uSog{9304kXjy839V>(VAUEvdyK ZZ`D+O=^gn$b&_32>w$$F8O>5{Ujadm%hUh> diff --git a/account/appaccount/getallaccounts/actsgetmultipleaccounts/src/main/config.json b/account/appaccount/getallaccounts/actsgetmultipleaccounts/src/main/config.json index e3b5ee38b..539a2667a 100644 --- a/account/appaccount/getallaccounts/actsgetmultipleaccounts/src/main/config.json +++ b/account/appaccount/getallaccounts/actsgetmultipleaccounts/src/main/config.json @@ -28,17 +28,8 @@ "moduleType": "entry" }, "defPermissions": [ - { - "availableScope": [], - "grantMode": "system_grant", - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS" - } ], "reqPermissions": [ - { - "name": "ohos.permission.GET_ALL_APP_ACCOUNTS", - "reason": "ceshi" - }, { "name":"ohos.permission.GET_BUNDLE_INFO_PRIVILEGED", "reason":"need use ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" -- GitLab