diff --git a/function/ui_compare/uicompare/build-profile.json5 b/function/ui_compare/uicompare/build-profile.json5 index 14a6f7b04a68dce636782a96a86be987dd5bfab5..633947d214aaa1fc5d8b1c2e3ee82d655a6499b9 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 79216c3a6f9270785abac2818e5fa16f43f7ff96..6e78ce4a02ab1d3392d3651abc7f3160cce93c20 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 0000000000000000000000000000000000000000..52183178240793cce93f1db5a3c5c603560d6d6b --- /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 0000000000000000000000000000000000000000..f86a792e825570ced1575174a2d52167998e9e09 --- /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 0000000000000000000000000000000000000000..d46719bd3ccb65947519cfb1aa53b65d629c5e09 --- /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 0000000000000000000000000000000000000000..28c30d3b6ee9bb0cd243b54df77180b3cd133d1d --- /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 0000000000000000000000000000000000000000..7799cb9affc88b71318f38c243857d9c19faf613 --- /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 0000000000000000000000000000000000000000..3f97aa761db6661a555a40c134a244ff1f0dda56 --- /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 0000000000000000000000000000000000000000..4e75891842300a5495cbe8c9356fa2162c1a2ae3 --- /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 0000000000000000000000000000000000000000..8d4802200ec5800e4dc544bf380e607388a13b4d --- /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 0000000000000000000000000000000000000000..08b512da32d517c5817876affa231e9993c5914f --- /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 0000000000000000000000000000000000000000..33510e5f9b75650597937b6f0bd84e729c00428d --- /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 0000000000000000000000000000000000000000..afbe0d47bf045f31cc89f421f838aa488713c1cb --- /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 0000000000000000000000000000000000000000..65fb8e7a3b3e3e4ed0e687cb7802f4453538e3dd --- /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 0000000000000000000000000000000000000000..421f960e4aaf14e1c64f986768034929f5e47745 --- /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 0000000000000000000000000000000000000000..b07f9dc15c90e1ba8a0d42d0625a6b8cdba8ae7b --- /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 0000000000000000000000000000000000000000..e29c194a114f18a2606072f71a1a5fa563d53da6 --- /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 0000000000000000000000000000000000000000..4d87aa96493ebe0b4e0ec3cb5894fb7ace2e98f0 --- /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 0000000000000000000000000000000000000000..e648c730f0468eb396a003df454cecb189a80eed --- /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 0000000000000000000000000000000000000000..9cd87067d2b9f9558c32d25848d16ff24512e8de --- /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 0000000000000000000000000000000000000000..716a4dd90690aa7e4873840f381722d05af12d2d --- /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 0000000000000000000000000000000000000000..d0e904164754f95496e5689d1c143f8904a90572 --- /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 0000000000000000000000000000000000000000..c489130790de40517e6cbf36e03ac7f3798c58f1 --- /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 0000000000000000000000000000000000000000..9041944ec68a3a5cc0ae52b865fcfa5ba8c58019 --- /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 0000000000000000000000000000000000000000..e9d36ceeff24c90fc57f07a3753a32ac29eb1808 --- /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 0000000000000000000000000000000000000000..ae04f8cb378fa6a1b01c5cc5f3bbd82c161b0bf3 --- /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 0000000000000000000000000000000000000000..bd3d2e4ee4d70ca64009f0ff7195ff1c90738d3e --- /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 05ef251de9c4659b3a57506be934278a1b50f7f8..2798b27489a0e42f95654ff5058ba9e47f8e8c5b 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" ] }