From 0ae0d31f365ccce00a38173a35f36f7cd4c0d93a Mon Sep 17 00:00:00 2001 From: lipengfei Date: Tue, 23 Jul 2024 10:24:57 +0800 Subject: [PATCH 1/2] test1 Signed-off-by: lipengfei --- .../resources/base/profile/test_pages.json | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) 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 2798b274..0b237d22 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 @@ -24,6 +24,35 @@ "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface028", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface029", "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface030", - "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031" + "testability/pages/UIAttributeFontInterface/UIAttributeFontInterface031", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030", + "testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031" ] } -- Gitee From a63d988f96e0bfe91248232f038f24e5cdd4248e Mon Sep 17 00:00:00 2001 From: lipengfei Date: Tue, 23 Jul 2024 10:30:35 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=A1=A8=E5=A4=B4=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lipengfei --- .../entry/src/ohosTest/ets/test/List.test.ets | 2 + .../UIComponentLayoutColumnInterface.test.ets | 476 ++++++++++++++++++ .../UIComponentLayoutColumnInterface003.ets | 49 ++ .../UIComponentLayoutColumnInterface004.ets | 49 ++ .../UIComponentLayoutColumnInterface005.ets | 49 ++ .../UIComponentLayoutColumnInterface006.ets | 49 ++ .../UIComponentLayoutColumnInterface007.ets | 49 ++ .../UIComponentLayoutColumnInterface008.ets | 49 ++ .../UIComponentLayoutColumnInterface009.ets | 49 ++ .../UIComponentLayoutColumnInterface010.ets | 49 ++ .../UIComponentLayoutColumnInterface011.ets | 49 ++ .../UIComponentLayoutColumnInterface012.ets | 48 ++ .../UIComponentLayoutColumnInterface013.ets | 48 ++ .../UIComponentLayoutColumnInterface014.ets | 49 ++ .../UIComponentLayoutColumnInterface015.ets | 49 ++ .../UIComponentLayoutColumnInterface016.ets | 49 ++ .../UIComponentLayoutColumnInterface017.ets | 49 ++ .../UIComponentLayoutColumnInterface018.ets | 49 ++ .../UIComponentLayoutColumnInterface019.ets | 49 ++ .../UIComponentLayoutColumnInterface020.ets | 49 ++ .../UIComponentLayoutColumnInterface021.ets | 49 ++ .../UIComponentLayoutColumnInterface022.ets | 49 ++ .../UIComponentLayoutColumnInterface023.ets | 49 ++ .../UIComponentLayoutColumnInterface024.ets | 49 ++ .../UIComponentLayoutColumnInterface025.ets | 49 ++ .../UIComponentLayoutColumnInterface026.ets | 49 ++ .../UIComponentLayoutColumnInterface027.ets | 49 ++ .../UIComponentLayoutColumnInterface028.ets | 49 ++ .../UIComponentLayoutColumnInterface029.ets | 49 ++ .../UIComponentLayoutColumnInterface030.ets | 49 ++ .../UIComponentLayoutColumnInterface031.ets | 49 ++ 31 files changed, 1897 insertions(+) create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030.ets create mode 100644 function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031.ets diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 6e78ce4a..a01a3cd3 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 @@ -18,10 +18,12 @@ import UIAttributeFontInterface001 from './UIAttributeFontInterfaceTest/UIAttri import UIAttributeFontInterfaceSize from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceSize.test' import UIAttributeFontInterfaceStyle from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceStyle.test' import UIAttributeFontInterfaceWeight from './UIAttributeFontInterfaceTest/UIAttributeFontInterfaceWeight.test' +import UIComponentLayoutColumnInterface from './UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); UIAttributeFontInterfaceSize(); UIAttributeFontInterfaceStyle(); UIAttributeFontInterfaceWeight(); + UIComponentLayoutColumnInterface(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test.ets new file mode 100644 index 00000000..18a66ebd --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnInterfaceTest/UIComponentLayoutColumnInterface.test.ets @@ -0,0 +1,476 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 UIComponentLayoutColumnInterface() { + + describe('UIComponentLayoutColumnInterface', () => { + 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_LAYOUT_COLUMN_INTERFACE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0030 + * @tc.desc set alignItems = HorizontalAlign.Center + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0040 + * @tc.desc set alignItems = HorizontalAlign.End + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0050 + * @tc.desc set alignItems = HorizontalAlign.Start + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0060 + * @tc.desc set alignItems = FlexAlign.Center + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0070 + * @tc.desc set alignItems = FlexAlign.End + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0080 + * @tc.desc set alignItems = FlexAlign.SpaceAround + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0090 + * @tc.desc set justifyContent = FlexAlign.SpaceBetween + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0100 + * @tc.desc set justifyContent = FlexAlign.SpaceEvenly + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0110 + * @tc.desc set justifyContent = FlexAlign.Start + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0110 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0120 + * @tc.desc set column = space:null + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0130 + * @tc.desc set column = space:undefined + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0130 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0140 + * @tc.desc set column = space:30 + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0140 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0150 + * @tc.desc set column = space:0 + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0150 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0160 + * @tc.desc set column = space:70 + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0160 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0170 + * @tc.desc set column = space:30 + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0170 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0180 + * @tc.desc set column = space:30vp + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0180 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0190 + * @tc.desc set column = space:50px + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0190 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0200 + * @tc.desc set column = 70fp + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0200 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0210 + * @tc.desc set column = space: 70lpx + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0210 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0220 + * @tc.desc set column = "3" + "0" + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0220 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0230 + * @tc.desc set column = space:fp2px(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0230 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0240 + * @tc.desc set column = space:lpx2px(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0240 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0250 + * @tc.desc set column = space:px2lpx(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0250 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0260 + * @tc.desc set column = space:px2lpx(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0260 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0270 + * @tc.desc set column = space:px2vp(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0270 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0280 + * @tc.desc set column = space:vp2px(10) + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0290 + * @tc.desc set column = space: space:"80%" + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0290 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0300 + * @tc.desc set column = space:abc + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0300 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0310 + * @tc.desc set column = space:30 + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_INTERFACE_0310 finish.`); + done() + }) + }) +} + diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003.ets new file mode 100644 index 00000000..6a4e99a3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface003.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface003 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .alignItems(HorizontalAlign.Center) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004.ets new file mode 100644 index 00000000..5864bd44 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface004.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface004 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .alignItems(HorizontalAlign.End) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005.ets new file mode 100644 index 00000000..a67b5df9 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface005.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface005 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .alignItems(HorizontalAlign.Start) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006.ets new file mode 100644 index 00000000..680a94f2 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface006.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface006 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.Center) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007.ets new file mode 100644 index 00000000..956301d3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface007.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface007 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.End) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008.ets new file mode 100644 index 00000000..2b2c8598 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface008.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface008 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.SpaceAround) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009.ets new file mode 100644 index 00000000..8c6dc4de --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface009.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface009 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.SpaceBetween) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010.ets new file mode 100644 index 00000000..58aaf272 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface010.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface010 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.SpaceEvenly) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011.ets new file mode 100644 index 00000000..ef0f901a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface011.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface011 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .justifyContent(FlexAlign.Start) + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012.ets new file mode 100644 index 00000000..9d52b5a1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface012.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface012 { + + build() { + Column({space:null}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013.ets new file mode 100644 index 00000000..725cf438 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface013.ets @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface013 { + + build() { + Column({space:undefined}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014.ets new file mode 100644 index 00000000..8b8db083 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface014.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface014 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015.ets new file mode 100644 index 00000000..dd48fc69 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface015.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface015 { + + build() { + Column({space:0}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016.ets new file mode 100644 index 00000000..6b777329 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface016.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface016 { + + build() { + Column({space:70}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017.ets new file mode 100644 index 00000000..230a493b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface017.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface017 { + + build() { + Column({space:"30"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018.ets new file mode 100644 index 00000000..461dbcc7 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface018.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface018 { + + build() { + Column({space:"30vp"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019.ets new file mode 100644 index 00000000..4cb3984e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface019.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface019 { + + build() { + Column({space:"50px"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020.ets new file mode 100644 index 00000000..b3f76018 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface020.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface020 { + + build() { + Column({space:"70fp"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021.ets new file mode 100644 index 00000000..0ceee0ce --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface021.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface021 { + + build() { + Column({space:"70lpx"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022.ets new file mode 100644 index 00000000..2565d2c1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface022.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface022 { + + build() { + Column({space: "3" + "0"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023.ets new file mode 100644 index 00000000..339ca6b1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface023.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface023 { + + build() { + Column({space:fp2px(10)}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024.ets new file mode 100644 index 00000000..6fccbb10 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface024.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface024 { + + build() { + Column({space:lpx2px(10)}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025.ets new file mode 100644 index 00000000..02d43fcc --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface025.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface025 { + + build() { + Column({space: fp2px(10)}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026.ets new file mode 100644 index 00000000..e58acf17 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface026.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface026 { + + build() { + Column({space: px2lpx(10)}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027.ets new file mode 100644 index 00000000..7fd32d85 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface027.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface027 { + + build() { + Column({space:px2vp(10) }) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028.ets new file mode 100644 index 00000000..fdbe9812 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface028.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface028 { + + build() { + Column({space:vp2px(10) }) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029.ets new file mode 100644 index 00000000..8ae0f672 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface029.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface029 { + + build() { + Column({space:"80%"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030.ets new file mode 100644 index 00000000..d44acfda --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface030.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface030 { + + build() { + Column({space:"abc"}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031.ets new file mode 100644 index 00000000..4fab6b8f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnInterface/UIComponentLayoutColumnInterface031.ets @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnInterface031 { + + build() { + Column({space:-10}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + } + .width('350') + .height('200') + + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +} \ No newline at end of file -- Gitee