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 6e78ce4a02ab1d3392d3651abc7f3160cce93c20..a01a3cd3dd0270e3f941ac0fb32cf73bee9a88af 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 0000000000000000000000000000000000000000..18a66ebd0e041a8132b6ee77eadbab603bb9a4f4 --- /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 0000000000000000000000000000000000000000..6a4e99a3e3f169b7834c454e1e11a733c520447b --- /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 0000000000000000000000000000000000000000..5864bd44d35ab21b2a0ebd26458d5f59340e8b1d --- /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 0000000000000000000000000000000000000000..a67b5df94419bc80fe4d3f645238860ff70631b6 --- /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 0000000000000000000000000000000000000000..680a94f2debca11ec30917ab97b085db1e7913e5 --- /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 0000000000000000000000000000000000000000..956301d3deefd34fb9e439e2d9b75cda472c46d5 --- /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 0000000000000000000000000000000000000000..2b2c85980c44e1c9d1b13aa6d0f4222c84674f04 --- /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 0000000000000000000000000000000000000000..8c6dc4de24c930604eb739ed3621f01b46366186 --- /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 0000000000000000000000000000000000000000..58aaf272911724a2f9e9cdf01db9a8cf9d17f9c2 --- /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 0000000000000000000000000000000000000000..ef0f901ad2e7bbd1b053bcca24328b0ba640da6c --- /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 0000000000000000000000000000000000000000..9d52b5a1e9ef783a318a384d4951711e2df8500b --- /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 0000000000000000000000000000000000000000..725cf4385782c2e80575d2dc23ccb7b5aff00570 --- /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 0000000000000000000000000000000000000000..8b8db083600b6a1d815ae4bd95e24ba204b32411 --- /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 0000000000000000000000000000000000000000..dd48fc697b7f3b82aceffc2296ff397a2ff1f8e2 --- /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 0000000000000000000000000000000000000000..6b7773298be108daa32664e51565af6982cd3b9c --- /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 0000000000000000000000000000000000000000..230a493b3bd3669f66a63051317db5dfcd71ba92 --- /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 0000000000000000000000000000000000000000..461dbcc76f2146f1d00227339f9a46b287f99a01 --- /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 0000000000000000000000000000000000000000..4cb3984e17978a7f92d82344daebcd2086e83896 --- /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 0000000000000000000000000000000000000000..b3f760181588dfe5831f347828a1576118630900 --- /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 0000000000000000000000000000000000000000..0ceee0cea6f04eb40c7ab17a5bd0ca078d38a8c2 --- /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 0000000000000000000000000000000000000000..2565d2c105b338d4010a5013271cdfaa6cc61bc9 --- /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 0000000000000000000000000000000000000000..339ca6b1da3e559a52982708c4435ab86cc4069b --- /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 0000000000000000000000000000000000000000..6fccbb10c8ed2c1e802df34e42836c722b675b1c --- /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 0000000000000000000000000000000000000000..02d43fcc603d5e540cdd2b22d9794f0d4ed5e3b7 --- /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 0000000000000000000000000000000000000000..e58acf177016a533bf38a354b1253ce7f3205786 --- /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 0000000000000000000000000000000000000000..7fd32d85a51cbf9a6a1b15c23ae37b76c6a4fa73 --- /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 0000000000000000000000000000000000000000..fdbe9812323ad24935b73028edeb39fb233a5d3d --- /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 0000000000000000000000000000000000000000..8ae0f672f07a04c8b48507a257995203681f9112 --- /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 0000000000000000000000000000000000000000..d44acfdab75900d2744377100f6abf5ac389a4f9 --- /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 0000000000000000000000000000000000000000..4fab6b8f4a33874cd41d0972938f3557a9bb2f35 --- /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 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 2798b27489a0e42f95654ff5058ba9e47f8e8c5b..0b237d22d53f931fa552b25ba7a2487e5293c28d 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" ] }