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 3aabdad019fdda05f1f16b4e9390d5ddbd65fb7d..e1dcb3aa95d598847b60b87e1ac4333a94e4ae0e 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 @@ -64,6 +64,7 @@ import UIComponentLayoutStackTest from './UIComponentLayoutStackTest/UIComponent import UITestCase from './UITestCaseTest/UITestCase.test' import UIComponentCommonattrDrawingLayout from './UIComponentCommonattrDrawingLayoutTest/UIComponentCommonattrDrawingLayout.test' import UIComponentLayoutModifierTest from './UIComponentLayoutModifierTest/UIComponentLayoutModifier.test' +import UIComponentLayoutColumnLayout from './UIComponentLayoutColumnLayoutTest/UIComponentLayoutColumnLayout.test' export default function testsuite() { demoTest(); UIAttributeFontInterface001(); @@ -117,4 +118,5 @@ export default function testsuite() { UIComponentLayoutModifierTest(); UIComponentLineheightDecoration(); UIComponentTextinputUnderlinecolor(); + UIComponentLayoutColumnLayout(); } \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnLayoutTest/UIComponentLayoutColumnLayout.test.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnLayoutTest/UIComponentLayoutColumnLayout.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ab47f1f51d168b29b3aaee544db7674738cb7b3 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/test/UIComponentLayoutColumnLayoutTest/UIComponentLayoutColumnLayout.test.ets @@ -0,0 +1,625 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 UIComponentLayoutColumnLayout() { + + describe('UIComponentLayoutColumnLayout', () => { + 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_LAYOUT_0010 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0010 + * @tc.desc Set ItemAlign.End + */ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout001") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0010 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0020 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0020 + * @tc.desc Set ItemAlign.Start +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0020 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout002") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0020 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0030 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0030 + * @tc.desc Set .alignItems(HorizontalAlign.End) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0030 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout003") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0030 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0040 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0040 + * @tc.desc Set .alignItems(HorizontalAlign.Start) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0040 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout004") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0050 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0050 + * @tc.desc Set alignItems(HorizontalAlign.End) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0050 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout005") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0050 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0060 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0060 + * @tc.desc Set flexGrow(2),layoutWeight(3).layoutWeight(2).layoutWeight(1) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0060 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout006") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0070 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0070 + * @tc.desc NoSet flexBasis +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0070 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout007") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0070 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0080 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0080 + * @tc.desc Set flexBasis = -5 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout008") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0090 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0090 + * @tc.desc Set flexBasis = null +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout009") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0090 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0100 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0100 + * @tc.desc Set flexBasis = undefined +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout010") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0110 + * @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0110 + * @tc.desc Set flexBasis = 0 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0110 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout011") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0110 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0120 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0120 +* @tc.desc Set flexBasis = 100 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0120 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout012") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0120 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0130 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0130 +* @tc.desc Set flexBasis = "200fp" +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0130 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout013") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0130 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0140 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0140 +* @tc.desc Set flexBasis = "200lpx" +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0140 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout014") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0140 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0150 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0150 +* @tc.desc Set flexBasis = "200px" +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0150 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout015") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0150 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0160 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0160 +* @tc.desc Set flexBasis = "200vp" +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0160 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout016") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0160 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0170 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0170 +* @tc.desc Set flexBasis = auto +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0170 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout017") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0170 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0180 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0180 +* @tc.desc Set .layoutWeight(3).layoutWeight(2).layoutWeight(1) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0180 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout018") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0180 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190 +* @tc.desc Set layoutWeight(0.5) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout019") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0200 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0200 +* @tc.desc Set layoutWeight(≥1) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0200 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout020") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0200 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0210 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0210 +* @tc.desc Set .layoutWeight("3").layoutWeight("2").layoutWeight("1") +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0210 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout021") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0210 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0220 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0220 +* @tc.desc Set layoutWeight("3") +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0220 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout022") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0220 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0230 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0230 +* @tc.desc NoSet flexGrow +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0230 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout023") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0230 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0250 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0250 +* @tc.desc Set flexShrink(2),column1、2、3.layoutWeight(3).layoutWeight(2).layoutWeight(1) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0250 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout025") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0250 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0260 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0260 +* @tc.desc Set .displayPriority(1).displayPriority(0.5).displayPriority(1) +*/ + // it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0260', 0, async (done: Function) => { + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0260 start.`); + // Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout026") + // await Utils.sleep(1000) + // windowSnap.snapShot() + // await Utils.sleep(1000) + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0260 finish.`); + // done() + // }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0270 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0270 +* @tc.desc Set .displayPriority(1).displayPriority(2).displayPriority(3) +*/ + // it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0270', 0, async (done: Function) => { + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0270 start.`); + // Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout027") + // await Utils.sleep(1000) + // windowSnap.snapShot() + // await Utils.sleep(1000) + // Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0270 finish.`); + // done() + // }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0280 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0280 +* @tc.desc Set flexGrow = -5 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0280 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout028") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0280 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0290 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0290 +* @tc.desc Set flexGrow = null +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0190 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout029") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0290 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0300 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0300 +* @tc.desc Set flexGrow = undefined +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0300 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout030") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0300 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0310 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0310 +* @tc.desc Set flexGrow = 3、2、1 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0310 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout031") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0310 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0320 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0320 +* @tc.desc Set flexShink = -5 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0320 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout032") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0320 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0330 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0330 +* @tc.desc Set flexShink =null +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0330 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout033") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0330 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0340 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0340 +* @tc.desc Set flexShink = undefined +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0340 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout034") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0340 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0350 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0350 +* @tc.desc Set flexShink = 1 +*/ +/* it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0350 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout035") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0350 finish.`); + done() + })*/ + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0360 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0360 +* @tc.desc Set layoutWeight = "aaa" +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0360 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout036") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0360 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0370 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0370 +* @tc.desc Set layoutWeight = -10 +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0370 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout037") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0370 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0380 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0380 +* @tc.desc Set layoutWeight = null +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0380 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout038") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0380 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0390 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0390 +* @tc.desc Set layoutWeight = undefined +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0390 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout039") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0390 finish.`); + done() + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0400 +* @tc.name SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0400 +* @tc.desc Set .layoutWeight(3) .layoutWeight(2) +*/ + it('SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0400 start.`); + Settings.createWindow("testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout040") + await Utils.sleep(1000) + windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_LAYOUT_COLUMN_LAYOUT_0400 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout001.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout001.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cc7e7dbd7b56e2e0c57cbbb5a815f7eaa57ad2f --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout001.ets @@ -0,0 +1,53 @@ +/* * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + + +@Entry +@Component +struct UIComponentLayoutColumnLayout001 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .alignItems(HorizontalAlign.End) + .direction(Direction.Rtl) + + 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} + + }) + + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout002.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout002.ets new file mode 100644 index 0000000000000000000000000000000000000000..663cff5c945dedbf60ac7f876d98d287bf89d68a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout002.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +@Entry +@Component +struct UIComponentLayoutColumnLayout002 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .alignItems(HorizontalAlign.End) + .direction(Direction.Rtl) + + 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} + + }) + + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout003.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout003.ets new file mode 100644 index 0000000000000000000000000000000000000000..e124988d891d497060856bd87a5fb6e6d16e393a --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout003.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout003 { + + build() { + Column() { + + 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) + .direction(Direction.Rtl) + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout004.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout004.ets new file mode 100644 index 0000000000000000000000000000000000000000..b1529d11aae838acd8b9400684c98cb193b28aee --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout004.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout004 { + + build() { + Column() { + + 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) + .direction(Direction.Rtl) + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout005.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout005.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca348271f9a6247d78f9c801917cb87e8472c73c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout005.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout005 { + + build() { + Column() { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .alignSelf(ItemAlign.Center) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout006.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout006.ets new file mode 100644 index 0000000000000000000000000000000000000000..68005e4221b769bc15747371235db7826c204050 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout006.ets @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout006 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(3) + .flexGrow(2) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(2) + .flexGrow(2) + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight(1) + .flexGrow(2) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout007.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout007.ets new file mode 100644 index 0000000000000000000000000000000000000000..b95d579ec30ec2901e27a673b7b2bc168b20fa87 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout007.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + +@Entry +@Component +struct UIComponentLayoutColumnLayout007 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis(undefined) + + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout008.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout008.ets new file mode 100644 index 0000000000000000000000000000000000000000..798344d817df05b2c4c3c1c82caff1fa78e7e535 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout008.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout008 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis(-5) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout009.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout009.ets new file mode 100644 index 0000000000000000000000000000000000000000..65d3918beaea4488027e413ff97a5513fe339e72 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout009.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout009 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("null") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout010.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout010.ets new file mode 100644 index 0000000000000000000000000000000000000000..c3412d6a7c0d93a1bc43e500b83be12ce2427c99 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout010.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout010 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis(undefined) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout011.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout011.ets new file mode 100644 index 0000000000000000000000000000000000000000..28758868f13606a3433f754b6cc1913a0fc352fb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout011.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout011 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis(0) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout012.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout012.ets new file mode 100644 index 0000000000000000000000000000000000000000..d10c57d1bc69a2e75fb98e386fece0198a4dae92 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout012.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout012 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis(100) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout013.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout013.ets new file mode 100644 index 0000000000000000000000000000000000000000..97b4c0a30ea7000e77908434d8eb0075b5326cf8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout013.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout013 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("200fp") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout014.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout014.ets new file mode 100644 index 0000000000000000000000000000000000000000..e9b081faf8808b46267424e43d93b1e7d30aff76 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout014.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout014 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("200lpx") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout015.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout015.ets new file mode 100644 index 0000000000000000000000000000000000000000..f058da3f5bd3b0d33d85218e0dcf9b82bb89997b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout015.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout015 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("200px") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout016.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout016.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e2997a07fa9d6cd606bf5f66a9c6fbd297b6a0b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout016.ets @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout016 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("200vp") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout017.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout017.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3651dbc46f96ae5cda1aa831ae81bdaf2ed5feb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout017.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 UIComponentLayoutColumnLayout017 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexBasis("auto") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout018.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout018.ets new file mode 100644 index 0000000000000000000000000000000000000000..da1a18a6ac1b300c920f07f63b248b8a58993786 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout018.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout018 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(3) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(2) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight(1) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout019.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout019.ets new file mode 100644 index 0000000000000000000000000000000000000000..7a06b190bf4a81d332d9fc190b63ecbaac25f4c8 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout019.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout019 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(0.5) + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout020.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout020.ets new file mode 100644 index 0000000000000000000000000000000000000000..184ffbaa3e995c2f0eddcc9bdb4b51b268a3136c --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout020.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentLayoutColumnLayout020 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(1) + + 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} + + }) + + } +} diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout021.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout021.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f4a1afb111ecd97ce55b1fe40223e2acb3d9c5d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout021.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout021 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight("3") + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight("2") + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight("1") + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout022.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout022.ets new file mode 100644 index 0000000000000000000000000000000000000000..8a1acc9f04ead7ad7cbe0641ddcd606b734e0109 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout022.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout022 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight("3") + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight("2") + + 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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout023.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout023.ets new file mode 100644 index 0000000000000000000000000000000000000000..5301af53ce1006efdd551b63ff2f402e2824af1d --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout023.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// @Entry +// @Component +// struct UIComponentLayoutColumnLayout023 { +// +// build() { +// Column({space:30}) { +// +// Column(){ +// } +// .width(300) +// .height(30) +// .backgroundColor(Color.Orange) +// .flexGrow +// +// Column(){ +// } +// .width(300) +// .height(30) +// .backgroundColor(Color.Yellow) +// .flexGrow(undefined) +// +// Column(){ +// } +// .width(300) +// .height(30) +// .backgroundColor(Color.Gray) +// +// +// } +// .width('350') +// .height('200') +// .border({ +// width:{left:3,right:3,top:3,bottom:3} +// +// }) +// +// } +// } diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout024.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout024.ets new file mode 100644 index 0000000000000000000000000000000000000000..ff1de41f28cd758aca8d223eaa63828438efa417 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout024.ets @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *//* + + +@Entry +@Component +struct UIComponentLayoutColumnLayout024 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexShrink() + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexShrink() + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexShrink() + + } + .width('350') + .height('200') + .border({ + width:{left:3,right:3,top:3,bottom:3} + + }) + + } +}*/ diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout025.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout025.ets new file mode 100644 index 0000000000000000000000000000000000000000..741635ef12cef87dca156499341d82fce14df18b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout025.ets @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout025 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexShrink(2) + .layoutWeight(3) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexShrink(2) + .layoutWeight(2) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexShrink(2) + .layoutWeight(1) + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout028.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout028.ets new file mode 100644 index 0000000000000000000000000000000000000000..23ea2a04bf1a2df0a5ee618b1cfaf5a202cdc589 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout028.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout028 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexGrow(-5) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexGrow(-5) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexGrow(-5) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout029.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout029.ets new file mode 100644 index 0000000000000000000000000000000000000000..fc76eff67a2a95d5ab30e43af41db39ce1a9dccb --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout029.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout029 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexGrow(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexGrow(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexGrow(null) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout030.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout030.ets new file mode 100644 index 0000000000000000000000000000000000000000..26c3217a5c861cf0fed2eca5aa994690c2f8ed9b --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout030.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout030 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexGrow(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexGrow(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexGrow(undefined) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout031.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout031.ets new file mode 100644 index 0000000000000000000000000000000000000000..7af058dc7f766f991629b0712c9539e0ec811b01 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout031.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout031 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexGrow(3) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexGrow(2) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexGrow(1) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout032.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout032.ets new file mode 100644 index 0000000000000000000000000000000000000000..4885fbd9556780af9809984e9b8e6f8568580e27 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout032.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout032 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexShrink(-5) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexShrink(-5) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexShrink(-5) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout033.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout033.ets new file mode 100644 index 0000000000000000000000000000000000000000..888e92676b29f65f610ca78adc300c2c94668cb1 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout033.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout033 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexShrink(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexShrink(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexShrink(null) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout034.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout034.ets new file mode 100644 index 0000000000000000000000000000000000000000..80825e2897626157959a91a2f5f6c9027cbfbc12 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout034.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout034 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .flexShrink(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .flexShrink(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .flexShrink(undefined) + + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout036.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout036.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e9b9310c3f8d35b3ad2ec4c9133b725515896ea --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout036.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout036 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight("aaa") + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight("aaa") + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight("aaa") + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout037.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout037.ets new file mode 100644 index 0000000000000000000000000000000000000000..e9dde555726188f797ef909fad515b83aa8a495e --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout037.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout037 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(-10) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(-10) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight(-10) + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout038.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout038.ets new file mode 100644 index 0000000000000000000000000000000000000000..08400d4daad8ddb53b9b0b512961118439886c36 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout038.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout038 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(null) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight(null) + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout039.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout039.ets new file mode 100644 index 0000000000000000000000000000000000000000..a6f5782bb3314f71693176a5029709c082cc9fef --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout039.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout039 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(undefined) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Gray) + .layoutWeight(undefined) + } + .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/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout040.ets b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout040.ets new file mode 100644 index 0000000000000000000000000000000000000000..827087925e98bebc65e25128cf87ca23f5e2ef87 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout040.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentLayoutColumnLayout040 { + + build() { + Column({space:30}) { + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Orange) + .layoutWeight(3) + + Column(){ + } + .width(300) + .height(30) + .backgroundColor(Color.Yellow) + .layoutWeight(2) + + 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/media/closeeye.png b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/closeeye.png new file mode 100644 index 0000000000000000000000000000000000000000..9beb2c55ef1f1b2068cc6d90cd3615ef99c16c63 Binary files /dev/null and b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/closeeye.png differ diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/color.json b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/color.json new file mode 100644 index 0000000000000000000000000000000000000000..5e2848dc24cef89cfce3d8a902fc57706fa3eb22 --- /dev/null +++ b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/color.json @@ -0,0 +1,12 @@ +{ + "color": [ + { + "name": "start_window_background", + "value": "#FFFFFF" + }, + { + "name": "Pink", + "value": "#FFC0CB" + } + ] +} \ No newline at end of file diff --git a/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/openeye.png b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/openeye.png new file mode 100644 index 0000000000000000000000000000000000000000..a3746529b0f1d64e8caa04df40bfc438d3946ced Binary files /dev/null and b/function/ui_compare/uicompare/entry/src/ohosTest/resources/base/media/openeye.png differ 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 b8e10e5d51fc79c4ff120fdf9ea2c7d7303a96d2..2f0713870044a3f714a3a7dc00fbec1d3b87b77a 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 @@ -920,6 +920,43 @@ "testability/pages/TestCase/TestCase_e258911ff5a0411e9247357a22a2c128", "testability/pages/TestCase/TestCase_e819a4c2faab4092926606af04a2fe87", "testability/pages/TestCase/TestCase_eeb912d7773848319cc46ef49f13b3fe", - "testability/pages/TestCase/TestCase_fcd2f3601c9a4ed9832c93022cd8d6cf" + "testability/pages/TestCase/TestCase_fcd2f3601c9a4ed9832c93022cd8d6cf", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout001", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout002", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout003", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout004", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout005", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout006", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout007", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout008", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout009", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout010", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout011", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout012", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout013", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout014", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout015", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout016", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout017", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout018", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout019", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout020", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout021", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout022", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout023", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout024", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout025", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout028", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout029", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout030", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout031", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout032", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout033", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout034", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout036", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout037", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout038", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout039", + "testability/pages/UIComponentLayoutColumnLayout/UIComponentLayoutColumnLayout040" ] }