From 4e855ccbd9223a3c964e8af39b929900e681a809 Mon Sep 17 00:00:00 2001 From: jiyong_sd Date: Thu, 14 Jul 2022 13:16:26 +0800 Subject: [PATCH] modified FA-JS Signed-off-by: jiyong_sd Change-Id: I7bd47fda69d573a6fb8e03a35d8ba20497423808 --- .../appdatamgrjstest/hap/BUILD.gn | 67 ++++++++++--------- .../distributeddataObjectjstest/hap/BUILD.gn | 63 ++++++++--------- 2 files changed, 66 insertions(+), 64 deletions(-) diff --git a/distributeddatamgr/appdatamgrjstest/hap/BUILD.gn b/distributeddatamgr/appdatamgrjstest/hap/BUILD.gn index 3dc959f36..183dfd7ae 100644 --- a/distributeddatamgr/appdatamgrjstest/hap/BUILD.gn +++ b/distributeddatamgr/appdatamgrjstest/hap/BUILD.gn @@ -1,34 +1,35 @@ -# 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 +# 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("appdatamgr_js_test") { - hap_profile = "./src/main/config.json" - deps = [ - ":appdatamgr_js_assets", - ":appdatamgr_resources", - ] - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsAppdatamagrJsTest" - subsystem_name="distributeddatamgr" - part_name="relational_store" -} -ohos_js_assets("appdatamgr_js_assets") { - js2abc=true - hap_profile = "./src/main/config.json" - source_dir = "./src/main/js"} -ohos_resources("appdatamgr_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" -} + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("appdatamgr_js_test") { + hap_profile = "./src/main/config.json" + deps = [ + ":appdatamgr_js_assets", + ":appdatamgr_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsAppdatamagrJsTest" + subsystem_name = "distributeddatamgr" + part_name = "relational_store" +} +ohos_js_assets("appdatamgr_js_assets") { + js2abc = true + hap_profile = "./src/main/config.json" + source_dir = "./src/main/js" +} +ohos_resources("appdatamgr_resources") { + sources = [ "./src/main/resources" ] + hap_profile = "./src/main/config.json" +} diff --git a/distributeddatamgr/distributeddataObjectjstest/hap/BUILD.gn b/distributeddatamgr/distributeddataObjectjstest/hap/BUILD.gn index ef7e91ef1..da89b5297 100644 --- a/distributeddatamgr/distributeddataObjectjstest/hap/BUILD.gn +++ b/distributeddatamgr/distributeddataObjectjstest/hap/BUILD.gn @@ -1,32 +1,33 @@ -# 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 +# 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("distributeddataObject_js_test") { - hap_profile = "./src/main/config.json" - deps = [ - ":distributeddataObject_js_assets", - ":distributeddataObject_resources", - ] - certificate_profile = "./signature/openharmony_sx.p7b" - hap_name = "ActsDistributedDataObjectJsTest" -} -ohos_js_assets("distributeddataObject_js_assets") { - js2abc=true - hap_profile = "./src/main/config.json" - source_dir = "./src/main/js"} -ohos_resources("distributeddataObject_resources") { - sources = [ "./src/main/resources" ] - hap_profile = "./src/main/config.json" -} + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("distributeddataObject_js_test") { + hap_profile = "./src/main/config.json" + deps = [ + ":distributeddataObject_js_assets", + ":distributeddataObject_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsDistributedDataObjectJsTest" +} +ohos_js_assets("distributeddataObject_js_assets") { + js2abc = true + hap_profile = "./src/main/config.json" + source_dir = "./src/main/js" +} +ohos_resources("distributeddataObject_resources") { + sources = [ "./src/main/resources" ] + hap_profile = "./src/main/config.json" +} -- GitLab