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 a01a3cd3dd0270e3f941ac0fb32cf73bee9a88af..90ec0e3d1665df1b26ef7e9eebb16d6efd978487 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,15 +15,33 @@ import demoTest from './Demo.test' import UIAttributeFontInterface001 from './UIAttributeFontInterfaceTest/UIAttributeFontInterface001.test' +import UIAttributeFontInterfaceColor from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceColor.test' +import UIAttributeFontInterfaceFontFamily from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceFontFamily.test' import UIAttributeFontInterfaceSize from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test' import UIAttributeFontInterfaceStyle from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test' import UIAttributeFontInterfaceWeight from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test' +import UIAttributeFontSupportStageAttrs from './UIAttributeFontSupportStageTest/UIAttributeFontSupportStageAttrs.test' +import UIAttributeFontSupportStageComponent from './UIAttributeFontSupportStageTest/UIAttributeFontSupportStageComponent.test' +import UIComponentDividerBlankInterfaceColor from './UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceColor.test' +import UIComponentDividerBlankInterfaceMin from './UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceMin.test' +import UIComponentTextCommonTextStyleTextArea from './UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleTextArea.test' +import UIComponentTextCommonTextStyleText from './UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleText.test' +import UIComponentTextCommonTextStyleSpan from './UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleSpan.test' import UIComponentLayoutColumnInterface from './UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); + UIAttributeFontInterfaceColor(); + UIAttributeFontInterfaceFontFamily(); UIAttributeFontInterfaceSize(); UIAttributeFontInterfaceStyle(); UIAttributeFontInterfaceWeight(); + UIAttributeFontSupportStageAttrs(); + UIAttributeFontSupportStageComponent(); + UIComponentDividerBlankInterfaceColor(); + UIComponentDividerBlankInterfaceMin(); + UIComponentTextCommonTextStyleTextArea(); + UIComponentTextCommonTextStyleText(); + UIComponentTextCommonTextStyleSpan(); UIComponentLayoutColumnInterface(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceColor.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceColor.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..82da961a1d50a460c920e28b7c42507cee222415 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceColor.test.ets @@ -0,0 +1,100 @@ +/* + * 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 UIAttributeFontInterfaceColor() { + + describe('UIAttributeFontInterfaceColor', () => { + 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_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010 + * @tc.desc set font color to blue + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0020 + * @tc.desc set font color to yellow + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0030 + * @tc.desc set font color to pink by resource + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0040 + * @tc.desc set font color to pink + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0040 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceFontFamily.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceFontFamily.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..97c1bf341213197102fbf98120d75cb99553fdd4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontInterfaceTest/UIAttributeFontInterfaceFontFamily.test.ets @@ -0,0 +1,100 @@ +/* + * 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 UIAttributeFontInterfaceFontFamily() { + + describe('UIAttributeFontInterfaceFontFamily', () => { + 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_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0050 + * @tc.desc set fontFamily by $r('belonging.type.name') + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0060 + * @tc.desc set fontFamily to other fontFamily + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0070 + * @tc.desc set fontFamily to 'HarmonyOS Sans' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0080 + * @tc.desc set fontFamily to 'Starling Burgess' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0080 finish.`); + done() + }) + }) +} 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 index 52183178240793cce93f1db5a3c5c603560d6d6b..0369ca169530c9d6871d11ddbb64f7a34f024a32 100644 --- 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 @@ -36,6 +36,7 @@ export default function UIAttributeFontInterfaceSize() { await Utils.sleep(1000); done() }) + /* * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0090 @@ -66,6 +67,21 @@ export default function UIAttributeFontInterfaceSize() { done() }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0110 + * @tc.desc set fontSize by resource + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0011', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0011 start.`); + Settings.createWindow("testability/pages/UIAttributeFontInterface/UIAttributeFontInterface011") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010 finish.`); + done() + }) + /* * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0120 diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageAttrs.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageAttrs.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c919a9747f68f601f58939adc0cd85a03d6efa1b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageAttrs.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 UIAttributeFontSupportStageAttrs() { + + describe('UIAttributeFontSupportStageAttrs', () => { + 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_SUPPORTSTAGE_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0060 + * @tc.desc Set the registered custom font with the attribute of size 20 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0070 + * @tc.desc Set the registered custom font with the attribute of weight 30 + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0080 + * @tc.desc Set the registered custom font with the attribute of color yellow + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0080 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageComponent.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageComponent.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..594f47d1b14350e9496c558dfe95e8b3a223ed69 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributeFontSupportStageTest/UIAttributeFontSupportStageComponent.test.ets @@ -0,0 +1,145 @@ +/* + * 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 UIAttributeFontSupportStageComponent() { + + describe('UIAttributeFontSupportStageComponent', () => { + 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_SUPPORTSTAGE_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0010 + * @tc.desc Set the registered custom font in text Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0020 + * @tc.desc Set the registered custom font in button Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0030 + * @tc.desc Set the registered custom font in TextArea Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0040 + * @tc.desc Set the registered custom font in span Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0050 + * @tc.desc Set the registered custom font in TextInput Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 + * @tc.desc Set the registered custom font in menu Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0100 + * @tc.desc Set the registered custom font in search Component + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceColor.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceColor.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..8da401f98b0770e4cb99a169ad7d838d24a24cef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceColor.test.ets @@ -0,0 +1,70 @@ +/* + * 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 UIComponentDividerBlankInterfaceColor() { + + describe('UIComponentDividerBlankInterfaceColor', () => { + 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_COMPONENT_DIVIDER_BLANK_INTERFACE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0090 + * @tc.desc don't set the color of blank + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0100 + * @tc.desc set the color of blank twice, first yellow, second blue + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0100 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceMin.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceMin.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..808f3a510eb69ba348683953142d844325942670 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentDividerBlankInterfaceTest/UIComponentDividerBlankInterfaceMin.test.ets @@ -0,0 +1,175 @@ +/* + * 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 UIComponentDividerBlankInterfaceMin() { + + describe('UIComponentDividerBlankInterfaceMin', () => { + 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_COMPONENT_DIVIDER_BLANK_INTERFACE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0120 + * @tc.desc set min of blank to '50lpx' + */ + it('SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_SUPPORTSTAGE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0130 + * @tc.desc set min of blank to '50px' + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0130 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0140 + * @tc.desc set min of blank to '50vp' + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface014") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0140 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0150 + * @tc.desc set min of blank to '100vp', color to yellow + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0150 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0160 + * @tc.desc set min of blank to '-20', color to yellow. The spacing is 0. + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0160 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0170 + * @tc.desc set min of blank to '50%', color to yellow. The spacing is 0. + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0170 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0190 + * @tc.desc set min of blank to 100, width to 50. The spacing is 100vp. + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0190 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200 + * @tc.desc set min of blank to '50fp', color to yellow. The spacing is 50fp. + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0220 + * @tc.desc set width of blank to 50, don't set the width of row + */ + it('SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_DIVIDER_BLANK_INTERFACE_0220 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleSpan.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleSpan.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4da0b3707553ee0437a5d91e546b08a69479fdd6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleSpan.test.ets @@ -0,0 +1,433 @@ +/* + * 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' +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' +import { KeyboardAvoidMode } from '@ohos.arkui.UIContext' + +export default function UIComponentTextCommonTextStyleSpan() { + + describe('UIComponentTextCommonTextStyleSpan', () => { + 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_COMPONENT_TEXT_COMMON_TEXTSTYLE_1590 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1590 + * @tc.desc set decoration of Span to Underline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1590 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle159") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1590 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1600 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1600 + * @tc.desc set decoration of Span to LineThrough + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1600 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle160") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1600 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1610 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1610 + * @tc.desc set decoration of Span to OverLine + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1610 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle161") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1610 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1620 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1620 + * @tc.desc set decoration of Span to None + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1620 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle162") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1620 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1630 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1630 + * @tc.desc set font of Span to {size:20,weight:FontWeight.Bolder,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1630 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle163") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1630 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1640 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1640 + * @tc.desc set lineHeight of Span to 30 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1640 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle164") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1640 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1650 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1650 + * @tc.desc set fontSize of Span to 20 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1650 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle165") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1650 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1660 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1660 + * @tc.desc set fontSize of Span to '11px' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1660 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle166") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1660 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1670 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1670 + * @tc.desc set fontSize of Span to $r('app.string.size_30') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1670 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle167") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1670 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1680 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1680 + * @tc.desc set fontStyle of Span to normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1680 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle168") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1680 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1690 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1690 + * @tc.desc set fontStyle of Span to Italic + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1690 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle169") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1690 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1700 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1700 + * @tc.desc set fontWeight of Span to Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1700 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle170") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1700 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1710 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1710 + * @tc.desc set fontWeight of Span to Lighter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1710 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle171") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1710 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1720 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1720 + * @tc.desc set fontWeight of Span to Regular + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1720 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle172") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1720 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1730 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1730 + * @tc.desc set fontWeight of Span to Medium + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1730 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle173") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1730 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1740 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1740 + * @tc.desc set fontWeight of Span to Bold + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1740 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle174") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1740 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1750 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1750 + * @tc.desc set fontWeight of Span to Bolder + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1750 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle175") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1750 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1760 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1760 + * @tc.desc set fontFamily of Span to 'HarmonyOS-Sans' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1760 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle176") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1760 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1770 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1770 + * @tc.desc set fontColor of Span to Color.blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1770 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle177") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1770 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1780 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1780 + * @tc.desc set fontColor of Span to 0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1780 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle178") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1780 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1790 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1790 + * @tc.desc set fontColor of Span to 'rgb(255,100,255)' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1790 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle179") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1790 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1800 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1800 + * @tc.desc set fontColor of Span to $r('app.string.color_yellow') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1800 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle180") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1800 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1810 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1810 + * @tc.desc set letterSpacing of Span to 5 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1810 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1810 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1820 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1820 + * @tc.desc set textCase of Span to Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1820 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1820 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1830 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1830 + * @tc.desc set textCase of Span to LowerCase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1830 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1830 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1840 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1840 + * @tc.desc set textCase of Span to UpperCase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1840 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1840 finish.`); + done() + }) + + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleText.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleText.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..99751e75e4ab66ae84132accff29b3e2e7a5c89a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleText.test.ets @@ -0,0 +1,553 @@ +/* + * 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' +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' +import { KeyboardAvoidMode } from '@ohos.arkui.UIContext' + +export default function UIComponentTextCommonTextStyleText() { + + describe('UIComponentTextCommonTextStyleText', () => { + 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_COMPONENT_TEXT_COMMON_TEXTSTYLE_1210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1210 + * @tc.desc set decoration of Text to underline + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1210 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle121") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1210 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1220 + * @tc.desc set decoration of Text to LineThrough + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1220 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle122") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1220 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1230 + * @tc.desc set decoration of Text to OverLine + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1230 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle123") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1230 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1240 + * @tc.desc set decoration of Text to None + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1240 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle124") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1240 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1250 + * @tc.desc set fontSize of Text to 20 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1250 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle125") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1250 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1260 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1260 + * @tc.desc set fontSize of Text to '11px' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1260 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle126") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1260 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1270 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1270 + * @tc.desc set fontSize of Text to $r('app.string.size_30') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1270 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle127") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1270 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1280 + * @tc.desc set fontStyle of Text to normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1280 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle128") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1290 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1290 + * @tc.desc set fontStyle of Text to Italic + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1290 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle129") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1290 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1300 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1300 + * @tc.desc set fontWeight of Text to Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1300 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle130") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1300 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1310 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1310 + * @tc.desc set fontWeight of Text to Lighter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1310 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle131") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1310 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1320 + * @tc.desc set fontWeight of Text to Regular + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1320 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle132") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1320 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1330 + * @tc.desc set fontWeight of Text to Medium + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1330 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle133") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1330 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1340 + * @tc.desc set fontWeight of Text to Bold + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1340 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle134") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1340 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1350 + * @tc.desc set fontWeight of Text to Bolder + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1350 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle135") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1350 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1360 + * @tc.desc set fontFamily of Text to HarmonyOS-Sans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1360 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle136") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1360 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1370 + * @tc.desc set textShadow of Text to {radius:10,color:Color.Black,offsetX:0,offsetY:0} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1370 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle137") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1370 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1380 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1380 + * @tc.desc set heightAdaptivePolicy of Text to MAX_LINES_FIRST + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1380 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle138") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1380 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1390 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1390 + * @tc.desc set heightAdaptivePolicy of Text to MIN_FONT_SIZE_FIRST + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1390 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle139") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1390 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1400 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1400 + * @tc.desc set heightAdaptivePolicy of Text to LAYOUT_CONSTRAINT_FIRST + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1400 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle140") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1400 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1410 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1410 + * @tc.desc set textIndent of Text to 2 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1410 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle141") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1410 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1420 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1420 + * @tc.desc set minFontSize of Text to 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1420 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle142") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1420 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1430 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1430 + * @tc.desc set minFontSize of Text to 30 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1430 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle143") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1430 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1440 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1440 + * @tc.desc set lineHeight of Text to 30 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1440 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle144") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1440 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1490 + * @tc.desc set textOverflow of Text to None + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1490 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle149") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1490 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1500 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1500 + * @tc.desc set textOverflow of Text to Clip + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1500 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle150") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1500 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1510 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1510 + * @tc.desc set textOverflow of Text to Ellipsis + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1510 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle151") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1510 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1520 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1520 + * @tc.desc set textOverflow of Text to MARQUEE + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1520 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle152") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1520 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1530 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1530 + * @tc.desc set maxLines of Text to 4 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1530 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle153") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1530 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1540 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1540 + * @tc.desc set letterSpacing of Text to 5 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1540 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle154") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1540 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1550 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1550 + * @tc.desc set baselineOffset of Text to 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1550 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle155") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1550 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1560 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1560 + * @tc.desc set textCase of Text to Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1560 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle156") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1560 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1570 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1570 + * @tc.desc set textCase of Text to LowerCase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1570 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle157") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1570 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1580 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1580 + * @tc.desc set textCase of Text to UpperCase + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1580 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle158") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1580 finish.`); + done() + }) + + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleTextArea.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleTextArea.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c38681f60470ca305511b05891fddeea4d785c1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleTextArea.test.ets @@ -0,0 +1,432 @@ +/* + * 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' +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' +import { KeyboardAvoidMode } from '@ohos.arkui.UIContext' + +export default function UIComponentTextCommonTextStyleTextArea() { + + describe('UIComponentTextCommonTextStyleTextArea', () => { + 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_COMPONENT_TEXT_COMMON_TEXTSTYLE_0850 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0850 + * @tc.desc set maxLength of TextArea to 10 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0850 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle085") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0850 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0860 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0860 + * @tc.desc set placeholderFont of TextArea to { size: 20, weight: FontWeight.Bolder,family:'Arial, HarmonyOS Sans' ,style:FontStyle.Italic} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0860 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle086") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0860 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0870 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0870 + * @tc.desc set placeholderColor of TextArea to Color. Blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0870 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle087") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0870 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0880 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0880 + * @tc.desc set placeholderColor of TextArea to 0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0880 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle088") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0880 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0890 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0890 + * @tc.desc set placeholderColor of TextArea to rgb(255, 100, 255) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0890 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle089") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0890 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0900 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0900 + * @tc.desc set placeholderColor of TextArea to $r('app.string.color_yellow') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0900 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle090") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0900 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0950 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0950 + * @tc.desc set textAlign of TextArea to Start + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0950 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle095") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0950 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0960 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0960 + * @tc.desc set textAlign of TextArea to center + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0960 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle096") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0960 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0970 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0970 + * @tc.desc set textAlign of TextArea to End + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0970 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle097") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0970 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0980 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0980 + * @tc.desc set fontColor of TextArea to Color. Blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0980 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle098") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0980 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0990 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0990 + * @tc.desc set fontColor of TextArea to 0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0990 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle099") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0990 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1000 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1000 + * @tc.desc set fontColor of TextArea to rgb(255, 100, 255) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1000 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle100") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1000 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1010 + * @tc.desc set fontColor of TextArea to $r('app.string.color_yellow') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1010 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle101") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1020 + * @tc.desc set fontSize of TextArea to 20 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1020 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle102") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1030 + * @tc.desc set fontSize of TextArea to '11px' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1030 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle103") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1040 + * @tc.desc set fontSize of TextArea to $r('app.string.size_30') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1040 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle104") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1050 + * @tc.desc set fontStyle of TextArea to normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1050 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle105") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1060 + * @tc.desc set fontStyle of TextArea to Italic + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1060 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle106") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1070 + * @tc.desc set fontWeight of TextArea to FontWeight.Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1070 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle107") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1080 + * @tc.desc set fontWeight of TextArea to FontWeight.Lighter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1080 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle108") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1090 + * @tc.desc set fontWeight of TextArea to FontWeight.Regular + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1090 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle109") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1100 + * @tc.desc set fontWeight of TextArea to FontWeight.Medium + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1100 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle110") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1110 + * @tc.desc set fontWeight of TextArea to FontWeight.Bold + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1110 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle111") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1110 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1120 + * @tc.desc set fontWeight of TextArea to FontWeight.Bolder + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1120 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle112") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1130 + * @tc.desc set fontFamily of TextArea to HarmonyOS-Sans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1130 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle113") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1130 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1140 + * @tc.desc set inputFilter of TextArea to '[A-Z]', (value: string) => { console.info("testtest" + value) } + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1140 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle114") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1140 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/font/pristina.ttf b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/font/pristina.ttf new file mode 100644 index 0000000000000000000000000000000000000000..8740c67b56795c23c45283414d58bcdfbd0eed24 Binary files /dev/null and b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/font/pristina.ttf differ diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface002.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebe5aa4f5692d011cb273299678017af7a08b79d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface002.ets @@ -0,0 +1,35 @@ +/* + * 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 UIAttributeFontInterface002 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(20) + .fontColor(0xffff00) + .margin({ top: 20 }) + .key('UIAttributeFontInterface002_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/UIAttributeFontInterface003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface003.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7650fb89fe4b473a8f931ace785e1cfe64d6fd0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface003.ets @@ -0,0 +1,35 @@ +/* + * 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 UIAttributeFontInterface003 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(20) + .fontColor($r('app.color.Pink')) + .margin({ top: 20 }) + .key('UIAttributeFontInterface003_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/UIAttributeFontInterface004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface004.ets new file mode 100644 index 0000000000000000000000000000000000000000..80e99e8d8c865c53adef7b2eebaf9c0daa23d904 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface004.ets @@ -0,0 +1,35 @@ +/* + * 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 UIAttributeFontInterface004 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(20) + .fontColor(0xffc0cb) + .margin({ top: 20 }) + .key('UIAttributeFontInterface004_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/UIAttributeFontInterface005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface005.ets new file mode 100644 index 0000000000000000000000000000000000000000..6a64f754487db196ee0e0b7026958eccf52296be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface005.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontInterface005 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily($r('app.string.Font_pristina')) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface006.ets new file mode 100644 index 0000000000000000000000000000000000000000..4d6a3ce61ca4e62745e1f4e975a97b0a58d2f3e2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface006.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontInterface006 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'../font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface007.ets new file mode 100644 index 0000000000000000000000000000000000000000..86e24afbdc251f7ddec73522b87ae06a42c13319 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface007.ets @@ -0,0 +1,29 @@ +/* + * 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 UIAttributeFontInterface007 { + @State message: string = 'Hello' + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('HarmonyOS Sans') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface008.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5ea223579ad1b2e70135aa2cab5d1614af886ad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface008.ets @@ -0,0 +1,29 @@ +/* + * 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 UIAttributeFontInterface008 { + @State message: string = 'Hello' + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('Starling Burgess') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface011.ets new file mode 100644 index 0000000000000000000000000000000000000000..618818ed4f6d12921c56269d94706b911d5ebe9a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontInterface/UIAttributeFontInterface011.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 UIAttributeFontInterface011 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + Text(this.message) + .fontSize($r('app.string.Font_size')) + .margin({ top: 20 }) + .key('UIAttributeFontInterface011_001') + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage001.ets new file mode 100644 index 0000000000000000000000000000000000000000..26eb6843d5fe964c038ec1ec8baefd7a13f40a80 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage001.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage001 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage002.ets new file mode 100644 index 0000000000000000000000000000000000000000..39aa638b687b239f6f81bba97698f18944cf2c71 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage002.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. + */ +import font from '@ohos.font'; +@Entry +@Component +struct UIAttributeFontSupportStage002 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Button(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage003.ets new file mode 100644 index 0000000000000000000000000000000000000000..ed3db6a497722ba24f4f0bdba49ddb18d3c005e8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage003.ets @@ -0,0 +1,39 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage003 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + TextArea({ + text:this.message + }) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage004.ets new file mode 100644 index 0000000000000000000000000000000000000000..7a4b9f44a8c772d47fc02cb82c9e228dfd8c55f5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage004.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; +@Entry +@Component +struct UIAttributeFontSupportStage004 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text() { + Span(this.message) + .fontSize(20) + .fontFamily('pristina') + } + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage005.ets new file mode 100644 index 0000000000000000000000000000000000000000..0de2d52e5e3814073c50aff355a054820faac960 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage005.ets @@ -0,0 +1,39 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage005 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + TextInput({ + text:this.message + }) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage006.ets new file mode 100644 index 0000000000000000000000000000000000000000..226135f16c16ab6ad146fb17c579853b817566ad --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage006.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage006 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontSize(20) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage007.ets new file mode 100644 index 0000000000000000000000000000000000000000..8901aca52a6cd8768fdcd7bdd16f06ff1ad32481 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage007.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. + */ +import font from '@ohos.font'; +@Entry +@Component +struct UIAttributeFontSupportStage007 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontWeight(30) + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage008.ets new file mode 100644 index 0000000000000000000000000000000000000000..402b0c737b530945326156e7eb90fbf472f210a4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage008.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage008 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Text(this.message) + .align(Alignment.Center) + .fontColor('#FFD700') + .fontFamily('pristina') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage009.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6161accaae223b172ee5dde71787aa8f12f2f5c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage009.ets @@ -0,0 +1,37 @@ +/* + * 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 font from '@ohos.font'; +@Entry +@Component +struct UIAttributeFontSupportStage009 { + @State message: string = 'Hello' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Menu() { + MenuItem({ startIcon: $r("app.media.icon"),content: "Hello" }) + } + .font({family:'pristina'}) + .width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage010.ets new file mode 100644 index 0000000000000000000000000000000000000000..9cb99f6e23fb83a257585940c6e2b83fc5caa027 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage010.ets @@ -0,0 +1,35 @@ +/* + * 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 font from '@ohos.font'; + +@Entry +@Component +struct UIAttributeFontSupportStage010 { + @State message: string = 'please input a date' + + aboutToAppear() { + font.registerFont({ + familyName:'pristina', + familySrc:'/font/pristina.ttf' + }) + } + + build() { + Column() { + Search({placeholder:this.message}) + .placeholderFont({family:'pristina'}) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface009.ets new file mode 100644 index 0000000000000000000000000000000000000000..21a0cb8d9fb2a14dca89fb221be74027f959993b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface009.ets @@ -0,0 +1,28 @@ +/* + * 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 UIComponentDividerBlankInterface009 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank(50) + Text(this.message) + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface010.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d1f45c6ab01a7437f6388cdbb1c40820da95d00 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface010.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface010 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank(50) + .color(Color.Yellow) + .color(Color.Blue) + Text(this.message) + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface012.ets new file mode 100644 index 0000000000000000000000000000000000000000..353a9ac6e6c7636e33a5ba3227c471c38622ffe3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface012.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface012 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank('50lpx') + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface013.ets new file mode 100644 index 0000000000000000000000000000000000000000..70d19404e9322f4f48f4a125e68bd323c22218f8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface013.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface013 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank('50px') + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface014.ets new file mode 100644 index 0000000000000000000000000000000000000000..49f6265c42039fb55f4dff258970ba1bcf689a9d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface014.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface014 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank('50vp') + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface015.ets new file mode 100644 index 0000000000000000000000000000000000000000..5b33cc4170bef12a810d6a9e14ff4c1aaf51469f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface015.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface015 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank(100) + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface016.ets new file mode 100644 index 0000000000000000000000000000000000000000..d09f98cbaadc8030f6748c1f7d2a11da9fa40f48 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface016.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface016 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank(-20) + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface017.ets new file mode 100644 index 0000000000000000000000000000000000000000..79787d0b4ce98d24d5a21ae970a3fc9771e6ec17 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface017.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface017 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank('50%') + .color(Color.Yellow) + Text(this.message) + + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface019.ets new file mode 100644 index 0000000000000000000000000000000000000000..6586aa32e624d5a8a574f38312478caaf1536495 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface019.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface019 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank(100) + .color(Color.Yellow) + .width(50) + Text(this.message) + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface020.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba1f276dd98e16dd2134b51c9f9789662c1bbf02 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface020.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentDividerBlankInterface020 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank('50fp') + .color(Color.Yellow) + Text(this.message) + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface022.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a065926c664b4f374aca075a26daf2571fcb407 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface022.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentDividerBlankInterface022 { + @State message: string = 'Hello' + build() { + Row() { + Text(this.message) + Blank() + .color(Color.Yellow) + .width(50) + Text(this.message) + }.justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle085.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle085.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b414c0abaef3e61b3bf78cd5d46e8cec1bd946d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle085.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 UIComponentTextCommonTextStyle085 { + @State text: string = '12345678912' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .maxLength(10) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle086.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle086.ets new file mode 100644 index 0000000000000000000000000000000000000000..2e02ef70d8e75d71e6e909569879dacaad773955 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle086.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 UIComponentTextCommonTextStyle086 { + @State text: string = '' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .placeholderFont({ size: 20, weight: FontWeight.Bolder,family:'Arial, HarmonyOS Sans' ,style:FontStyle.Italic}) + .id('TextArea') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle087.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle087.ets new file mode 100644 index 0000000000000000000000000000000000000000..332fef4fd9e4c7984f1a32909ca2d40b70fe522c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle087.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 UIComponentTextCommonTextStyle087 { + @State text: string = '' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .placeholderColor(Color.Blue) + .id('TextArea') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle088.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle088.ets new file mode 100644 index 0000000000000000000000000000000000000000..1014bb79fea4546ee46f8d83e75b98d707a6cfe2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle088.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle088 { + @State text: string = '' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .placeholderColor(0xffffff) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle089.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle089.ets new file mode 100644 index 0000000000000000000000000000000000000000..aee8656eb11193b972015ddca553a776c6cb0091 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle089.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle089 { + @State text: string = '' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .placeholderColor('rgb(255, 100, 255)') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle090.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle090.ets new file mode 100644 index 0000000000000000000000000000000000000000..1644374b434df9721586d2f5c1bf513cf333d2c2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle090.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle090 { + @State text: string = '' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .placeholderColor($r('app.string.color_yellow')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle095.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle095.ets new file mode 100644 index 0000000000000000000000000000000000000000..cbedf7d72668f79895bf2280b54c6293647b0f49 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle095.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle095 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .textAlign(TextAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle096.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle096.ets new file mode 100644 index 0000000000000000000000000000000000000000..44b48ede419b74dd097b38935316b2cc06765ba8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle096.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle096 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .textAlign(TextAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle097.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle097.ets new file mode 100644 index 0000000000000000000000000000000000000000..84de74de8e086429ab0e89da96d1ef1064a7b9dd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle097.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle097 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .textAlign(TextAlign.End) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle098.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle098.ets new file mode 100644 index 0000000000000000000000000000000000000000..470ea2778c402777d043226d2f114884e6f760b6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle098.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle098 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontColor(Color.Blue) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle099.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle099.ets new file mode 100644 index 0000000000000000000000000000000000000000..737e4b66d8902cb0d6062450519d71887efd5e1f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle099.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle099 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontColor(0xffffff) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle100.ets new file mode 100644 index 0000000000000000000000000000000000000000..6932bb1ba4f37ff5b62469af528b3dd8fb3ea20b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle100.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle100 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontColor('rgb(255,100,255)') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle101.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle101.ets new file mode 100644 index 0000000000000000000000000000000000000000..b825f2b2f0014d9b81f3e7d0e01f49d5bafaac75 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle101.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle101 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontColor($r('app.string.color_yellow')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle102.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle102.ets new file mode 100644 index 0000000000000000000000000000000000000000..6c07cc47431b5db3462077fd7aa162fb57e9ec0e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle102.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle102 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontSize(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle103.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle103.ets new file mode 100644 index 0000000000000000000000000000000000000000..c712074e8f7d112c39910d21a133568b643d1d23 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle103.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle103 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontSize('11px') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle104.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle104.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c3313c3f6044c016b5ad2295fc8d6f8e392d520 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle104.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle104 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontSize($r('app.string.size_30')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle105.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle105.ets new file mode 100644 index 0000000000000000000000000000000000000000..50ac53c1c15658dc0989f78d4e3488a211ed8658 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle105.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle105 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontStyle(FontStyle.Normal) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle106.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle106.ets new file mode 100644 index 0000000000000000000000000000000000000000..412aa737a8421157987f615beb6f0e9b14159318 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle106.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle106 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontStyle(FontStyle.Italic) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle107.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle107.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ba0ce1b1392df15f028eed55c032cdd05ad911a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle107.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle107 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Normal) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle108.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle108.ets new file mode 100644 index 0000000000000000000000000000000000000000..b51dce89c5023b38314bb2509391edefc553549f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle108.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle108 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Lighter) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle109.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle109.ets new file mode 100644 index 0000000000000000000000000000000000000000..d1e51c06bc26175a674fa2408101b09c377301f7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle109.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle109 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Regular) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle110.ets new file mode 100644 index 0000000000000000000000000000000000000000..2fea9c8e1544c268b97d0f9054065d5096710f63 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle110.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle110 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Medium) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle111.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle111.ets new file mode 100644 index 0000000000000000000000000000000000000000..62848ed736db72dfa1ec4751427fb61f55cd7ef9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle111.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle111 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Bold) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle112.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle112.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e1d83f56ce1cf3ef0eaad46dfa8acd5ef28da27 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle112.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle112 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontWeight(FontWeight.Bolder) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle113.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle113.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a52636c2a3c902328da7669899c8790d640b28b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle113.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle113 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .fontFamily('HarmonyOS-Sans') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle114.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle114.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c0f10ea68585a0f46414631422edaa6bc72053b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle114.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle114 { + @State text: string = 'Hello我&78' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + TextArea({ + text: this.text, + placeholder: 'The text area can hold an unlimited amount of text. input your word...' + }) + .inputFilter('[A-Z]', (value: string) => { console.info("testtest" + value) }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle121.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle121.ets new file mode 100644 index 0000000000000000000000000000000000000000..0376df4739b11254c8a51d14ecd643746f11aaf5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle121.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle121 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .decoration({ + type: TextDecorationType.Underline, + color: Color.Blue + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle122.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle122.ets new file mode 100644 index 0000000000000000000000000000000000000000..78d5b223089e7795aa42ca24725e0dbeeb683f21 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle122.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle122 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .decoration({ + type: TextDecorationType.LineThrough, + color: Color.Blue + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle123.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle123.ets new file mode 100644 index 0000000000000000000000000000000000000000..62de561f0f56127b8ddc1cc825d81a2b3e3086d9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle123.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle123 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .decoration({ + type: TextDecorationType.Overline, + color: Color.Blue + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle124.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle124.ets new file mode 100644 index 0000000000000000000000000000000000000000..de5fd5669a59be2e18ae451b0649c1488892e37e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle124.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle124 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .decoration({ + type: TextDecorationType.None, + color: Color.Blue + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle125.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle125.ets new file mode 100644 index 0000000000000000000000000000000000000000..202d0aacdd4f45cc0bd221be2f2fdab00f666e8d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle125.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle125 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontSize(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle126.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle126.ets new file mode 100644 index 0000000000000000000000000000000000000000..89df21be74fd9c2f6539ccef2152533bfdc5cadb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle126.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle126 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontSize('11px') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle127.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle127.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a5e8fda247892e0bc3166950741c3a9e75d7419 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle127.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle127 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontSize($r('app.string.size_30')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle128.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle128.ets new file mode 100644 index 0000000000000000000000000000000000000000..52f4001784681705e76653d0167e0668394ef084 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle128.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle128 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontStyle(FontStyle.Normal) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle129.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle129.ets new file mode 100644 index 0000000000000000000000000000000000000000..d70ed61400d5d63d39d545236cd60601082930cf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle129.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle129 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontStyle(FontStyle.Italic) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle130.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle130.ets new file mode 100644 index 0000000000000000000000000000000000000000..f45c9f7e534e162ea4e8d0c80ac3012f033d71cc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle130.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle130 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Normal) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle131.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle131.ets new file mode 100644 index 0000000000000000000000000000000000000000..9327bba917fa3067d935ad1c34ab0fa85594e156 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle131.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle131 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Lighter) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle132.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle132.ets new file mode 100644 index 0000000000000000000000000000000000000000..07206192d83ddb54aa1148e8b1083506ea680d51 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle132.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle132 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Regular) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle133.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle133.ets new file mode 100644 index 0000000000000000000000000000000000000000..97746cca0b355cfcf3e0ca84e3453e7ae7bbe498 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle133.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle133 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Medium) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle134.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle134.ets new file mode 100644 index 0000000000000000000000000000000000000000..b814a821ddb4ee5d6102c56f201212088934498d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle134.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle134 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Bold) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle135.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle135.ets new file mode 100644 index 0000000000000000000000000000000000000000..62488ff2021cac4eeb199942a423e56bc4fa04cd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle135.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle135 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontWeight(FontWeight.Bolder) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle136.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle136.ets new file mode 100644 index 0000000000000000000000000000000000000000..adac9e3fd58403727571bd10e16917b3611a81a5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle136.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle136 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .fontFamily('HarmonyOS-Sans') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle137.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle137.ets new file mode 100644 index 0000000000000000000000000000000000000000..003163fca56407ec8eeea504da931705e56887b1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle137.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle137 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textShadow({radius:10,color:Color.Black,offsetX:0,offsetY:0}) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle138.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle138.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0f86884911612b1051ae10f05a1bff15a301a26 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle138.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 UIComponentTextCommonTextStyle138 { + @State text: string = 'This is the text with the height adaptive policy set' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .heightAdaptivePolicy(TextHeightAdaptivePolicy.MAX_LINES_FIRST) + .minFontSize(10) + .maxFontSize(30) + .maxLines(5) + .height(90) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle139.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle139.ets new file mode 100644 index 0000000000000000000000000000000000000000..0cc438b6155ffeadc6593c73eb1342d54a966fcd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle139.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 UIComponentTextCommonTextStyle139 { + @State text: string = 'This is the text with the height adaptive policy set' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .heightAdaptivePolicy(TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST) + .minFontSize(10) + .maxFontSize(30) + .height(90) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle140.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle140.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f2864dd91818d918f2085ad9b86ad6ae5c55f15 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle140.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 UIComponentTextCommonTextStyle140 { + @State text: string = 'This is the text with the height adaptive policy set' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .heightAdaptivePolicy(TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST) + .minFontSize(10) + .maxFontSize(30) + .height(90) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle141.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle141.ets new file mode 100644 index 0000000000000000000000000000000000000000..09ee8d0eae847123d1f2c44ddd6e856cad479a6b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle141.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle141 { + @State text: string = 'This is the text with the Indent set' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textIndent(2) + .borderWidth(1) + .fontSize(10) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle142.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle142.ets new file mode 100644 index 0000000000000000000000000000000000000000..c50ff8ea7da8d33df4c4885f505d1809b16a0fde --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle142.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 UIComponentTextCommonTextStyle142 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .minFontSize(10) + .maxFontSize(30) + .maxLines(3) + .height(90) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle143.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle143.ets new file mode 100644 index 0000000000000000000000000000000000000000..441f779ce4730d7a318966aeee0dd10185652f12 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle143.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 UIComponentTextCommonTextStyle143 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .minFontSize(10) + .maxFontSize(30) + .maxLines(3) + .height(90) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle144.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle144.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c018282bfce6f211c8f72dd5b8738681aa28254 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle144.ets @@ -0,0 +1,28 @@ +/* + * 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 UIComponentTextCommonTextStyle144 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .lineHeight(30) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle149.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle149.ets new file mode 100644 index 0000000000000000000000000000000000000000..0a9a85422c72ebcf94cd35e813047e791d891f86 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle149.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 UIComponentTextCommonTextStyle149 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textOverflow({overflow:TextOverflow.None}) + .maxLines(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle150.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle150.ets new file mode 100644 index 0000000000000000000000000000000000000000..36b746d297038d7b2f2f23428ec2d9573503775d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle150.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 UIComponentTextCommonTextStyle150 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textOverflow({overflow:TextOverflow.Clip}) + .maxLines(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle151.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle151.ets new file mode 100644 index 0000000000000000000000000000000000000000..620ba0fac3005f2216904be7153d8fe4b4a74c51 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle151.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 UIComponentTextCommonTextStyle151 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textOverflow({overflow:TextOverflow.Ellipsis}) + .maxLines(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle152.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle152.ets new file mode 100644 index 0000000000000000000000000000000000000000..eaf7c65a018307da94362d535b124f85b85da1c4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle152.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 UIComponentTextCommonTextStyle152 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textOverflow({overflow:TextOverflow.MARQUEE}) + .maxLines(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle153.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle153.ets new file mode 100644 index 0000000000000000000000000000000000000000..a20ffba21813bf3c3c64c580b67a69c7700a367b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle153.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 UIComponentTextCommonTextStyle153 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .maxLines(4) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle154.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle154.ets new file mode 100644 index 0000000000000000000000000000000000000000..b75508996ff57e0363c37c5feaacd01bea591903 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle154.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 UIComponentTextCommonTextStyle154 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .letterSpacing(5) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle155.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle155.ets new file mode 100644 index 0000000000000000000000000000000000000000..161f45d8a7f01880314cdaf813f82e6ee11e6a07 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle155.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 UIComponentTextCommonTextStyle155 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<50;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .baselineOffset(10) + .borderWidth(1) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle156.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle156.ets new file mode 100644 index 0000000000000000000000000000000000000000..0a7a14bcce190edd8ce26f8d2b55d6d0254ee544 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle156.ets @@ -0,0 +1,28 @@ +/* + * 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 UIComponentTextCommonTextStyle156 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textCase(TextCase.Normal) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle157.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle157.ets new file mode 100644 index 0000000000000000000000000000000000000000..6de749cbcb9c013749d6f9c71c78e6ece8155df6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle157.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle157 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textCase(TextCase.LowerCase) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle158.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle158.ets new file mode 100644 index 0000000000000000000000000000000000000000..7234366e1b877b748657d5d06771e8a694be402d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle158.ets @@ -0,0 +1,27 @@ +/* + * 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 UIComponentTextCommonTextStyle158 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(this.text) + .textCase(TextCase.UpperCase) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle159.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle159.ets new file mode 100644 index 0000000000000000000000000000000000000000..4662ef3c27d603f13b59a9cbcaae66b177ecbd58 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle159.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle159 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .decoration({type:TextDecorationType.Underline}) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle160.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle160.ets new file mode 100644 index 0000000000000000000000000000000000000000..3a1662740c301217fef7e7b57cea374475aced7b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle160.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle160 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .decoration({type:TextDecorationType.LineThrough}) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle161.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle161.ets new file mode 100644 index 0000000000000000000000000000000000000000..1298b4eae752f8f3d27d9d0be1c78152bb060b20 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle161.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle161 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .decoration({type:TextDecorationType.Overline}) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle162.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle162.ets new file mode 100644 index 0000000000000000000000000000000000000000..1bbd63b9d95c576e775fed632793a3a91abff5e5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle162.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle162 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .decoration({type:TextDecorationType.None}) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle163.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle163.ets new file mode 100644 index 0000000000000000000000000000000000000000..018ab80d049c93a83421f3af23a63a3b75e5f2f9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle163.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle163 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .font({size:20,weight:FontWeight.Bolder,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle164.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle164.ets new file mode 100644 index 0000000000000000000000000000000000000000..ea558891a33705270019dce0aae4be569d6c2262 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle164.ets @@ -0,0 +1,30 @@ +/* + * 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 UIComponentTextCommonTextStyle164 { + @State text: string = 'Hello\nHello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .lineHeight(30) + .borderWidth(1) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle165.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle165.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ef0b0fc83fee92111a85710909317c10b6e0cd8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle165.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle165 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontSize(20) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle166.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle166.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c057b3145cbb4f11197c1aeca06c84498b69126 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle166.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle166 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontSize('11px') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle167.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle167.ets new file mode 100644 index 0000000000000000000000000000000000000000..b9bc84538cdf48c34464862b739720ddea150f7b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle167.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle167 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontSize($r('app.string.size_30')) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle168.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle168.ets new file mode 100644 index 0000000000000000000000000000000000000000..a43e91958d162a00b986f5491430566154ffb359 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle168.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle168 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontStyle(FontStyle.Normal) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle169.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle169.ets new file mode 100644 index 0000000000000000000000000000000000000000..43af261b03fe4380201e20376a1512c06001918c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle169.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle169 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontStyle(FontStyle.Italic) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle170.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle170.ets new file mode 100644 index 0000000000000000000000000000000000000000..f9d0b6bba2cac8ed6cd1502cda765f149d937e93 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle170.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle170 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Normal) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle171.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle171.ets new file mode 100644 index 0000000000000000000000000000000000000000..3fdf105d107744067451164825e07767778397af --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle171.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle171 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Lighter) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle172.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle172.ets new file mode 100644 index 0000000000000000000000000000000000000000..9425bd9855f03207d87fd4cf4c1d543dab9e9b7a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle172.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle172 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Regular) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle173.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle173.ets new file mode 100644 index 0000000000000000000000000000000000000000..c655158019bf87734a396e316b8f8db9cf208c4d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle173.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle173 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Medium) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle174.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle174.ets new file mode 100644 index 0000000000000000000000000000000000000000..342d6becc55ad80b6cbd2da38bfe14c86a4dd6ae --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle174.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle174 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Bold) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle175.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle175.ets new file mode 100644 index 0000000000000000000000000000000000000000..a56c9050b6a8375b532754ddfc427b02beb0ec35 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle175.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle175 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontWeight(FontWeight.Bolder) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle176.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle176.ets new file mode 100644 index 0000000000000000000000000000000000000000..fc9efffe95dad91dd2d74701be8315e493ee3478 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle176.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle176 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontFamily('HarmonyOS-Sans') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle177.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle177.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab75609797ed29e34fa6b9ce575c24801f02a144 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle177.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle177 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontColor(Color.Blue) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle178.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle178.ets new file mode 100644 index 0000000000000000000000000000000000000000..91f4544a95c4cff61ca11d6434320153fc1ff5e7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle178.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle178 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontColor(0xffffff) + }.backgroundColor(Color.Black) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle179.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle179.ets new file mode 100644 index 0000000000000000000000000000000000000000..c0649dbfa92acced0c9638e792c01cab5c11b362 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle179.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle179 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontColor('rgb(255,100,255)') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle180.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle180.ets new file mode 100644 index 0000000000000000000000000000000000000000..2bf8167ccdac9effd96611d75b4f75d45398d14d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle180.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle180 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .fontColor($r('app.string.color_yellow')) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181.ets new file mode 100644 index 0000000000000000000000000000000000000000..25d3250d6ee5e1d31051052bc00a22c9a6c6d0b5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181.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 UIComponentTextCommonTextStyle181 { + @State text: string = '' + aboutToAppear() { + for(let i=0;i<1000;i++){ + this.text = this.text+'123' + } + } + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .letterSpacing(5) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182.ets new file mode 100644 index 0000000000000000000000000000000000000000..38e0ac419691dc5febbbf409b714c1bd999041e7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle182 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .textCase(TextCase.Normal) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183.ets new file mode 100644 index 0000000000000000000000000000000000000000..5bfb2e3d055d5a32b691ac0366f7dd59d6416c56 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle183 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .textCase(TextCase.LowerCase) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184.ets new file mode 100644 index 0000000000000000000000000000000000000000..3a663932cfc0adc8648636ba4db40f617d154d4a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184.ets @@ -0,0 +1,29 @@ +/* + * 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 UIComponentTextCommonTextStyle184 { + @State text: string = 'Hello' + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Text(){ + Span(this.text) + .textCase(TextCase.UpperCase) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json index 3c712962da3c2751c2b9ddb53559afcbd2b54a02..5080c5f6112b2aa262078f2438dadf148986712d 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/color.json @@ -3,6 +3,10 @@ { "name": "start_window_background", "value": "#FFFFFF" + }, + { + "name": "Pink", + "value": "#ffc0cb" } ] } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json index 65d8fa5a7cf54aa3943dcd0214f58d1771bc1f6c..8cb3d994de7101e3203f848f0802ca3963acf91c 100644 --- a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -11,6 +11,22 @@ { "name": "TestAbility_label", "value": "test label" + }, + { + "name": "Font_size", + "value": "5vp" + }, + { + "name": "Font_pristina", + "value": "pristina" + }, + { + "name": "color_yellow", + "value": "#FFDDD52F" + }, + { + "name": "size_30", + "value": "30vp" } ] } \ 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 0b237d22d53f931fa552b25ba7a2487e5293c28d..25f0315c4373f23bd286038fba5d23ac27d9ca12 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 @@ -3,8 +3,16 @@ "testability/pages/Index", "testability/pages/demo", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface001", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface002", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface003", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface004", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface005", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface006", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface007", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface008", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface009", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface010", + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface011", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface012", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface013", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface014", @@ -53,6 +61,113 @@ "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028", "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029", "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030", - "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031" + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage001", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage002", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage003", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage004", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage005", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage006", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage007", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage008", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage009", + "testability/pages/UIAttributeFontSupportStage/UIAttributeFontSupportStage010", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface009", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface010", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface012", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface013", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface014", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface015", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface016", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface017", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface019", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface020", + "testability/pages/UIComponentDividerBlankInterface/UIComponentDividerBlankInterface022", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle085", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle086", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle087", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle088", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle089", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle090", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle095", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle096", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle097", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle098", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle099", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle100", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle101", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle102", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle103", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle104", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle105", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle106", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle107", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle108", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle109", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle110", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle111", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle112", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle113", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle114", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle121", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle122", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle123", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle124", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle125", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle126", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle127", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle128", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle129", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle130", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle131", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle132", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle133", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle134", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle135", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle136", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle137", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle138", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle139", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle140", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle141", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle142", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle143", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle144", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle149", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle150", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle151", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle152", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle153", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle154", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle155", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle156", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle157", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle158", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle159", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle160", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle161", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle162", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle163", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle164", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle165", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle166", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle167", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle168", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle169", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle170", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle171", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle172", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle173", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle174", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle175", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle176", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle177", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle178", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle179", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle180", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183", + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184" ] }