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 a28a4982ce220197f52a24f5cf30b51b22827ec5..2646f9a826a0ec6458a4b0a8b4591f5aba16573d 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/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionInterfaceTest/UIAttributePositionInterfaceTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2fcdb156d6e2f8e92578a9d30dfe58d91ab2b14c --- /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 0000000000000000000000000000000000000000..92e3b67e2846e16bd8860bbde66a1421ac9140a7 --- /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/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIAttributePositionVisibilityTest/UIAttributePositionVisibility001.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a88e0b8c09103c3dbd504ef8a89c0c6254b39634 --- /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/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonTextStyleTest/UiComponentTextCommonTextstyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..5863dc6354842f2f10c6b4d22b818079fc83878a --- /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/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UiComponentTextTextareaInterfaceTest/UiComponentTextTextareaInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..e3486263c10201a3a30548f8c79bc5f484dba819 --- /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/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 0000000000000000000000000000000000000000..cc7aef3b06b7dd164fb2aafb42016ec2d0a54d7b --- /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 0000000000000000000000000000000000000000..c9cb32845cb832f8c9fdcf3e156779323fd67909 --- /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 0000000000000000000000000000000000000000..2447aa4b8207d52839ded9ba9c8f239d6f9ba567 --- /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 0000000000000000000000000000000000000000..7306fffc5c5e9e91d9038880fe90df12ac0b2a40 --- /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 0000000000000000000000000000000000000000..c134c10ddbcc412b9dfb85334507833dfa152d84 --- /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 0000000000000000000000000000000000000000..e2e767db700b4b5df2dbe87c8af4455f4bfe3373 --- /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 diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout001.ets new file mode 100644 index 0000000000000000000000000000000000000000..a0b3abda8a9a5891c53f17fff8189d9a5b59b077 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout002.ets new file mode 100644 index 0000000000000000000000000000000000000000..32983ec03613c47deb5e2554212b6b8b4dcb822f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout003.ets new file mode 100644 index 0000000000000000000000000000000000000000..d64811b8e6b0666997da1817b41f857658459bdb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout004.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4603a60f55836c54dd3e77efd47550fce651027 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout005.ets new file mode 100644 index 0000000000000000000000000000000000000000..a8f8e2905347d747e0db57024e38fd08aa8170c6 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionSizeLayout/UIAttributePositionSizeLayout006.ets new file mode 100644 index 0000000000000000000000000000000000000000..12bfbc82a7e769eaf12f9a686ffce2db23afa411 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility001.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1a241eb8358c77c2b08addb4bad864cafea705e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility002.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c371caddeb9f6a7fd9b4bbe484342277e11e651 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility003.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd6ca94c8ab2c75f8880b81dd8886aa6e55c9f2f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility004.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bba26c99aead36ed17a86f358e86ba47343763a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility005.ets new file mode 100644 index 0000000000000000000000000000000000000000..f20b9090aaf26c1a04662133ad13c3c61a2bc2a8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility006.ets new file mode 100644 index 0000000000000000000000000000000000000000..73da9203d2605d70d281def322d4b85ce4e7e65e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility007.ets new file mode 100644 index 0000000000000000000000000000000000000000..40a0d1da4992fd96c95b1b4c318178900ad04af8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility008.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef0b9b8dd09dfcf523a43d42cb58ab3858b3b48f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility009.ets new file mode 100644 index 0000000000000000000000000000000000000000..3ad61aea464dd1144f450e9987299dfdffc46417 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..716e88bd578800230eebc3b53cd9dc75951f7c9d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..4122868296eb0ff05b7c4b2659db5bf016c1218e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributePositionVisibility/UIAttributePositionVisibility0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..c3cf58da76e3f283d2df3b042a147211b838bb95 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/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 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 0000000000000000000000000000000000000000..c1f51544d7db7482990c1d2bbc47377af9489cd2 --- /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 0000000000000000000000000000000000000000..9c7b92f8aeddd1a088ae8afa1057451342c7ce4e --- /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 0000000000000000000000000000000000000000..cf1506cda312149c002115be9827d3ffb0a32733 --- /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 0000000000000000000000000000000000000000..3800eca28a723dffb53e8e23e0074ba09b874687 --- /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 0000000000000000000000000000000000000000..493152a0644f6bbbf68a6d47d7435812d3401855 --- /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 0000000000000000000000000000000000000000..c857f6d0e647a8ed39b22c04fbf8aae64469f2fd --- /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 0000000000000000000000000000000000000000..6de541511c8883326f0f37ca4f8f3d8cb4d446e7 --- /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 0000000000000000000000000000000000000000..240baf5b33faa7223fc8c338e051ec377c2701dd --- /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 0000000000000000000000000000000000000000..46e8bc83b90df44c8da2f8a4d6e10a87db4c280d --- /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 0000000000000000000000000000000000000000..a93cb7441982e16ba300afdfe032b5c1f3b84415 --- /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 0000000000000000000000000000000000000000..c3f5acad1dfd39224291c034299087043e6a7ab8 --- /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 0000000000000000000000000000000000000000..a431349fbbf2aa2f4ace7cc15dede5e9964f5f6b --- /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 0000000000000000000000000000000000000000..55a55a1ba2cf2bab15ec5e5a9954677f87c2e20b --- /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 0000000000000000000000000000000000000000..fb9d2e19ba1063a5e234bb387ebae88e8406d075 --- /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 0000000000000000000000000000000000000000..5a4177e05832d7cb08e5034fa23df7860a3477fc --- /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 0000000000000000000000000000000000000000..8a240a383844c9c0c9d236a5581cfc1203ac4e66 --- /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 0000000000000000000000000000000000000000..a06879a1fa7435bc5aeabb10d0e9c6bbad91ec80 --- /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 0000000000000000000000000000000000000000..2563bbb6294213a035bf4bbd81019b74140d6a00 --- /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 0000000000000000000000000000000000000000..14b2d019f2055edabca05bfb89551307d7dde626 --- /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 0000000000000000000000000000000000000000..e0342f3792e7b0bb17099927c752714ab14ea5aa --- /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 0000000000000000000000000000000000000000..bff6028dc78daa9ee4682ac55aeefcde9f457406 --- /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 0000000000000000000000000000000000000000..9f7eb4ab3ec9f693992238c2de54cc4e24ed18d8 --- /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 0000000000000000000000000000000000000000..4c41912283d38422402f7a99ae2a7b35a8a97fa6 --- /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 0000000000000000000000000000000000000000..62a8dde6495a71ff0113c9e35f41b628565b45eb --- /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 0000000000000000000000000000000000000000..59a40c5bec8628814d87d6f0d249abf15fba6d07 --- /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 0000000000000000000000000000000000000000..7076a661c11928800a744bc0aeba6f031022eeac --- /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 0000000000000000000000000000000000000000..228c70a71cfb0d43ec2d0d38febccf274c561903 --- /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 }) + } +} 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 0000000000000000000000000000000000000000..1e8137f5d9b799cc81d4ddda7ea4e65727fec4ca --- /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 0000000000000000000000000000000000000000..6a742259a373135dd9940d98a86941bcdd77f90c --- /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 0000000000000000000000000000000000000000..fe7b0526ab85870d4bbbe72d5b4151dc7c72f44f --- /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 0000000000000000000000000000000000000000..a4df3dce6aa6ba9f656b0bab2fb58c8d7eb91b0b --- /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 0000000000000000000000000000000000000000..042fc2b4d8a1e4c43eb1bc2c1b23b2e91e984e44 --- /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 0000000000000000000000000000000000000000..f75848ec9aa7e929833fd10748f30ae0c434e568 --- /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 0000000000000000000000000000000000000000..66a2857322b997a8ccc0965819bb60002a2b4a7a --- /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 0000000000000000000000000000000000000000..caf2ef0c5388f8cd6fd82571c1f86121838d1eea --- /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 0000000000000000000000000000000000000000..8a13b7907486279d36f71ec734fb485dca1500ee --- /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 0000000000000000000000000000000000000000..dc6a8e38fb46fd6ac9d325f7d5f23ace74bd43fd --- /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 0000000000000000000000000000000000000000..ab9912f2f1dbb926608460dab02c03853eb63878 --- /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 0000000000000000000000000000000000000000..e780ad94f67b7c5081b80a48ba7fd3d377680717 --- /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 0000000000000000000000000000000000000000..099fdb4fef540ce5f7eda378f0c479b061382935 --- /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 0000000000000000000000000000000000000000..2c0facb492d96265de62b9d261a9af8fd92edab2 --- /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 0000000000000000000000000000000000000000..c32ff30ba9a2a3cfd21ef36e74615d387c65e0de --- /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 0000000000000000000000000000000000000000..88882017c4838f1738d02cf2a092d9fa3858d400 --- /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 0000000000000000000000000000000000000000..a15821c9c31bb980513d9fede3e9145cb403c14a --- /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 0000000000000000000000000000000000000000..e44ba685d5e0103b14f8e70cdf5f2c0c55f4f6e1 --- /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 0000000000000000000000000000000000000000..95b4292884e281c8426a660241218b3ce71cec61 --- /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 0000000000000000000000000000000000000000..4f15bbdb70255ffd38d349d42a9e91e4614054d5 --- /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 0000000000000000000000000000000000000000..adc2b3a00139ffd81e1020de9799850c5e7581b1 --- /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 0000000000000000000000000000000000000000..bc61f49abdb2a66a395d997c80d2dd9744588ced --- /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 0000000000000000000000000000000000000000..c937f0a0cf006f6a96250be675c25bb392f3ddc3 --- /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 0000000000000000000000000000000000000000..79d19bb9053349a1ae8d58a05e5a2594de512453 --- /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 0000000000000000000000000000000000000000..c1a6c3a5fc440c2b70ff7980908a7bf8ddef2ad0 --- /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 0000000000000000000000000000000000000000..f79fffe3dc364955f521454450e05e86a8c1af2b --- /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 0000000000000000000000000000000000000000..bddb873ca382c48041d163c0eab64af6cf2d4bbe --- /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 0000000000000000000000000000000000000000..ad1948488a91d6b2eacb9f412f5408dcb3168f98 --- /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 0000000000000000000000000000000000000000..0aab64f58061a5c80b6d98e8e572e8ead7d28810 --- /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 0000000000000000000000000000000000000000..6f9062d2e3467a56a9fc5c22069111d294883d71 --- /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 0000000000000000000000000000000000000000..f8cbd1a657f94aa9b0c9a0c110cfc3a66fe86e82 --- /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 0000000000000000000000000000000000000000..e6a57bb545e2300134cc39622b8cf813b6502a28 --- /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 0000000000000000000000000000000000000000..a6fed4e8532ef2a5aa97fbdaa15817152d683f47 --- /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 0000000000000000000000000000000000000000..7088e200b78d6d1fe543dbef244603eb04ff9907 --- /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 0000000000000000000000000000000000000000..788e023bf7c7966bc0e04dbbe855e40cd4133756 --- /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 0000000000000000000000000000000000000000..afdf5acd13055dba35cec5b72197ab53467e9883 --- /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 0000000000000000000000000000000000000000..a6492d80d79f5fedbc09e022ffa4d6c3542ac78e --- /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 0000000000000000000000000000000000000000..8a0581eb6425c69d190deaa340503960a4617988 --- /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 0000000000000000000000000000000000000000..1ca1e44d069344455c32902ed85ec3bde14bf8ff --- /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 0000000000000000000000000000000000000000..dbec511d292e92449fcbe003154025b835919f7d --- /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 0000000000000000000000000000000000000000..62b044338f927839a7978d04848b37572aeea2d9 --- /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 0000000000000000000000000000000000000000..901ab2703e0439fcd5324b82ad1477c0ce211271 --- /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 0000000000000000000000000000000000000000..67b3dfdef06fd772bcc20f2b6d42bbc997d60cd0 --- /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 0000000000000000000000000000000000000000..95d35ad741e834a7721370189b123df72222f838 --- /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 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 5080c5f6112b2aa262078f2438dadf148986712d..8d9af5ec213d940c5e43cfe5513762277a4ab706 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 3b96608e4008dac0f634af5d1d59a6542fdf8ee6..42f75e417f60159d61aa2693e569f54400d13665 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" ] }