From f5c5a0322b9c5ec55e79ad367127ee801121fc84 Mon Sep 17 00:00:00 2001 From: wuqina <3220241511@bit.edu.cn> Date: Mon, 22 Jul 2024 16:45:20 +0800 Subject: [PATCH] first commit Signed-off-by: wuqina <3220241511@bit.edu.cn> --- .../ui_compare/uicompare/build-profile.json5 | 12 - .../entry/src/ohosTest/ets/test/List.test.ets | 7 +- .../UIAttributeFontInterfaceSize.test.ets | 99 +++++++ .../UIAttributeFontInterfaceStyle.test.ets | 85 ++++++ .../UIAttributeFontInterfaceWeight.test.ets | 265 ++++++++++++++++++ .../UIAttributeFontInterface009.ets | 34 +++ .../UIAttributeFontInterface010.ets | 32 +++ .../UIAttributeFontInterface012.ets | 32 +++ .../UIAttributeFontInterface013.ets | 32 +++ .../UIAttributeFontInterface014.ets | 33 +++ .../UIAttributeFontInterface015.ets | 32 +++ .../UIAttributeFontInterface016.ets | 32 +++ .../UIAttributeFontInterface017.ets | 36 +++ .../UIAttributeFontInterface018.ets | 32 +++ .../UIAttributeFontInterface019.ets | 36 +++ .../UIAttributeFontInterface020.ets | 32 +++ .../UIAttributeFontInterface021.ets | 32 +++ .../UIAttributeFontInterface022.ets | 32 +++ .../UIAttributeFontInterface023.ets | 32 +++ .../UIAttributeFontInterface024.ets | 32 +++ .../UIAttributeFontInterface025.ets | 32 +++ .../UIAttributeFontInterface026.ets | 32 +++ .../UIAttributeFontInterface027.ets | 32 +++ .../UIAttributeFontInterface028.ets | 32 +++ .../UIAttributeFontInterface029.ets | 32 +++ .../UIAttributeFontInterface030.ets | 32 +++ .../UIAttributeFontInterface031.ets | 31 ++ .../resources/base/profile/test_pages.json | 24 +- 28 files changed, 1192 insertions(+), 14 deletions(-) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031.ets diff --git a/function/ui_compare/uicompare/build-profile.json5 b/function/ui_compare/uicompare/build-profile.json5 index 14a6f7b04..633947d21 100644 --- a/function/ui_compare/uicompare/build-profile.json5 +++ b/function/ui_compare/uicompare/build-profile.json5 @@ -1,18 +1,6 @@ { "app": { "signingConfigs": [ - { - "name": "default", - "material": { - "certpath": "C:/Users/Administrator/.ohos/config/openharmony/default_uicompare_JATV3sai8Vu453IAuyPAlrcBCITyeH85AVd3jtrOqX8=.cer", - "storePassword": "0000001B5800C5862EC1C131F62392DCF0CF0C6ADA36F77E974C9AABB8F83303F7B9F2403B658750DE79B2", - "keyAlias": "debugKey", - "keyPassword": "0000001BECE219BF83EBDBA9905E2D724889CD8A7609B551E92AE7521165E20E0E0AAE435E0577D72C5420", - "profile": "C:/Users/Administrator/.ohos/config/openharmony/default_uicompare_JATV3sai8Vu453IAuyPAlrcBCITyeH85AVd3jtrOqX8=.p7b", - "signAlg": "SHA256withECDSA", - "storeFile": "C:/Users/Administrator/.ohos/config/openharmony/default_uicompare_JATV3sai8Vu453IAuyPAlrcBCITyeH85AVd3jtrOqX8=.p12" - } - } ], "products": [ { diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 79216c3a6..6e78ce4a0 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -15,8 +15,13 @@ import demoTest from './Demo.test' import UIAttributeFontInterface001 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface001.test' - +import UIAttributeFontInterfaceSize from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test' +import UIAttributeFontInterfaceStyle from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test' +import UIAttributeFontInterfaceWeight from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); + UIAttributeFontInterfaceSize(); + UIAttributeFontInterfaceStyle(); + UIAttributeFontInterfaceWeight(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test.ets new file mode 100644 index 000000000..521831782 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test.ets @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +export default function UIAttributeFontInterfaceSize() { + + describe('UIAttributeFontInterfaceSize', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 + * @tc.desc set fontSize twice, first 5 ,second 10 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0100 + * @tc.desc set fontSize to 5 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 + * @tc.desc set fontSize to '20%' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0130 + * @tc.desc set fontSize to '5' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0130 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test.ets new file mode 100644 index 000000000..f86a792e8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test.ets @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +export default function UIAttributeFontInterfaceStyle() { + + describe('UIAttributeFontInterfaceStyle', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0140 + * @tc.desc set fontStyle twice, first ontStyle.Normal, second FontStyle.Italic + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0140 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0150 + * @tc.desc set fontStyle to FontStyle.Italic + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0150 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0160 + * @tc.desc set fontStyle to FontStyle.Normal + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0160 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test.ets new file mode 100644 index 000000000..d46719bd3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test.ets @@ -0,0 +1,265 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +export default function UIAttributeFontInterfaceWeight() { + + describe('UIAttributeFontInterfaceWeight', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0170 + * @tc.desc set fontWeight to 500, 800 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0170 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0180 + * @tc.desc set fontWeight to 1000 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0180 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0190 + * @tc.desc set fontWeight to "400", "600" + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0190 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0200 + * @tc.desc set fontWeight to 'bolder' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0200 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0210 + * @tc.desc set fontWeight to 'bold' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0210 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0220 + * @tc.desc set fontWeight to "lighter" + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0220 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0230 + * @tc.desc set fontWeight to "medium" + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0230 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0240 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0240 + * @tc.desc set fontWeight to "regular" + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0240 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0250 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0250 + * @tc.desc set fontWeight to FontWeight.Bold + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0250 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0260 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0260 + * @tc.desc set fontWeight to FontWeight.Bolder + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0260 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0270 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0270 + * @tc.desc set fontWeight to FontWeight.Lighter + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0270 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0280 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0280 + * @tc.desc set fontWeight to FontWeight.Normal + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0290 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0290 + * @tc.desc set fontWeight to FontWeight.Regular + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0290 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0300 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0300 + * @tc.desc set fontWeight to any value + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0300 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0310 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0310 + * @tc.desc didn't set fontWeight + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0310 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009.ets new file mode 100644 index 000000000..28c30d3b6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009.ets @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ + +@Entry +@Component +struct UIAttributeFontInterface009 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(5) + .fontSize(10) + .margin({ top: 20 }) + .key('UIAttributeFontInterface009_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010.ets new file mode 100644 index 000000000..7799cb9af --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface010 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(5) + .margin({ top: 20 }) + .key('UIAttributeFontInterface010_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012.ets new file mode 100644 index 000000000..3f97aa761 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface012 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize('20%') + .margin({ top: 20 }) + .key('UIAttributeFontInterface012_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013.ets new file mode 100644 index 000000000..4e7589184 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface013 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize('5') + .margin({ top: 20 }) + .key('UIAttributeFontInterface013_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014.ets new file mode 100644 index 000000000..8d4802200 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014.ets @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface014 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontStyle(FontStyle.Normal) + .fontStyle(FontStyle.Italic) + .margin({ top: 20 }) + .key('UIAttributeFontInterface014_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015.ets new file mode 100644 index 000000000..08b512da3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface015 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontStyle(FontStyle.Italic) + .margin({ top: 20 }) + .key('UIAttributeFontInterface015_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016.ets new file mode 100644 index 000000000..33510e5f9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface016 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontStyle(FontStyle.Normal) + .margin({ top: 20 }) + .key('UIAttributeFontInterface016_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017.ets new file mode 100644 index 000000000..afbe0d47b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017.ets @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface017 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .key('UIAttributeFontInterface017_001') + .fontWeight(500) + Text(this.message) + .margin({ top: 20 }) + .key('UIAttributeFontInterface017_002') + .fontWeight(800) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018.ets new file mode 100644 index 000000000..65fb8e7a3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface018 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(1000) + .key('UIAttributeFontInterface018_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019.ets new file mode 100644 index 000000000..421f960e4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019.ets @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface019 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .key('UIAttributeFontInterface019_001') + .fontWeight("400") + Text(this.message) + .margin({ top: 20 }) + .key('UIAttributeFontInterface019_002') + .fontWeight("600") + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020.ets new file mode 100644 index 000000000..b07f9dc15 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface020 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('bolder') + .key('UIAttributeFontInterface020_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021.ets new file mode 100644 index 000000000..e29c194a1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface021 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('bold') + .key('UIAttributeFontInterface021_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022.ets new file mode 100644 index 000000000..4d87aa964 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface022 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('lighter') + .key('UIAttributeFontInterface022_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023.ets new file mode 100644 index 000000000..e648c730f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface023 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('medium') + .key('UIAttributeFontInterface023_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024.ets new file mode 100644 index 000000000..9cd87067d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface024 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('regular') + .key('UIAttributeFontInterface024_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025.ets new file mode 100644 index 000000000..716a4dd90 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface025 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(FontWeight.Bold) + .key('UIAttributeFontInterface025_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026.ets new file mode 100644 index 000000000..d0e904164 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface026 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(FontWeight.Bolder) + .key('UIAttributeFontInterface026_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027.ets new file mode 100644 index 000000000..c48913079 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface027 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(FontWeight.Lighter) + .key('UIAttributeFontInterface027_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028.ets new file mode 100644 index 000000000..9041944ec --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface028 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(FontWeight.Normal) + .key('UIAttributeFontInterface028_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029.ets new file mode 100644 index 000000000..e9d36ceef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface029 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight(FontWeight.Regular) + .key('UIAttributeFontInterface029_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030.ets new file mode 100644 index 000000000..ae04f8cb3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030.ets @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface030 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .fontWeight('qweqwrqwrfsa') + .key('UIAttributeFontInterface030_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031.ets new file mode 100644 index 000000000..bd3d2e4ee --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031.ets @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development 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. + */ +@Entry +@Component +struct UIAttributeFontInterface031 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .margin({ top: 20 }) + .key('UIAttributeFontInterface031_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json index 05ef251de..2798b2748 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -2,6 +2,28 @@ "src": [ "testability/pages/Index", "testability/pages/demo", - "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface001" + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface001", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface015", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface016", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface017", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface018", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface019", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface020", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface021", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface022", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface023", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface024", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface025", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface026", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface027", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031" ] } -- Gitee