diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/BUILD.gn b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/BUILD.gn index 2cee5e6e70cf1dbdc7fe1a94db0b4827b133e51f..75fb41d517dd40572e1df3d239be4786f8780a86 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/BUILD.gn +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2022 Huawei Device Co., Ltd. +# Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/MainAbility.ts b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/MainAbility.ts index ed9f3fe31a2205de8de26033e5b645ccaeac040c..79ba798ea1b4c0f98704caae53e1342fa62445b8 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/MainAbility.ts @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2023 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 Ability from '@ohos.app.ability.UIAbility' export default class MainAbility extends Ability { diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/pages/index.ets b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/pages/index.ets index 9d55879f3923d5f6a95525162dc5ebb865d7aa28..b59fce0fd52daeecab3e0d203d217b003565eb8b 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,5 +1,5 @@ /* -* Copyright (c) 2022 Huawei Device Co., Ltd. +* Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts index 4863755520e3a25322068f8b565fc39b091c734d..206293c0631e8fe3585c484c6e4b93c89a3b1575 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility2/MainAbility2.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts index 389e95b22b6e3a0f3e1fb7576a397bb6f46408ce..28df4e28da0e5e7d0fdff739bf6084de5eab69df 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/MainAbility3/MainAbility3.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 Huawei Device Co., Ltd. + * Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index.ets index 3bb1376bf16a11bb8882e58381c6f1499069e0bd..b2ec8539b46c8bd581f03c0afffc235a308e2c27 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index.ets @@ -1,5 +1,5 @@ /* -* Copyright (c) 2022 Huawei Device Co., Ltd. +* Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index2.ets b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index2.ets index 3677a8602752609fa974b34b53749162392bb00b..7102122d0e3d324446c8e89f81575be365fc87f2 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index2.ets +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index2.ets @@ -1,5 +1,5 @@ /* -* Copyright (c) 2022 Huawei Device Co., Ltd. +* Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index3.ets b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index3.ets index ae4dc02582f7c4aaf7583dee23b1f2383a481cb0..288d67612cd5654270fe86eea7ca3b0c251f3441 100644 --- a/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index3.ets +++ b/ability/ability_runtime/actsuiextensiontest/actsabilityusertest/entry/src/main/ets/pages/index3.ets @@ -1,5 +1,5 @@ /* -* Copyright (c) 2022 Huawei Device Co., Ltd. +* Copyright (c) 2023 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 diff --git a/ability/ability_runtime/actsuiextensiontest/uiextensionprovider/entry/src/main/ets/pages/index.ets b/ability/ability_runtime/actsuiextensiontest/uiextensionprovider/entry/src/main/ets/pages/index.ets index eefcadbf1a436344561bb3f71a2e6840d8c2d419..6fa75d76bf2b5d2cd6df1bf1eda5864f9e402ef7 100644 --- a/ability/ability_runtime/actsuiextensiontest/uiextensionprovider/entry/src/main/ets/pages/index.ets +++ b/ability/ability_runtime/actsuiextensiontest/uiextensionprovider/entry/src/main/ets/pages/index.ets @@ -18,8 +18,6 @@ import commonEventManager from '@ohos.commonEventManager' import Logger from '../model/Logger' import common from '@ohos.app.ability.common'; let context= getContext(this) as common.UIExtensionContext; -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry' const TAG: string = '[UIExtAbility]' const sleepTimeOne = 1000; diff --git a/ability/ability_runtime/actsuiextensiontest/uiextensiontest/Test.json b/ability/ability_runtime/actsuiextensiontest/uiextensiontest/Test.json index ddc28846d39a13ca967115cc2b642952cf56b16b..b94f41d9a6ae3cc70528335b0e62a7f9c71740cb 100644 --- a/ability/ability_runtime/actsuiextensiontest/uiextensiontest/Test.json +++ b/ability/ability_runtime/actsuiextensiontest/uiextensiontest/Test.json @@ -12,7 +12,7 @@ { "test-file-name": [ "UIExtensionTest.hap", - "UIextensionProvider.hap", + "UIExtensionProvider.hap", "StartAbilityByUIContentSession.hap" ], "type": "AppInstallKit", diff --git a/ability/ability_runtime/actsuiextensiontest/uiextensiontest/entry/src/main/ets/test/Ability.test.ets b/ability/ability_runtime/actsuiextensiontest/uiextensiontest/entry/src/main/ets/test/Ability.test.ets index 7a0ece51dd1c328b1b26d034d1b8d343590191b5..7512b60fa225d409d3e42e5f5ea0b4c8a1982c73 100644 --- a/ability/ability_runtime/actsuiextensiontest/uiextensiontest/entry/src/main/ets/test/Ability.test.ets +++ b/ability/ability_runtime/actsuiextensiontest/uiextensiontest/entry/src/main/ets/test/Ability.test.ets @@ -22,7 +22,6 @@ export default function abilityTest() { describe('ACTS_UIExtension', function () { let TAG = ""; let sleepTimeOne = 1000; - let abilityContext = globalThis.abilityContext; // Defines a test suite. Two parameters are supported: test suite name and test suite function. beforeAll(function () { // Presets an action, which is performed only once before all test cases of the test suite start.