From ded8e82e98b79e660fa4c64b8995aa70657a58ad Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 14:51:27 +0800 Subject: [PATCH 1/6] =?UTF-8?q?column=E5=AD=90=E7=BB=84=E4=BB=B6=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UIAttributePositionInterfaceTest.test.ets | 123 ++++++++++++++++++ ...UIAttributePositionSizeLayoutTest.test.ets | 123 ++++++++++++++++++ .../UIAttributePositionSizeLayout001.ets | 30 +++++ .../UIAttributePositionSizeLayout002.ets | 34 +++++ .../UIAttributePositionSizeLayout003.ets | 37 ++++++ .../UIAttributePositionSizeLayout004.ets | 36 +++++ .../UIAttributePositionSizeLayout005.ets | 38 ++++++ .../UIAttributePositionSizeLayout006.ets | 38 ++++++ .../UIAttributePositionInterface001.ets | 41 ++++++ .../UIAttributePositionInterface002.ets | 41 ++++++ .../UIAttributePositionInterface003.ets | 41 ++++++ .../UIAttributePositionInterface004.ets | 41 ++++++ .../UIAttributePositionInterface005.ets | 41 ++++++ .../UIAttributePositionInterface006.ets | 41 ++++++ 14 files changed, 705 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets new file mode 100644 index 000000000..2fcdb156d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets @@ -0,0 +1,123 @@ +/* + * 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 UIAttributePositionInterfaceTest() { + + describe('UIAttributePositionInterfaceTest', () => { + 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_POSITION_INTERFACE_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0010 + * @tc.desc set justifyContent=FlexAlign.Center + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0020 + * @tc.desc set justifyContent=FlexAlign.End + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0030 + * @tc.desc set justifyContent=FlexAlign.SpaceAround + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0040 + * @tc.desc set justifyContent=FlexAlign.SpaceBetween + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0050 + * @tc.desc set justifyContent=FlexAlign.SpaceEvenly + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0060 + * @tc.desc set justifyContent=FlexAlign.Start + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_INTERFACE_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test.ets new file mode 100644 index 000000000..92e3b67e2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test.ets @@ -0,0 +1,123 @@ +/* + * 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 UIAttributePositionSizeLayoutTest() { + + describe('UIAttributePositionSizeLayoutTest', () => { + 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_POSITION_SIZE_LAYOUTPROPERTIES_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0010 + * @tc.desc blank and container not set + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0010 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0020 + * @tc.desc container set width and width blank not set + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0020 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0030 + * @tc.desc column.width=infinite + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0030 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0040 + * @tc.desc minSize>maxSize + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0040 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0050 + * @tc.desc minSize { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0050 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0060 + * @tc.desc minSize { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0060 start.`); + Settings.createWindow("testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_SIZE_LAYOUTPROPERTIES_0060 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets new file mode 100644 index 000000000..a0b3abda8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.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 UIAttributePositionSizeLayout001 { + build() { + Column() { + Row() { + Text('blank测试') + .fontSize(18) + Blank() + .color('#ff346cab') + } + } + .backgroundColor(0xEFEFEF) + .padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets new file mode 100644 index 000000000..32983ec03 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.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 UIAttributePositionSizeLayout002 { + build() { + Column() { + Row() { + Text('blank测试') + .fontSize(18) + .width(100) + .height(100) + Blank() + .color('#ff346cab') + } + .width(200) + .height(200) + } + .backgroundColor(0xEFEFEF) + .padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets new file mode 100644 index 000000000..d64811b8e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.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. + */ +@Entry +@Component +struct UIAttributePositionSizeLayout003 { + build() { + + Column() { + Row() { + Text('blank测试1') + .fontSize(18) + .height(1000) + Blank() + .color('#ff346cab') + } + Text('blank测试2') + .fontSize(18) + } + .height(10000) + .width(400) + .backgroundColor(0xEFEFEF) + .padding(20) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets new file mode 100644 index 000000000..e4603a60f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.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 UIAttributePositionSizeLayout004 { + build() { + Column() { + Row() { + Text('blank测试') + .fontSize(18) + Blank() + .color('#ff346cab') + } + } + .constraintSize({ + minWidth: 400, + maxWidth: 10, + minHeight:400, + maxHeight: 10 + }) + .backgroundColor(0xEFEFEF) + .padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets new file mode 100644 index 000000000..a8f8e2905 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets @@ -0,0 +1,38 @@ +/* + * 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 UIAttributePositionSizeLayout005 { + build() { + Column() { + Row() { + Text('blank测试') + .fontSize(18) + Blank() + .color('#ff346cab') + } + } + .width(200) + .height(200) + .constraintSize({ + minWidth: 10, + maxWidth: 4000, + minHeight:10, + maxHeight:4000 + }) + .backgroundColor(0xEFEFEF) + .padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets new file mode 100644 index 000000000..12bfbc82a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets @@ -0,0 +1,38 @@ +/* + * 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 UIAttributePositionSizeLayout006 { + build() { + Column() { + Row() { + Text('blank测试') + .fontSize(18) + Blank() + .color('#ff346cab') + } + } + .width(400) + .height(400) + .constraintSize({ + minWidth: 0, + maxWidth: 100, + minHeight:0, + maxHeight: 100 + }) + .backgroundColor(0xEFEFEF) + .padding(20) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001.ets new file mode 100644 index 000000000..cc7aef3b0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface002 { + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.Center) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002.ets new file mode 100644 index 000000000..c9cb32845 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface001 { + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.End) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003.ets new file mode 100644 index 000000000..2447aa4b8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface003 { + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.SpaceAround) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004.ets new file mode 100644 index 000000000..7306fffc5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface004 { + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.SpaceBetween) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005.ets new file mode 100644 index 000000000..c134c10dd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface005{ + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.SpaceEvenly) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006.ets new file mode 100644 index 000000000..e2e767db7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006.ets @@ -0,0 +1,41 @@ +/* + * 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 positioninterface006 { + build() { + Column() { + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + Flex() { + Text('hello').width('20%').height(10).backgroundColor('#ff5bdb52') + Text('world').width('20%').height(10).backgroundColor('#ff338cef') + }.width(100).height(30) + }.width(300).height(200) + .backgroundColor('#fff3ebc5') + .justifyContent(FlexAlign.Start) + + } +} \ No newline at end of file -- Gitee From 159291579874b521a0c25ca52c590bd6cdedb175 Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 15:03:27 +0800 Subject: [PATCH 2/6] =?UTF-8?q?visibility=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UIAttributePositionVisibility001.test.ets | 207 ++++++++++++++++++ .../UIAttributePositionVisibility001.ets | 29 +++ .../UIAttributePositionVisibility002.ets | 29 +++ .../UIAttributePositionVisibility003.ets | 27 +++ .../UIAttributePositionVisibility004.ets | 27 +++ .../UIAttributePositionVisibility005.ets | 45 ++++ .../UIAttributePositionVisibility006.ets | 45 ++++ .../UIAttributePositionVisibility007.ets | 45 ++++ .../UIAttributePositionVisibility008.ets | 44 ++++ .../UIAttributePositionVisibility009.ets | 37 ++++ .../UIAttributePositionVisibility0100.ets | 37 ++++ .../UIAttributePositionVisibility0110.ets | 37 ++++ .../UIAttributePositionVisibility0120.ets | 36 +++ 13 files changed, 645 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets new file mode 100644 index 000000000..a88e0b8c0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets @@ -0,0 +1,207 @@ +/* + * 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 UIVisibilityInterface001() { + + describe('UIVisibilityInterface001', () => { + 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_POSITION_VISIBILITY_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0010 + * @tc.desc column Visibility.Hidden + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0010 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0020 + * @tc.desc column Visibility.None + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0020 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0030 + * @tc.desc column Visibility.Visible + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0030 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0040 + * @tc.desc column Visibility not set + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0040 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0050 + * @tc.desc grid Visibility.Hidden + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0050 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 + * @tc.desc grid Visibility.None + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0070 + * @tc.desc grid Visibility.Visible + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0080 + * @tc.desc grid Visibility not set + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0090 + * @tc.desc list Visibility.Hidden + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0090 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0100 + * @tc.desc list Visibility.None + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0100 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0110 + * @tc.desc list Visibility.Visible + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0110 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0120 + * @tc.desc list Visibility not set + */ + it('SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0120 start.`); + Settings.createWindow("testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_POSITION_VISIBILITY_0120 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets new file mode 100644 index 000000000..a1a241eb8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.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 VisibilityExample001 { + build() { + Column() { + Column() { + Text('Hidden').fontSize(9).width('90%').fontColor(0x000000) + Row().visibility(Visibility.Hidden).width('90%').height(80).backgroundColor(0xAFEEEE) + Text('Visible').fontSize(9).width('90%').fontColor(0x000000) + Row() + .visibility(Visibility.Visible).width('90%').height(50).backgroundColor(0xff0000) + }.width('90%') + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets new file mode 100644 index 000000000..4c371cadd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.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 VisibilityExample002{ + build() { + Column() { + Column() { + Text('Hidden').fontSize(9).width('90%').fontColor(0x000000) + Row().visibility(Visibility.None).width('90%').height(80).backgroundColor(0xAFEEEE) + Text('Visible').fontSize(9).width('90%').fontColor(0x000000) + Row() + .visibility(Visibility.Visible).width('90%').height(50).backgroundColor(0xff0000) + }.width('90%') + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets new file mode 100644 index 000000000..fd6ca94c8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.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 VisibilityExample003 { + build() { + Column() { + Column() { + Text('Visible').fontSize(9).width('90%').fontColor(0x000000) + Row() + .visibility(Visibility.Visible).width('90%').height(50).backgroundColor(0xff0000) + }.width('90%') + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets new file mode 100644 index 000000000..0bba26c99 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.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 VisibilityExample004{ + build() { + Column() { + Column() { + Text('Visible').fontSize(9).width('90%').fontColor(0x000000) + Row() + .width('90%').height(50).backgroundColor(0xff0000) + }.width('90%') + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets new file mode 100644 index 000000000..f20b9090a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets @@ -0,0 +1,45 @@ +/* + * 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 VisibilityExample005 { + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + Grid() { + ForEach(this.numbers, (day: string) => { + ForEach(this.numbers, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .visibility(Visibility.Hidden) + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .height(250) + + Button('next page') + + + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets new file mode 100644 index 000000000..73da9203d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets @@ -0,0 +1,45 @@ +/* + * 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 VisibilityExample006 { + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + Grid() { + ForEach(this.numbers, (day: string) => { + ForEach(this.numbers, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .visibility(Visibility.None) + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .height(250) + + Button('next page') + + + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets new file mode 100644 index 000000000..40a0d1da4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets @@ -0,0 +1,45 @@ +/* + * 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 VisibilityExample007 { + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + Grid() { + ForEach(this.numbers, (day: string) => { + ForEach(this.numbers, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .visibility(Visibility.Visible) + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .height(250) + + Button('next page') + + + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets new file mode 100644 index 000000000..ef0b9b8dd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets @@ -0,0 +1,44 @@ +/* + * 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 VisibilityExample008{ + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + Grid() { + ForEach(this.numbers, (day: string) => { + ForEach(this.numbers, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .height(250) + + Button('next page') + + + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets new file mode 100644 index 000000000..3ad61aea4 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.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. + */ +@Entry +@Component +struct VisibilityExample009{ + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + List() { + ForEach(this.numbers, (str: string) => { + ListItem() { + Text(str) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + } + }, (str: string) => str) + } + .width('100%') + .height(400) + .visibility(Visibility.Hidden) + Button('占位按钮') + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets new file mode 100644 index 000000000..716e88bd5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.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. + */ +@Entry +@Component +struct VisibilityExample0100{ + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + List() { + ForEach(this.numbers, (str: string) => { + ListItem() { + Text(str) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + } + }, (str: string) => str) + } + .width('100%') + .height(400) + .visibility(Visibility.None) + Button('占位按钮') + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets new file mode 100644 index 000000000..412286829 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.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. + */ +@Entry +@Component +struct VisibilityExample0110{ + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + List() { + ForEach(this.numbers, (str: string) => { + ListItem() { + Text(str) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + } + }, (str: string) => str) + } + .width('100%') + .height(400) + .visibility(Visibility.Visible) + Button('占位按钮') + } + }} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets new file mode 100644 index 000000000..c3cf58da7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.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 VisibilityExample0120{ + @State numbers: String[] = ['0', '1', '2', '3', '4'] + build() { + Column({ space: 5 }) { + List() { + ForEach(this.numbers, (str: string) => { + ListItem() { + Text(str) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + } + }, (str: string) => str) + } + .width('100%') + .height(400) + Button('占位按钮') + } + }} \ No newline at end of file -- Gitee From a7516a32e6e06a2f1d0e9b7507c68f4ae9cf8672 Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 15:11:49 +0800 Subject: [PATCH 3/6] =?UTF-8?q?textarea=E7=AD=89=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UiComponentTextCommonTextstyle.test.ets | 417 ++++++++++++++++++ .../UiComponentTextCommonTextstyle0910.ets | 32 ++ .../UiComponentTextCommonTextstyle0920.ets | 32 ++ .../UiComponentTextCommonTextstyle0930.ets | 32 ++ .../UiComponentTextCommonTextstyle0940.ets | 32 ++ .../UiComponentTextCommonTextstyle1900.ets | 44 ++ .../UiComponentTextCommonTextstyle1950.ets | 41 ++ .../UiComponentTextCommonTextstyle1960.ets | 41 ++ .../UiComponentTextCommonTextstyle1970.ets | 41 ++ .../UiComponentTextCommonTextstyle1980.ets | 41 ++ .../UiComponentTextCommonTextstyle1990.ets | 40 ++ .../UiComponentTextCommonTextstyle2000.ets | 41 ++ .../UiComponentTextCommonTextstyle2010.ets | 41 ++ .../UiComponentTextCommonTextstyle2020.ets | 41 ++ .../UiComponentTextCommonTextstyle2030.ets | 41 ++ .../UiComponentTextCommonTextstyle2090.ets | 41 ++ .../UiComponentTextCommonTextstyle2100.ets | 41 ++ .../UiComponentTextCommonTextstyle2110.ets | 41 ++ .../UiComponentTextCommonTextstyle2160.ets | 31 ++ .../UiComponentTextCommonTextstyle2170.ets | 31 ++ .../UiComponentTextCommonTextstyle2180.ets | 31 ++ .../UiComponentTextCommonTextstyle2190.ets | 31 ++ .../UiComponentTextCommonTextstyle2200.ets | 31 ++ .../UiComponentTextCommonTextstyle2210.ets | 31 ++ .../UiComponentTextCommonTextstyle2220.ets | 31 ++ .../UiComponentTextCommonTextstyle2230.ets | 31 ++ .../UiComponentTextCommonTextstyle2240.ets | 31 ++ .../UiComponentTextCommonTextstyle2250.ets | 31 ++ 28 files changed, 1390 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0910.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0920.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0930.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0940.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1900.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1950.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1960.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1970.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1980.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1990.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2000.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2030.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2090.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2100.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2110.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2160.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2170.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2180.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2190.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2200.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2210.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2220.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2230.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2240.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2250.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets new file mode 100644 index 000000000..5863dc635 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets @@ -0,0 +1,417 @@ +/* + * 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 UiComponentTextCommonTextstyle() { + describe('UiComponentTextCommonTextstyle', () => { + 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_0910 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0910 + * @tc.desc caretColor=Color. Blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0910 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle0910") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0910 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0920 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0920 + * @tc.desc caretColor=0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0920 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle0920") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0920 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0930 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0930 + * @tc.desc caretColor='rgb(255, 100, 255)' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0930 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle0930") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0930 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0940 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0940 + * @tc.desc caretColor($r('app.color.yellow')) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0940 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle0940") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_0940 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1900 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1900 + * @tc.desc search caretStyle{width: '3vp',color:0xff} + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1900 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1900") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1900 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1950 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1950 + * @tc.desc search fontColor=Color. Blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1950 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1950") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1950 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1960 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1960 + * @tc.desc search fontColor=0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1960 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1960") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1960 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1970 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1970 + * @tc.desc search fontColor='rgb(255, 100, 255)' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1970 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1970") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1970 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1980 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1980 + * @tc.desc search fontColo=0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1980 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1980") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1980 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1990 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1990 + * @tc.desc search set placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1990 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle1990") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_1990 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2000 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2000 + * @tc.desc search placeholdercolor=Color. Blue + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2000 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2000") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2000 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010 + * @tc.desc search placeholdercolor=0xffffff + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2020 + * @tc.desc search placeholdercolor='rgb(255, 100, 255)' + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2020 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2030 + * @tc.desc search placeholderColor($r('app.color.yellow')) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2010 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2030") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2090 + * @tc.desc search set textAlign(TextAlign.Start) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2090 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2090") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2100 + * @tc.desc search set textAlign(TextAlign.Center) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2100 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2100") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2110 + * @tc.desc search set textAlign(TextAlign.End) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2110 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2110") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2160 + * @tc.desc ImageSpan set objectFit(ImageFit.Contain) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2160 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2160") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2170 + * @tc.desc ImageSpan set objectFit(ImageFit.Cover) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2170 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2170") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2180 + * @tc.desc ImageSpan set objectFit(ImageFit.Auto) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2180 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2180") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2190 + * @tc.desc ImageSpan set objectFit(ImageFit.Fill) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2190 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2190") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2200 + * @tc.desc ImageSpan set objectFit(ImageFit.ScaleDown) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2200 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2200") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2200 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2210 + * @tc.desc ImageSpan set objectFit(ImageFit.None) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2210 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2210") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2210 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2220 + * @tc.desc ImageSpan set verticalAlign(ImageSpanAlignment.TOP) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2220 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2220") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2230 + * @tc.desc ImageSpan set verticalAlign(ImageSpanAlignment.CENTER) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2230 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2230") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2240 + * @tc.desc ImageSpan set verticalAlign(ImageSpanAlignment.BOTTOM) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2240 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2240") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2240 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2250 + * @tc.desc ImageSpan set verticalAlign(ImageSpanAlignment.BASELINE) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2250 start.`); + Settings.createWindow("testability/pages/UiComponentTextCommonTextstyle/UiComponentTextCommonTextstyle2250") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_TEXTSTYLE_2250 finish.`); + done() + }) + + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0910.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0910.ets new file mode 100644 index 000000000..c1f51544d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0910.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 UiComponentTextCommonTextstyle910 { + @State text: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({text: this.text, + placeholder: '多行输入文本1', + controller: this.controller}) + .placeholderFont({ size: 16, weight: 400 }) + .width(300) + .height(200) + .margin(20) + .caretColor(Color.Blue) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0920.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0920.ets new file mode 100644 index 000000000..9c7b92f8a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0920.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 UiComponentTextCommonTextstyle920 { + @State text: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({text: this.text, + placeholder: '多行输入文本1', + controller: this.controller}) + .placeholderFont({ size: 16, weight: 400 }) + .width(300) + .height(200) + .margin(20) + .caretColor(0xffffff) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0930.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0930.ets new file mode 100644 index 000000000..cf1506cda --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0930.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 UiComponentTextCommonTextstyle930 { + @State text: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({text: this.text, + placeholder: '多行输入文本1', + controller: this.controller}) + .placeholderFont({ size: 16, weight: 400 }) + .width(300) + .height(200) + .margin(20) + .caretColor('rgb(255, 100, 255)') + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0940.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0940.ets new file mode 100644 index 000000000..3800eca28 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0940.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 UiComponentTextCommonTextstyle940 { + @State text: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({text: this.text, + placeholder: '多行输入文本1', + controller: this.controller}) + .placeholderFont({ size: 16, weight: 400 }) + .width(300) + .height(200) + .margin(20) + .caretColor($r('app.color.yellow')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1900.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1900.ets new file mode 100644 index 000000000..493152a06 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1900.ets @@ -0,0 +1,44 @@ +/** + * 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 UiComponentTextCommonTextstyle001 { + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, placeholder: '请搜索', controller: this.controller }) + .searchButton('搜索') + .width('95%') + .height(40) + .caretStyle({width: '3vp', + color:0xff}) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Red) + .placeholderFont({ size: 20, weight: 300 }) + .textFont({ size: 15, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1950.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1950.ets new file mode 100644 index 000000000..c857f6d0e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1950.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle002 { + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .fontColor(Color.Blue) + .textFont({ size: 15, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1960.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1960.ets new file mode 100644 index 000000000..6de541511 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1960.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle003 { + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .fontColor(0xffffff) + .textFont({ size: 15, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1970.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1970.ets new file mode 100644 index 000000000..240baf5b3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1970.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle004 { + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .fontColor('rgb(255, 100, 255)') + .textFont({ size: 15, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1980.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1980.ets new file mode 100644 index 000000000..46e8bc83b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1980.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle005 { + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .fontColor($r('app.color.yellow')) + .textFont({ size: 15, weight: 400 }) + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1990.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1990.ets new file mode 100644 index 000000000..a93cb7441 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1990.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextCommonTextstyle006 { + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue,placeholder:"这是一个搜索框", controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2000.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2000.ets new file mode 100644 index 000000000..c3f5acad1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2000.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle007{ + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue,placeholder:"这是一个搜索框", controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .placeholderColor(Color.Blue) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2010.ets new file mode 100644 index 000000000..a431349fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2010.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle008{ + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue,placeholder:"这是一个搜索框", controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .placeholderColor(0xffffff) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2020.ets new file mode 100644 index 000000000..55a55a1ba --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2020.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle009{ + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue,placeholder:"这是一个搜索框", controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .placeholderColor('rgb(255, 100, 255)') + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2030.ets new file mode 100644 index 000000000..fb9d2e19b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2030.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle010{ + @State changeValue: string = '' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue,placeholder:"这是一个搜索框", controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .placeholderColor($r('app.color.yellow')) + .searchButton('搜索') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2090.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2090.ets new file mode 100644 index 000000000..5a4177e05 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2090.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle011{ + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .searchButton('搜索') + .width('95%') + .height(40) + .textAlign(TextAlign.Start) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2100.ets new file mode 100644 index 000000000..8a240a383 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2100.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle012{ + @State changeValue: string ='hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .searchButton('搜索') + .width('95%') + .height(40) + .textAlign(TextAlign.Center) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2110.ets new file mode 100644 index 000000000..a06879a1f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2110.ets @@ -0,0 +1,41 @@ +/** + * 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 UiComponentTextCommonTextstyle013{ + @State changeValue: string = 'hello world' + @State submitValue: string = '' + controller: SearchController = new SearchController() + build() { + Column({space: 10}) { + Text('onSubmit:' + this.submitValue) + Text('onChange:' + this.changeValue) + Search({ value: this.changeValue, controller: this.controller }) + .placeholderFont({size:16,weight:FontWeight.Bold,family:'Arial, HarmonyOS Sans',style:FontStyle.Italic}) + .searchButton('搜索') + .width('95%') + .height(40) + .textAlign(TextAlign.End) + .backgroundColor('#F5F5F5') + .onSubmit((value: string) => { + this.submitValue = value + }) + .onChange((value: string) => { + this.changeValue = value + }) + .margin(20) + }.width('100%') + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2160.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2160.ets new file mode 100644 index 000000000..2563bbb62 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2160.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 UiComponentTextCommonTextstyle014 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.Contain) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2170.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2170.ets new file mode 100644 index 000000000..14b2d019f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2170.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 UiComponentTextCommonTextstyle015{ + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.Cover) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2180.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2180.ets new file mode 100644 index 000000000..e0342f379 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2180.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 UiComponentTextCommonTextstyle016 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.Auto) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2190.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2190.ets new file mode 100644 index 000000000..bff6028dc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2190.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 UiComponentTextCommonTextstyle017 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.Fill) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2200.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2200.ets new file mode 100644 index 000000000..9f7eb4ab3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2200.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 UiComponentTextCommonTextstyle018 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.ScaleDown) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2210.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2210.ets new file mode 100644 index 000000000..4c4191228 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2210.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 UiComponentTextCommonTextstyle019 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.None) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2220.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2220.ets new file mode 100644 index 000000000..62a8dde64 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2220.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 UiComponentTextCommonTextstyle020 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.None) + .verticalAlign(ImageSpanAlignment.TOP) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2230.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2230.ets new file mode 100644 index 000000000..59a40c5be --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2230.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 UiComponentTextCommonTextstyle021 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.None) + .verticalAlign(ImageSpanAlignment.CENTER) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2240.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2240.ets new file mode 100644 index 000000000..7076a661c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2240.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 UiComponentTextCommonTextstyle022 { + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.None) + .verticalAlign(ImageSpanAlignment.BOTTOM) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2250.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2250.ets new file mode 100644 index 000000000..228c70a71 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2250.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 UiComponentTextCommonTextstyle023{ + build() { + Text() { + Span('LineThrough-span') + .decoration({ type: TextDecorationType.LineThrough, color: Color.Red }).fontSize(25) + ImageSpan($r('app.media.icon')) + .width(30) + .height(30) + .objectFit(ImageFit.None) + .verticalAlign(ImageSpanAlignment.BASELINE) + Span('Underline-span') + .decoration({ type: TextDecorationType.Underline, color: Color.Red }).fontSize(25) + }.width('100%').height('100%').padding({ left: 0, right: 0, top: 0 }) + } +} -- Gitee From caea619220d7207edcde5513687d5cb3f98b9939 Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 15:13:18 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UIAttributePositionSizeLayout001.ets | 0 .../UIAttributePositionSizeLayout002.ets | 0 .../UIAttributePositionSizeLayout003.ets | 0 .../UIAttributePositionSizeLayout004.ets | 0 .../UIAttributePositionSizeLayout005.ets | 0 .../UIAttributePositionSizeLayout006.ets | 0 .../UIAttributePositionVisibility001.ets | 0 .../UIAttributePositionVisibility002.ets | 0 .../UIAttributePositionVisibility003.ets | 0 .../UIAttributePositionVisibility004.ets | 0 .../UIAttributePositionVisibility005.ets | 0 .../UIAttributePositionVisibility006.ets | 0 .../UIAttributePositionVisibility007.ets | 0 .../UIAttributePositionVisibility008.ets | 0 .../UIAttributePositionVisibility009.ets | 0 .../UIAttributePositionVisibility0100.ets | 0 .../UIAttributePositionVisibility0110.ets | 0 .../UIAttributePositionVisibility0120.ets | 0 18 files changed, 0 insertions(+), 0 deletions(-) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets (100%) rename function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/{ => pages}/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets (100%) diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets similarity index 100% rename from function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets rename to function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets -- Gitee From 34bab09e774b2fcfdf1ed9d8c65d0c91e0f9c70f Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 15:24:33 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=96=B0=E5=A2=9Etextarea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UiComponentTextTextareaInterface001.ets | 39 +++++++++++++++++ .../UiComponentTextTextareaInterface002.ets | 39 +++++++++++++++++ .../UiComponentTextTextareaInterface004.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface005.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface006.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface007.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface009.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface1000.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface140.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface150.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface170.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface210.ets | 42 ++++++++++++++++++ .../UiComponentTextTextareaInterface220.ets | 42 ++++++++++++++++++ .../UiComponentTextTextareaInterface230.ets | 42 ++++++++++++++++++ .../UiComponentTextTextareaInterface340.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface360.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface370.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface380.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface420.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface430.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface440.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface450.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface470.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface480.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface490.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface510.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface530.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface560.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface600.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface610.ets | 42 ++++++++++++++++++ .../UiComponentTextTextareaInterface620.ets | 42 ++++++++++++++++++ .../UiComponentTextTextareaInterface630.ets | 40 +++++++++++++++++ .../UiComponentTextTextareaInterface640.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface860.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface870.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface890.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface910.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface920.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface930.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface950.ets | 37 ++++++++++++++++ .../UiComponentTextTextareaInterface960.ets | 38 ++++++++++++++++ .../UiComponentTextTextareaInterface970.ets | 38 ++++++++++++++++ .../UiComponentTextTextareaInterface980.ets | 38 ++++++++++++++++ .../UiComponentTextTextareaInterface990.ets | 43 +++++++++++++++++++ 44 files changed, 1738 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001.ets new file mode 100644 index 000000000..1e8137f5d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface001 { + @State inputtext: string = '001001' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Italic) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002.ets new file mode 100644 index 000000000..6a742259a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface002{ + @State inputtext: string = '1111100000' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004.ets new file mode 100644 index 000000000..fe7b0526a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface004{ + @State inputtext: string = '1111100000' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(0) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005.ets new file mode 100644 index 000000000..a4df3dce6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface005{ + @State inputtext: string = '1111100000' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(-1) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006.ets new file mode 100644 index 000000000..042fc2b4d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface006{ + @State inputtext: string = 'hello world6' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(1000) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007.ets new file mode 100644 index 000000000..f75848ec9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface007{ + @State inputtext: string = 'hello world7' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(1) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009.ets new file mode 100644 index 000000000..66a285732 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface008{ + @State inputtext: string = 'hello world8' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(750) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000.ets new file mode 100644 index 000000000..caf2ef0c5 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface100{ + @State inputtext: string = '0123456789' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .maxLength(20) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .defaultFocus(true) + .onChange((value: string) => { + this.inputtext = value + this.controller.setTextSelection(1, 3) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140.ets new file mode 100644 index 000000000..8a13b7907 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface014{ + @State inputtext: string = 'hello world140' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(FontWeight.Medium) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150.ets new file mode 100644 index 000000000..dc6a8e38f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface015{ + @State inputtext: string = 'hello world150' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(FontWeight.Normal) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170.ets new file mode 100644 index 000000000..ab9912f2f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface017{ + @State inputtext: string = 'hello world170' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(undefined) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210.ets new file mode 100644 index 000000000..e780ad94f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210.ets @@ -0,0 +1,42 @@ +/** + * 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 UiComponentTextTextareaInterface021{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本1', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(undefined) + .placeholderColor('rgb(0,0,255)') + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220.ets new file mode 100644 index 000000000..099fdb4fe --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220.ets @@ -0,0 +1,42 @@ +/** + * 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 UiComponentTextTextareaInterface022{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本2', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgba(0,255,0,1)') + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(undefined) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230.ets new file mode 100644 index 000000000..2c0facb49 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230.ets @@ -0,0 +1,42 @@ +/** + * 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 UiComponentTextTextareaInterface023{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本3', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('abcd') + .fontColor('#ff338cef') + .fontStyle(FontStyle.Normal) + .fontWeight(undefined) + .backgroundColor('#ffece6e6') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340.ets new file mode 100644 index 000000000..c32ff30ba --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface034{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本4', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:-1}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360.ets new file mode 100644 index 000000000..88882017c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface036{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本5', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:0}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370.ets new file mode 100644 index 000000000..a15821c9c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface037{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本6', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:'10%'}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380.ets new file mode 100644 index 000000000..e44ba685d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface038{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本380', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:11}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420.ets new file mode 100644 index 000000000..95b429288 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface042{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本420', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:0}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430.ets new file mode 100644 index 000000000..4f15bbdb7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface043{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本430', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:'10%'}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440.ets new file mode 100644 index 000000000..adc2b3a00 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface044{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本440', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:1000}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450.ets new file mode 100644 index 000000000..bc61f49ab --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface045{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本450', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:11}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470.ets new file mode 100644 index 000000000..c937f0a0c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface047{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本470', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:750}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480.ets new file mode 100644 index 000000000..79d19bb90 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface048{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本480', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:'abc'}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490.ets new file mode 100644 index 000000000..c1a6c3a5f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface049{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本490', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,weight:undefined}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510.ets new file mode 100644 index 000000000..f79fffe3d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface051{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本510', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,family:'HarmonyOS Sans'}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530.ets new file mode 100644 index 000000000..bddb873ca --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface053{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是一个多行输入文本530', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,style:FontStyle.Normal}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560.ets new file mode 100644 index 000000000..ad1948488 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface056{ + @State inputtext: string = '预置输入530' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600.ets new file mode 100644 index 000000000..0aab64f58 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface060{ + @State inputtext: string = '这是预置文本' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是提示文本', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,style:FontStyle.Normal}) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610.ets new file mode 100644 index 000000000..6f9062d2e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610.ets @@ -0,0 +1,42 @@ +/** + * 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 UiComponentTextTextareaInterface061{ + @State inputtext: string = '这是预置文本' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是提示文本', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,style:FontStyle.Normal}) + .fontColor('#ff338cef') + .defaultFocus(true) + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + this.controller.caretPosition (-1) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620.ets new file mode 100644 index 000000000..f8cbd1a65 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620.ets @@ -0,0 +1,42 @@ +/** + * 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 UiComponentTextTextareaInterface062{ + @State inputtext: string = '这是预置文本' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + placeholder:'这是提示文本', + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .placeholderColor('rgb(0,0,255)') + .placeholderFont({size:20,style:FontStyle.Normal}) + .fontColor('#ff338cef') + .defaultFocus(true) + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + this.controller.caretPosition (0) + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630.ets new file mode 100644 index 000000000..e6a57bb54 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630.ets @@ -0,0 +1,40 @@ +/** + * 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 UiComponentTextTextareaInterface063 { + @State inputtext: string = '12345678901234567890123' + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .defaultFocus(true) + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + this.controller.caretPosition(8) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640.ets new file mode 100644 index 000000000..a6fed4e85 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface064{ + @State inputtext: string = '' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(20) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860.ets new file mode 100644 index 000000000..7088e200b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface086{ + @State inputtext: string = '这是预置文本860' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(-1) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870.ets new file mode 100644 index 000000000..788e023bf --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface087{ + @State inputtext: string = '这是预置文本870' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(-21) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890.ets new file mode 100644 index 000000000..afdf5acd1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface089{ + @State inputtext: string = '这是预置文本890' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize("10%") + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910.ets new file mode 100644 index 000000000..a6492d80d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface091{ + @State inputtext: string = '这是预置文本910' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(11) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920.ets new file mode 100644 index 000000000..8a0581eb6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface092{ + @State inputtext: string = '这是预置文本920' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize(21) + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930.ets new file mode 100644 index 000000000..1ca1e44d0 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface093{ + @State inputtext: string = '这是预置文本930' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950.ets new file mode 100644 index 000000000..dbec511d2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950.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. + */ +@Entry +@Component +struct UiComponentTextTextareaInterface095{ + @State inputtext: string = 'Aabcd' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960.ets new file mode 100644 index 000000000..62b044338 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960.ets @@ -0,0 +1,38 @@ +/** + * 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 UiComponentTextTextareaInterface096{ + @State inputtext: string = 'AAabcd' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .inputFilter('[A-Z]', (value: string) => {console.info("testtest" + value)}) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970.ets new file mode 100644 index 000000000..901ab2703 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970.ets @@ -0,0 +1,38 @@ +/** + * 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 UiComponentTextTextareaInterface097{ + @State inputtext: string = 'AAAabcde' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .inputFilter('[A-Z]') + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980.ets new file mode 100644 index 000000000..67b3dfdef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980.ets @@ -0,0 +1,38 @@ +/** + * 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 UiComponentTextTextareaInterface098{ + @State inputtext: string = '01234567890123456789abcd' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .maxLength(20) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .onChange((value: string) => { + this.inputtext = value + }) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990.ets new file mode 100644 index 000000000..95d35ad74 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990.ets @@ -0,0 +1,43 @@ +/** + * 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 UiComponentTextTextareaInterface099{ + @State inputtext: string = '0123456' + controller: TextAreaController = new TextAreaController() + build() { + Column() { + TextArea({ + text: this.inputtext, + controller: this.controller + }) + .width(300) + .height(300) + .margin(30) + .maxLength(20) + .fontSize('abc') + .fontColor('#ff338cef') + .caretColor('#ff338cef') + .defaultFocus(true) + .onChange((value: string) => { + this.inputtext = value + this.controller.setTextSelection(-3, 3) + }) + + + + }.width('100%').height('100%') + } +} \ No newline at end of file -- Gitee From aaeb2dc7f239ef7cb2660f5c5733a81e0f470066 Mon Sep 17 00:00:00 2001 From: yuxiangxin~ Date: Mon, 5 Aug 2024 15:29:31 +0800 Subject: [PATCH 6/6] =?UTF-8?q?textarea=E6=96=87=E6=9C=AC=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entry/src/ohosTest/ets/test/List.test.ets | 10 + .../UiComponentTextTextareaInterface.test.ets | 655 ++++++++++++++++++ .../resources/base/element/color.json | 4 + .../resources/base/profile/test_pages.json | 97 ++- 4 files changed, 765 insertions(+), 1 deletion(-) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets 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 a28a4982c..2646f9a82 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 @@ -26,6 +26,11 @@ import UIComponentTextCommonTextStyleTextArea from './UIComponentTextCommonTextS import UIComponentTextCommonTextStyleText from './UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleText.test' import UIComponentTextCommonTextStyleSpan from './UIComponentTextCommonTextStyleTest/UIComponentTextCommonTextStyleSpan.test' import UIComponentLayoutColumnInterface from './UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test' +import UIVisibilityInterface001 from './UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test' +import UiComponentTextCommonTextstyle from './UiComponentTextCommonTextstyleTest/UiComponentTextCommonTextstyle.test' +import UiComponentTextTextareaInterface from './UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test' +import UIAttributePositionSizeLayoutTest from './UIAttributePositionSizeLayoutTest/UIAttributePositionSizeLayoutTest.test' +import UIAttributePositionInterfaceTest from './UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); @@ -40,4 +45,9 @@ export default function testsuite() { UIComponentTextCommonTextStyleText(); UIComponentTextCommonTextStyleSpan(); UIComponentLayoutColumnInterface(); + UIVisibilityInterface001(); + UiComponentTextCommonTextstyle(); + UiComponentTextTextareaInterface(); + UIAttributePositionSizeLayoutTest(); + UIAttributePositionInterfaceTest(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets new file mode 100644 index 000000000..e3486263c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets @@ -0,0 +1,655 @@ +/* + * 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 router from '@ohos.router'; +import {UiComponent, UiDriver, Component, Driver, UiWindow, ON, BY, MatchPattern, DisplayRotation, ResizeDirection, WindowMode, PointerMatrix} from '@ohos.UiTest'; +export default function UiComponentTextTextareaInterface() { + describe('UiComponentTextTextareaInterface', () => { + 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_TEXTAREA_INTERFACE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0010 + * @tc.desc TextArea FontStyle.Italic + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0020 + * @tc.desc TextArea FontStyle.Normal + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0040 + * @tc.desc TextArea fontWeight=0 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0050 + * @tc.desc TextArea fontWeight=-1 -11 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0060 + * @tc.desc TextArea fontWeight=1000 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0070 + * @tc.desc TextArea fontWeight=1 11 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0090 + * @tc.desc TextArea fontWeight=750 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0140 + * @tc.desc TextArea fontWeight(FontWeight.Medium) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0150 + * @tc.desc TextArea fontWeight(FontWeight.Normal) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0170 + * @tc.desc TextArea fontWeight(FontWeight.undefined) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0210 + * @tc.desc TextArea placeholderColor('rgb(0,0,255)') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220 + * @tc.desc TextArea placeholderColor('rgba(0, 255,0,1') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0230 + * @tc.desc TextArea placeholderColor('abcd') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0340 + * @tc.desc TextArea placeholderFont({size:-1}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0340 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0360 + * @tc.desc TextArea .placeholderFont({size:0}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0360 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0360 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0370 + * @tc.desc TextArea placeholderFont({size:'10%'}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0370 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0370 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0380 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0380 + * @tc.desc TextArea placeholderFont({size:11}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0380 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0380 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0420 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0420 + * @tc.desc TextArea placeholderFont({size:20,weight:0}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0420 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0420 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0430 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0430 + * @tc.desc TextArea placeholderFont({size:20,weight:'10%'}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0430 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0430 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0440 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0440 + * @tc.desc TextArea placeholderFont({size:20,weight:1000}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0440 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0440 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0450 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0450 + * @tc.desc TextArea placeholderFont({size:20,weight:11}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0450 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0450 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0470 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0470 + * @tc.desc TextArea placeholderFont({size:20,weight:750}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0470 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0470 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0480 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0480 + * @tc.desc TextArea placeholderFont({size:20,weight:'abc'}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0480 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0480 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0490 + * @tc.desc TextArea placeholderFont({size:20,weight:undefined}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0490 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0490 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0510 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0510 + * @tc.desc TextArea placeholderFont({size:20,family:'HarmonyOS Sans'}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0510 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0510 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0530 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0530 + * @tc.desc TextArea placeholderFont({size:20,style:FontStyle.Normal}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0530 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0530 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0560 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0560 + * @tc.desc TextArea not set placeholderFont + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0560 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0560 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0600 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0600 + * @tc.desc set placeholder and text + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0600 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(10000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0600 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0610 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0610 + * @tc.desc TextArea caretPosition(-1) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0610 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0610 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0620 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0620 + * @tc.desc TextArea caretPosition(0) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0620 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0620 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0630 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0630 + * @tc.desc TextArea caretPosition(8) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0630 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(5000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0630 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0640 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0640 + * @tc.desc TextArea not set placeholderFont + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0640 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0640 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0860 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0860 + * @tc.desc TextArea fontSize(-1) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0860 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0860 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0870 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0870 + * @tc.desc TextArea fontSize(-21) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0870 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0870 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0890 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0890 + * @tc.desc TextArea fontSize("10%") + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0890 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0890 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0910 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0910 + * @tc.desc TextArea fontSize(11) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0910 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0910 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0920 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0920 + * @tc.desc TextArea fontSize(21) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0920 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0920 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0930 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0930 + * @tc.desc TextArea fontSize('abc') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0930 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0930 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0950 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0950 + * @tc.desc TextArea not set inputfilter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0950 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0950 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0960 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0960 + * @tc.desc TextArea inputFilter('[A-Z]', (value: string) => {console.info("testtest" + value)}) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0960 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0960 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0970 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0970 + * @tc.desc TextArea inputFilter('[A-Z]') + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0970 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0970 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0980 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0980 + * @tc.desc TextArea maxLength(20) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0980 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0980 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0990 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0990 + * @tc.desc TextArea setTextSelection(-3, 3) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0990 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(10000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0990 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1000 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1000 + * @tc.desc TextArea setTextSelection(1, 3) + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1000 start.`); + Settings.createWindow("testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(10000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1000 finish.`); + done() + }) + }) +} 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 5080c5f61..8d9af5ec2 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 @@ -7,6 +7,10 @@ { "name": "Pink", "value": "#ffc0cb" + }, + { + "name": "yellow", + "value": "#FFCFA613" } ] } \ 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 3b96608e4..42f75e417 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 @@ -156,6 +156,101 @@ "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle181", "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle182", "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle183", - "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184" + "testability/pages/UIComponentTextCommonTextStyle/UIComponentTextCommonTextStyle184", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility001", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110", + "testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0910", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0920", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0930", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle0940", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1900", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1950", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1960", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1970", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1980", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle1990", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2000", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2010", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2020", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2030", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2090", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2100", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2110", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2160", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2170", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2180", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2190", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2200", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2210", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2220", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2230", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2240", + "testability/pages/UIComponentTextCommonTextStyle/UiComponentTextCommonTextstyle2250", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface001", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface002", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface004", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface005", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface006", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface007", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface009", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface140", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface150", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface170", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface210", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface220", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface230", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface340", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface360", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface370", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface380", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface420", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface430", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface440", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface450", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface470", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface480", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface490", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface510", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface530", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface560", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface600", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface610", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface620", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface630", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface640", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface860", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface870", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface890", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface910", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface920", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface930", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface950", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface960", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface970", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface980", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface990", + "testability/pages/UiComponentTextTextareaInterface/UiComponentTextTextareaInterface1000", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005", + "testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface001", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface002", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface003", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface004", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface005", + "testability/pages/UIAttributePositionInterface/UIAttributePositionInterface006" ] } -- Gitee