From 671424e047ff22f468af673ee3fa9c49b6bb3061 Mon Sep 17 00:00:00 2001 From: hu0475 Date: Tue, 11 Jul 2023 19:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9D=83=E5=B9=B4?= =?UTF-8?q?=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hu0475 --- commonlibrary/BUILD.gn | 2 +- .../commonlibraryxmletstest/BUILD.gn | 19 ++++++++++++------- .../src/main/ets/TestAbility/TestAbility.ets | 14 ++++++++++++++ .../src/main/ets/TestAbility/pages/Index.ets | 14 ++++++++++++++ .../src/main/ets/test/List.test.ets | 14 ++++++++++++++ .../src/main/ets/test/xmlEventType.test.ets | 2 +- .../src/main/ets/test/xmlParseOption.test.ets | 2 +- 7 files changed, 57 insertions(+), 10 deletions(-) diff --git a/commonlibrary/BUILD.gn b/commonlibrary/BUILD.gn index c08dd13b9..8c24c3edd 100644 --- a/commonlibrary/BUILD.gn +++ b/commonlibrary/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/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn index ff05ea418..421e401b5 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn @@ -1,3 +1,15 @@ +# 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("//test/xts/tools/build/suite.gni") ohos_js_hap_suite("xml_ets_test") { @@ -8,26 +20,19 @@ ohos_js_hap_suite("xml_ets_test") { ] ets2abc = true certificate_profile = "./signature/openharmony_sx.p7b" - # hap_name: HAP的名字,可选,默认为目标名 hap_name = "xml_ets_test" subsystem_name = "commonlibrary" part_name = "ets_utils" } ohos_app_scope("windowStage_app_profile") { - # app_profile: HAP的AppScope中的app.json,只在Stage模型下使用 app_profile = "AppScope/app.json" - # sources: 资源文件路径 sources = [ "AppScope/resources" ] } ohos_js_assets("windowStage_js_assets") { - # source_dir: js或ets代码路径,兼容FA模型的单ability配置到ability目录 source_dir = "src/main/ets" } ohos_resources("windowStage_resources") { - # sources: 资源文件路径 sources = [ "src/main/resources" ] - # deps: 当前目标的依赖 deps = [ ":windowStage_app_profile" ] - # hap_profile: HAP的config.json,Stage模型对应module.json hap_profile = "src/main/module.json" } \ No newline at end of file diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets index 2d889f4fd..a535e83f7 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets @@ -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 UIAbility from '@ohos.app.ability.UIAbility'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import hilog from '@ohos.hilog'; diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets index 166366593..dbc536ca8 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets @@ -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 hilog from '@ohos.hilog'; @Entry diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets index e83777f0c..09c4f9aa1 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets @@ -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 xmlTest from './xml.test' import xmlParseOptionTest from './xmlEventType.test' import xmlEventTypeTest from './xmlParseOption.test' diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets index c2dcf7054..50e011231 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.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/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets index e7db0ab01..54b7a7045 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.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 -- GitLab