From 5871f8174a12a5032bf4a4c65a18c954cedc015d Mon Sep 17 00:00:00 2001 From: stivn <9699603+stivn@user.noreply.gitee.com> Date: Tue, 29 Mar 2022 07:02:20 +0000 Subject: [PATCH] =?UTF-8?q?update=20zh-cn/readme/=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=AD=90=E7=B3=BB=E7=BB=9F.md.=20Signed-off-by:=20stivn=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...25\345\255\220\347\263\273\347\273\237.md" | 81 +++---------------- 1 file changed, 12 insertions(+), 69 deletions(-) diff --git "a/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" "b/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" index 3bf9efda18..8664289223 100755 --- "a/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" +++ "b/zh-cn/readme/\346\265\213\350\257\225\345\255\220\347\263\273\347\273\237.md" @@ -75,20 +75,6 @@ subsystem # 子系统 - 用例示例 ``` - /* - * Copyright (c) 2021 XXXX 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. - */ #include "calculator.h" #include @@ -140,22 +126,9 @@ subsystem # 子系统 ``` 详细内容介绍: 1. 添加测试用例文件头注释信息 - ``` - /* - * Copyright (c) 2021 XXXX 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. - */ - ``` + + 按照标准头注释信息格式填写,请查阅[编写规范](https://gitee.com/openharmony/docs/blob/master/zh-cn/contribute/%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81.md)。 + 2. 引用测试框架头文件和命名空间 ``` #include @@ -255,20 +228,6 @@ subsystem # 子系统 - 用例示例 ``` - /* - * Copyright (C) 2021 XXXX 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 app from '@system.app' import {describe, beforeAll, beforeEach, afterEach, afterAll, it, expect} from 'deccjsunit/index' @@ -311,22 +270,9 @@ subsystem # 子系统 ``` 详细内容介绍: 1. 添加测试用例文件头注释信息 - ``` - /* - * Copyright (C) 2021 XXXX 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. - */ - ``` + + 按照标准头注释信息格式填写,请查阅[编写规范](https://gitee.com/openharmony/docs/blob/master/zh-cn/contribute/%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81.md)。 + 2. 导入被测api和jsunit测试库 ``` import app from '@system.app' @@ -381,7 +327,6 @@ subsystem # 子系统 - **C++用例编译配置示例** ``` - # Copyright (c) 2021 XXXX Device Co., Ltd. import("//build/test.gni") @@ -416,9 +361,9 @@ subsystem # 子系统 详细内容如下: 1. 添加文件头注释信息 - ``` - # Copyright (c) 2021 XXXX Device Co., Ltd. - ``` + + 按照标准头注释信息格式填写,请查阅[编写规范](https://gitee.com/openharmony/docs/blob/master/zh-cn/contribute/%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81.md)。 + 2. 导入编译模板文件 ``` import("//build/test.gni") @@ -483,7 +428,6 @@ subsystem # 子系统 - **JavaScript用例编译配置示例** ``` - # Copyright (C) 2021 XXXX Device Co., Ltd. import("//build/test.gni") @@ -505,10 +449,9 @@ subsystem # 子系统 详细内容如下: 1. 添加文件头注释信息 - - ``` - # Copyright (C) 2021 XXXX Device Co., Ltd. - ``` + + 按照标准头注释信息格式填写,请查阅[编写规范](https://gitee.com/openharmony/docs/blob/master/zh-cn/contribute/%E8%B4%A1%E7%8C%AE%E4%BB%A3%E7%A0%81.md)。 + 2. 导入编译模板文件 ``` -- GitLab