diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 87c82566b0734d29c4501028abbf54e47fb8eb2b..8d356f54dd683a8a76daba2000322886e969396a 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -80,6 +80,16 @@ import UIComponentScrollSwiperAcross from './UIComponentScrollSwiperAcrossTest/U import UIComponentScrollSwiperTeace from './UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test'; import UIComponentScrollSwiperDisplaycount from './UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test'; import UIComponentScrollSwiperArrowHead from './UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test'; +import UIComponentScrollSwiperMirroring from './UIComponentScrollSwiperMirroringTest/UIComponentScrollSwiperMirroring.test' +import UIComponentScrollSwiperDisplayedcolumns from './UIComponentScrollSwiperDisplayedcolumnTest/UIComponentScrollSwiperDisplayedcolumns.test' +import UIComponentScrollSwiperNextPreviousMargin from './UIComponentScrollSwiperNextPreviousMarginTest/UIComponentScrollSwiperNextPreviousMargin.test' +import UIComponentScrollSwiperAdd from './UIComponentScrollSwiperAddTest/UIComponentScrollSwiperAdd.test' +import UIComponentScrollSwiperStyle from './UIComponentScrollSwiperStyleTest/UIComponentScrollSwiperStyle.test' +import UIComponentScrollSwiperInterfacemix from './UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test' +import UIComponentScrollSwiperDrag from './UIComponentScrollSwiperDragTest/UIComponentScrollSwiperDrag.test' +import UIComponentScrollSwiperMargin from './UIComponentScrollSwiperMarginTest/UIComponentScrollSwiperMargin.test' +import UIArkuiSwiperNavigationPoint from './UIArkuiSwiperNavigationPointTest/UIArkuiSwiperNavigationPoint.test' +import UIComponentScrollSwiperSwiper from './UIComponentScrollSwiperSwiperTest/UIComponentScrollSwiperSwiper.test' export default function testsuite() { @@ -137,4 +147,14 @@ export default function testsuite() { UIComponentScrollSwiperTeace(); UIComponentScrollSwiperDisplaycount(); UIComponentScrollSwiperArrowHead(); + UIComponentScrollSwiperMirroring(); + UIComponentScrollSwiperDisplayedcolumns(); + UIComponentScrollSwiperAdd(); + UIComponentScrollSwiperStyle(); + UIComponentScrollSwiperNextPreviousMargin(); + UIComponentScrollSwiperInterfacemix(); + UIComponentScrollSwiperDrag(); + UIComponentScrollSwiperMargin(); + UIArkuiSwiperNavigationPoint(); + UIComponentScrollSwiperSwiper(); } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIArkuiSwiperNavigationPointTest/UIArkuiSwiperNavigationPoint.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIArkuiSwiperNavigationPointTest/UIArkuiSwiperNavigationPoint.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c89db1e6079d3e41da29add4526d8d30674e5e4e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIArkuiSwiperNavigationPointTest/UIArkuiSwiperNavigationPoint.test.ets @@ -0,0 +1,371 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIArkuiSwiperNavigationPoint() { + + describe('UIArkuiSwiperNavigationPoint', () => { + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0080 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0080 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080") + await Utils.sleep(3000) + + let driver = Driver.create() + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0080')); + let point = await swiper.getBoundsCenter(); + await driver.fling({x: point.x + 200, y: point.y}, {x: point.x - 200, y: point.y}, 5, 1000); + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0100 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0100 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0100')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0090 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0090 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0090')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0120 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0120 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0120')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0140 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0140 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let button_showNext:Component =await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0140_showNext')); + button_showNext.click() + await Utils.sleep(1000) + let button_showPrevious:Component =await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0140_showPrevious')); + button_showPrevious.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0030 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0030 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0030')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0020 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0020 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_1 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_1 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0060_1')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_2 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_2 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0060_2')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_3 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_3 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0060_3')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_3 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_4 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_4 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0060_4')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_4 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_5 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_5', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_4 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0060_5')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0060_5 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_1 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_1 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0070_1')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_2 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_2 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0070_2')); + let point = await swiper.getBoundsCenter(); + + await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + await Utils.sleep(1000) + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_3 + */ + it('SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_3 start.`); + Settings.createWindow("testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3") + await Utils.sleep(3000) + + let driver: Driver = Driver.create(); + let swiper: Component = await driver.findComponent(ON.id('UIArkuiSwiperNavigationPoint0070_3')); + let point = await swiper.getBoundsCenter(); + + // await driver.fling({x: point.x - 200, y: point.y}, {x: point.x + 200, y: point.y}, 5, 1000); + // await Utils.sleep(1000) + + // let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + // await swiperIndicator.click(); + await driver.mouseMoveTo({ + x: point.x, y: point.y + }); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_ARKUI_SWIPER_NAVIGATION_POINT_0070_3 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets index 77c7949e6e7fe062286012c99cf86d77ba3f1087..b2a6b975f96a00df3365b01e021bc03a052ce3f9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -28,16 +28,16 @@ export default function UIComponentScrollSwiperAcross() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let driver: Driver = Driver.create() let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0010_ChangeIndex')); button_ChangeIndex.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0010_ShowNext')); button_ShowNext.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0010 finish.`); done() @@ -53,7 +53,7 @@ export default function UIComponentScrollSwiperAcross() { let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0030_ChangeIndex')); button_ChangeIndex.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0030 finish.`); done() @@ -69,7 +69,7 @@ export default function UIComponentScrollSwiperAcross() { let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0060_Remove')); button_ChangeIndex.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 finish.`); done() @@ -85,7 +85,7 @@ export default function UIComponentScrollSwiperAcross() { let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0060_ChangeIndex')); button_ChangeIndex.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAddTest/UIComponentScrollSwiperAdd.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAddTest/UIComponentScrollSwiperAdd.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf5147f2a4ab49600604b71bbedc58e9d22257f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAddTest/UIComponentScrollSwiperAdd.test.ets @@ -0,0 +1,388 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperAdd() { + + describe('UIComponentScrollSwiperAdd', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0020 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0020 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 100, y: 150 + }, { + x: 200, y: 150 + }, 5, 2000) + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0030 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0030 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0240 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0240 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0240 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0420 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0420 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 200, y: 150 + }, { + x: 100, y: 150 + }, 5, 2000) + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0420 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0430 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0430 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 200, y: 150 + }, { + x: 80, y: 150 + }, 5, 2000) + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0430 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0440 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0440 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 200, y: 150 + }, { + x: 80, y: 150 + }, 5, 2000) + await Utils.sleep(1000) + await diver.fling({ + x: 200, y: 150 + }, { + x: 40, y: 150 + }, 5, 2000) + await Utils.sleep(1000) + await diver.fling({ + x: 200, y: 150 + }, { + x: 40, y: 150 + }, 5, 2000) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0440 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0450 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0450 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 150, y: 100 + }, { + x: 100, y: 100 + }, 5, 2000) + await Utils.sleep(1000) + await diver.fling({ + x: 100, y: 100 + }, { + x: 80, y: 100 + }, 5, 2000) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0450 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0460 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0460 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({ + x: 150, y: 100 + }, { + x: 100, y: 100 + }, 5, 2000) + await Utils.sleep(1000) + await diver.fling({ + x: 100, y: 100 + }, { + x: 80, y: 100 + }, 5, 2000) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0460 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0200 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0200 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0200 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0120 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0110 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0190 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0190 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0080 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0080 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0070 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0070 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0210 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0210 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0140 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0130 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0100 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0100 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let swiperArrow = await driver.findComponent(ON.id("swiperadd0100")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 210, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0090 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0090 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let swiperArrow = await driver.findComponent(ON.id("swiperadd0090")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 210, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0090 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0470 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0470 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({x:150, y:100}, {x:100, y:100}, 5, 2000) + await Utils.sleep(1000) + await diver.fling({x:100, y:100}, {x:80, y:100}, 5, 2000) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0470 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0480 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0480 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({x:150, y:100}, {x:80, y:100}, 5, 2000) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0480 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0490 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0490 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490") + await Utils.sleep(1000) + let diver = Driver.create() + await diver.fling({x:150, y:100}, {x:80, y:100}, 5, 2000) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ADD_0490 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets index 1169f15bc574347f786ff4b08e067cb9c29150c0..17f2fa6f723d646dd008e55767cf88021f06b12e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -30,7 +30,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0010 finish.`); done() @@ -43,7 +43,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0020 finish.`); done() @@ -61,7 +61,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0030 finish.`); done() @@ -79,7 +79,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0040 finish.`); done() @@ -92,7 +92,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0610 finish.`); done() @@ -105,7 +105,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0620 finish.`); done() @@ -123,7 +123,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0630 finish.`); done(); @@ -141,7 +141,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0640 finish.`); done(); @@ -163,7 +163,7 @@ export default function UIComponentScrollSwiperArrowHead() { x: arrowPoint.x, y: arrowPoint.y }, MouseButton.MOUSE_BUTTON_LEFT); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(3000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0650 finish.`); done(); @@ -185,7 +185,7 @@ export default function UIComponentScrollSwiperArrowHead() { x: arrowPoint.x, y: arrowPoint.y }, MouseButton.MOUSE_BUTTON_LEFT); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(3000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0660 finish.`); done() @@ -208,7 +208,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0670 finish.`); done() @@ -231,7 +231,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0680 finish.`); done() @@ -244,7 +244,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0690 finish.`); done() @@ -257,7 +257,7 @@ export default function UIComponentScrollSwiperArrowHead() { let swiperArrow = await driver.findComponent(ON.type("RightArrow")); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000); Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0700 finish.`); done() @@ -275,7 +275,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0710 finish.`); done() @@ -293,7 +293,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0720 finish.`); done() @@ -316,7 +316,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0730 finish.`); done() @@ -339,7 +339,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0740 finish.`); done() @@ -362,7 +362,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0750 finish.`); done() @@ -385,7 +385,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0760 finish.`); done() @@ -408,7 +408,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0770 finish.`); done() @@ -431,7 +431,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0780 finish.`); done() @@ -460,7 +460,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0790 finish.`); done() @@ -489,7 +489,7 @@ export default function UIComponentScrollSwiperArrowHead() { await Utils.sleep(3000); await swiperArrow.click(); await Utils.sleep(1000); - windowSnap.snapShot(); + await windowSnap.snapShot(); await Utils.sleep(1000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0800 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets index d814c97a0e1cfcd9e1d41e2ad91f718b472128da..b9600a43563e9dedaf3a08ab446fdce21d6dc215 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -28,12 +28,12 @@ export default function UIComponentScrollSwiperDisplaycount() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let driver: Driver = Driver.create() let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperDisplaycount0140_ShowPrevious')); button_ShowNext.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140 finish.`); done() @@ -45,12 +45,12 @@ export default function UIComponentScrollSwiperDisplaycount() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let driver: Driver = Driver.create() let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperDisplaycount0130_ShowNext')); button_ShowPrevious.click() await Utils.sleep(2000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplayedcolumnTest/UIComponentScrollSwiperDisplayedcolumns.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplayedcolumnTest/UIComponentScrollSwiperDisplayedcolumns.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..9c64947486c864d4f997c0ff6dcdb1f9f67deea4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplayedcolumnTest/UIComponentScrollSwiperDisplayedcolumns.test.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperDisplayedcolumns() { + + describe('UIComponentScrollSwiperDisplayedcolumns', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYEDC0LUMNS_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYEDC0LUMNS_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYEDC0LUMNS_0050 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYEDC0LUMNS_0050 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDragTest/UIComponentScrollSwiperDrag.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDragTest/UIComponentScrollSwiperDrag.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2928ca7c4d671ad014a76f49d82edbfc39ff0312 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDragTest/UIComponentScrollSwiperDrag.test.ets @@ -0,0 +1,400 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperDrag() { + + describe('UIComponentScrollSwiperDrag', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0110 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0130 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0130 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0140 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0150 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0150 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0160 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0170 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0170 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0330 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0330 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0330 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0340 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0340 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0360 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0360 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0360 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0370 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0370 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0370 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0380 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0380 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0380 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0760 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0760 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760") + await Utils.sleep(1000) + let driver = Driver.create(); + await driver.fling({x: 500, y: 480},{x: 450, y: 480},5,20000); + await Utils.sleep(3000); + await await windowSnap.snapShot(); + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0760 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0390 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0390 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0400 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0400 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0410 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0410 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0420 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0420 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0430 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0430 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0440 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0440 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0450 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0450 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0460 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0460 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0470 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0470 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0480 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0480 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0490 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0490 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0500 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0500 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0510 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0510 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0520 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0520 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0530 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0530 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0540 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0540 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0570 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0570 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0590 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0590 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0650 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0650 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0120 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120") + await Utils.sleep(1000) + await await windowSnap.snapShot(); + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0690 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0690 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let swiperArrow = await driver.findComponent(ON.id("swiperdrag0690")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 210, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await await windowSnap.snapShot(); + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0690 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0680 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0680 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680") + await Utils.sleep(1000) + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let swiperArrow = await driver.findComponent(ON.id("swiperdrag0680")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x -150, y: point2.y}, {x: point2.x +100, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await await windowSnap.snapShot(); + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DRAG_0680 finish.`); + done() + }) + + }) +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets index 3611b9713ea70203d241ba3138eefe536e5adbcd..dea3c2174468a40f5b6b63e21875e2dc7a6439fb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -25,7 +25,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0040 finish.`); done() @@ -37,7 +37,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 finish.`); done() @@ -49,7 +49,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830 finish.`); done() @@ -61,7 +61,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160 finish.`); done() @@ -73,7 +73,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300 finish.`); done() @@ -85,7 +85,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310 finish.`); done() @@ -97,7 +97,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330 finish.`); done() @@ -109,7 +109,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340 finish.`); done() @@ -121,7 +121,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350 finish.`); done() @@ -133,7 +133,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380 finish.`); done() @@ -145,7 +145,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430 finish.`); done() @@ -157,7 +157,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450 finish.`); done() @@ -169,7 +169,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460 finish.`); done() @@ -181,7 +181,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500 finish.`); done() @@ -193,7 +193,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510 finish.`); done() @@ -205,7 +205,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390 finish.`); done() @@ -217,7 +217,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520 finish.`); done() @@ -229,7 +229,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530 finish.`); done() @@ -238,7 +238,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1010 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1010 finish.`); done() @@ -247,7 +247,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1030 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1030 finish.`); done() @@ -256,7 +256,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1040 finish.`); done() @@ -265,7 +265,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1050 finish.`); done() @@ -274,7 +274,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1180 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1180 finish.`); done() @@ -283,7 +283,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1190 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1190 finish.`); done() @@ -292,7 +292,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1210 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1210 finish.`); done() @@ -301,7 +301,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1220 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1220 finish.`); done() @@ -310,7 +310,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1230 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1230 finish.`); done() @@ -319,7 +319,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1260 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1260 finish.`); done() @@ -328,7 +328,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1270 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1270 finish.`); done() @@ -337,7 +337,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2910 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2910 finish.`); done() @@ -346,7 +346,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3030 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3030 finish.`); done() @@ -355,7 +355,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3040 finish.`); done() @@ -364,7 +364,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3050 finish.`); done() @@ -373,7 +373,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3060 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3060 finish.`); done() @@ -382,7 +382,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3070 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3070 finish.`); done() @@ -391,7 +391,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3120 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3120 finish.`); done() @@ -400,7 +400,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3130 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3130 finish.`); done() @@ -409,7 +409,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3140 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3140 finish.`); done() @@ -421,7 +421,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550 finish.`); done() @@ -433,7 +433,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560 finish.`); done() @@ -445,7 +445,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570 finish.`); done() @@ -457,7 +457,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600 finish.`); done() @@ -469,7 +469,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610 finish.`); done() @@ -481,7 +481,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700 finish.`); done() @@ -493,7 +493,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180 finish.`); done() @@ -505,7 +505,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190 finish.`); done() @@ -517,7 +517,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200 finish.`); done() @@ -529,7 +529,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210 finish.`); done() @@ -541,7 +541,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230 finish.`); done() @@ -553,7 +553,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330 finish.`); done() @@ -565,7 +565,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340 finish.`); done() @@ -577,7 +577,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350 finish.`); done() @@ -589,7 +589,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460 finish.`); done() @@ -601,7 +601,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560 finish.`); done() @@ -613,7 +613,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570 finish.`); done() @@ -625,7 +625,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720 finish.`); done() @@ -637,7 +637,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790 finish.`); done() @@ -649,7 +649,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890 finish.`); done() @@ -661,7 +661,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960 finish.`); done() @@ -673,7 +673,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980 finish.`); done() @@ -685,7 +685,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990 finish.`); done() @@ -697,7 +697,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780 finish.`); done() @@ -713,7 +713,7 @@ export default function UIComponentScrollSwiperInterface() { let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3790_ShowNext')); button_ShowNext.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3790 finish.`); done() @@ -729,7 +729,7 @@ export default function UIComponentScrollSwiperInterface() { let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3810_ShowNext')); button_ShowNext.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810 finish.`); done() @@ -745,7 +745,7 @@ export default function UIComponentScrollSwiperInterface() { let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3820_Previous')); button_ShowPrevious.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3820 finish.`); done() @@ -755,7 +755,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1660 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1660 finish.`); done() @@ -764,7 +764,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1670 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1670 finish.`); done() @@ -773,7 +773,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1680 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1680 finish.`); done() @@ -782,7 +782,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1710 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1710 finish.`); done() @@ -791,7 +791,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1780 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1780 finish.`); done() @@ -800,7 +800,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1860 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1860 finish.`); done() @@ -809,7 +809,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1870 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1870 finish.`); done() @@ -818,7 +818,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1890 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1890 finish.`); done() @@ -827,7 +827,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1900 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1900 finish.`); done() @@ -836,7 +836,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1970 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1970 finish.`); done() @@ -845,7 +845,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2050 finish.`); done() @@ -854,7 +854,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2060 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2060 finish.`); done() @@ -863,7 +863,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2110 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2110 finish.`); done() @@ -872,7 +872,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2160 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2160 finish.`); done() @@ -881,7 +881,7 @@ export default function UIComponentScrollSwiperInterface() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2370 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2370 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7effbbc8eebf3b0e873d5bac9361cf5051e386d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets @@ -0,0 +1,552 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperInterfacemix() { + + describe('UIComponentScrollSwiperInterfacemix', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0020 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0020 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020") + await Utils.sleep(1000) + let driver = Driver.create() + let button_Delete: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0020_delete')); + button_Delete.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0010 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0010 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010") + await Utils.sleep(1000) + let driver = Driver.create() + let button_Delete: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0010_delete')); + button_Delete.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0050 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050") + await Utils.sleep(1000) + let driver = Driver.create() + let button_Add: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0050_add')); + button_Add.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0340 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0340 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0150 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0150 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0150")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + for(let i=0; i<2; i++) { + await driver.fling( + {x: point2.x + 200, y: point2.y}, + {x: point2.x - 200, y: point2.y}, 5, 1000); + await Utils.sleep(2000); + } + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0160 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0160")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + for(let i=0; i<2; i++) { + await driver.fling( + {x: point2.x + 200, y: point2.y}, + {x: point2.x - 200, y: point2.y}, 5, 1000); + await Utils.sleep(2000); + } + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0190 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0190 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190") + await Utils.sleep(1000) + let driver = Driver.create() + let button_Auto: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0190_AUTO_LINEAR')); + button_Auto.click() + await Utils.sleep(1000) + let button_Visibility: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0190_Visibility')); + button_Visibility.click() + await Utils.sleep(1000) + let button_showNext: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0190_showNext')); + for (let i = 0; i < 5; i++) { + button_showNext.click() + await Utils.sleep(500) + } + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0180 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0180 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0180")); + let point2 = await swiperArrow.getBoundsCenter(); + await driver.fling( + {x: point2.x - 200, y: point2.y}, + {x: point2.x + 200, y: point2.y}, 5, 1000); + await Utils.sleep(2000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0280 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0280 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280") + await Utils.sleep(1000) + let driver = Driver.create() + let button_showNext: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0280_showNext')); + button_showNext.click() + await Utils.sleep(1000); + let button_showPrevious: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperInterfacemix0280_showPrevious')); + button_showPrevious.click() + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0280 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0100 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0100 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0100")); + let point2 = await swiperArrow.getBoundsCenter(); + for(let i=0; i<5; i++) { + await driver.fling( + {x: point2.x, y: point2.y + 200}, + {x: point2.x, y: point2.y - 200 }, 5, 1000); + await Utils.sleep(800); + } + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0110 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0110")); + let point2 = await swiperArrow.getBoundsCenter(); + await driver.fling( + {x: point2.x, y: point2.y + 200}, + {x: point2.x, y: point2.y - 200 }, 5, 1000); + await Utils.sleep(800); + await driver.fling( + {x: point2.x, y: point2.y - 200}, + {x: point2.x, y: point2.y + 200 }, 5, 1000); + await Utils.sleep(800); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0070 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0070 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0070")); + let point2 = await swiperArrow.getBoundsCenter(); + await driver.fling( + {x: point2.x, y: point2.y + 100 }, + {x: point2.x, y: point2.y - 100 }, 5, 1000); + await Utils.sleep(1000); + await driver.fling( + {x: point2.x, y: point2.y - 100 }, + {x: point2.x, y: point2.y + 100 }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0080 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0080 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0080")); + let point2 = await swiperArrow.getBoundsCenter(); + await driver.fling( + {x: point2.x, y: point2.y + 100 }, + {x: point2.x, y: point2.y - 100 }, 5, 1000); + await Utils.sleep(1000); + await driver.fling( + {x: point2.x, y: point2.y - 100 }, + {x: point2.x, y: point2.y + 100 }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0130 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0130 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0130")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + for(let i=0; i<2; i++) { + await driver.fling( + {x: point2.x + 200, y: point2.y}, + {x: point2.x - 200, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + } + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0140 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0140")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + for(let i=0; i<2; i++) { + await driver.fling( + {x: point2.x, y: point2.y + 200}, + {x: point2.x, y: point2.y - 200}, 5, 1000); + await Utils.sleep(1000); + } + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0120 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0120")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x, y: point2.y + 200}, {x: point2.x, y: point2.y - 200}, 5, 1000); + await Utils.sleep(800); + await driver.fling({x: point2.x, y: point2.y - 200}, {x: point2.x, y: point2.y + 200}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0090 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0090 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090") + await Utils.sleep(1000) + let driver = Driver.create() + let swiperArrow = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0090")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x, y: point2.y + 200}, {x: point2.x, y: point2.y - 200}, 5, 1000); + await Utils.sleep(800); + await driver.fling({x: point2.x, y: point2.y - 200}, {x: point2.x, y: point2.y + 200}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0090 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0200 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200") + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let swiperArrow = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperArrow.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0200 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0210 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210") + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let button1 = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0210_001")); + let button2 = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0210_002")); + await button1.click(); + await Utils.sleep(2000); + await button2.click() + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0210 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0230 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0230")); + let point = await swiper.getBoundsCenter(); + await Utils.sleep(1000) + for (let i = 1; i <= 2; i++) { + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 210, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + } + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0230 finish.`); + done() + }) + + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0320 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let button_close = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0320_close")); + await button_close.click(); + await Utils.sleep(1000); + + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0320 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0300 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let button_delete = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0300_delete")); + await button_delete.click(); + await Utils.sleep(1000); + + let button_count = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0300_count")); + await button_count.click(); + await Utils.sleep(1000); + + let button_space = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0300_space")); + await button_space.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0300 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0290 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let swiperIndicator = await driver.findComponent(ON.type("SwiperIndicator")); + await swiperIndicator.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0290 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0240 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let button_2 = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0240_2")); + await button_2.click(); + await Utils.sleep(1000); + + let button_showPrevious = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0240_showPrevious")); + await button_showPrevious.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0240 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0310 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let button_showNext = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0310_showNext")); + await button_showNext.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0310 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0250 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250") + await Utils.sleep(3000); + + let driver: Driver = Driver.create(); + let button_showPrevious = await driver.findComponent(ON.id("UIComponentScrollSwiperInterfacemix0250_showPrevious")); + await button_showPrevious.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0250 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0170 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0170 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170") + await Utils.sleep(1000); + let driver = Driver.create(); + let btnswitch = await driver.findComponent(ON.id("btnswitch0170")); + await btnswitch.click() + await Utils.sleep(1000); + let swiperArrow = await driver.findComponent(ON.id("interfacemix0170")); + let point2 = await swiperArrow.getBoundsCenter(); + await Utils.sleep(1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 200, y: point2.y}, 5, 1000); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0170 finish.`); + done() + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets index 445abeb08c950163382684dac11f370114b09185..5b204378197e3671f7e42aa72a3fbae843340d57 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -30,7 +30,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 finish.`); done() @@ -44,7 +44,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 finish.`); done() @@ -58,7 +58,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 finish.`); done() @@ -73,7 +73,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 finish.`); done() @@ -87,7 +87,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 finish.`); done() @@ -101,7 +101,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 finish.`); done() @@ -115,7 +115,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 finish.`); done() @@ -129,7 +129,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 finish.`); done() @@ -143,7 +143,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 finish.`); done() @@ -157,7 +157,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 finish.`); done() @@ -171,7 +171,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 finish.`); done() @@ -185,7 +185,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 finish.`); done() @@ -199,7 +199,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 finish.`); done() @@ -213,7 +213,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 finish.`); done() @@ -227,7 +227,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 finish.`); done() @@ -241,7 +241,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 finish.`); done() @@ -255,7 +255,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 finish.`); done() @@ -269,7 +269,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 finish.`); done() @@ -283,7 +283,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 finish.`); done() @@ -298,7 +298,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 finish.`); done() @@ -312,7 +312,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 finish.`); done() @@ -326,7 +326,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 finish.`); done() @@ -340,7 +340,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 finish.`); done() @@ -354,7 +354,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 finish.`); done() @@ -368,7 +368,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 finish.`); done() @@ -382,7 +382,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 finish.`); done() @@ -396,7 +396,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 finish.`); done() @@ -410,7 +410,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 finish.`); done() @@ -424,7 +424,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 finish.`); done() @@ -438,7 +438,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 finish.`); done() @@ -452,7 +452,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 finish.`); done() @@ -466,7 +466,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 finish.`); done() @@ -480,7 +480,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 finish.`); done() @@ -494,7 +494,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 finish.`); done() @@ -508,7 +508,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 finish.`); done() @@ -522,7 +522,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 finish.`); done() @@ -536,7 +536,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 finish.`); done() @@ -550,7 +550,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 finish.`); done() @@ -564,7 +564,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 finish.`); done() @@ -579,7 +579,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 finish.`); done() @@ -593,7 +593,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 finish.`); done() @@ -607,7 +607,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 finish.`); done() @@ -621,7 +621,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 finish.`); done() @@ -635,7 +635,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 finish.`); done() @@ -649,7 +649,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 finish.`); done() @@ -663,7 +663,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 finish.`); done() @@ -677,7 +677,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 finish.`); done() @@ -691,7 +691,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 finish.`); done() @@ -705,7 +705,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 finish.`); done() @@ -719,7 +719,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 finish.`); done() @@ -733,7 +733,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 finish.`); done() @@ -747,7 +747,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 finish.`); done() @@ -761,7 +761,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 finish.`); done() @@ -775,7 +775,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 finish.`); done() @@ -789,7 +789,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 finish.`); done() @@ -803,7 +803,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 finish.`); done() @@ -817,7 +817,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 finish.`); done() @@ -831,7 +831,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 finish.`); done() @@ -845,7 +845,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 finish.`); done() @@ -860,7 +860,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 finish.`); done() @@ -874,7 +874,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 finish.`); done() @@ -888,7 +888,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 finish.`); done() @@ -902,7 +902,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 finish.`); done() @@ -916,7 +916,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 finish.`); done() @@ -930,7 +930,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 finish.`); done() @@ -944,7 +944,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 finish.`); done() @@ -958,7 +958,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 finish.`); done() @@ -972,7 +972,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 finish.`); done() @@ -986,7 +986,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 finish.`); done() @@ -1000,7 +1000,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 finish.`); done() @@ -1014,7 +1014,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 finish.`); done() @@ -1028,7 +1028,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 finish.`); done() @@ -1042,7 +1042,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 finish.`); done() @@ -1056,7 +1056,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 finish.`); done() @@ -1070,7 +1070,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 finish.`); done() @@ -1084,7 +1084,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 finish.`); done() @@ -1100,7 +1100,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 finish.`); done() @@ -1114,7 +1114,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 finish.`); done() @@ -1128,7 +1128,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 finish.`); done() @@ -1142,7 +1142,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 finish.`); done() @@ -1156,7 +1156,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 finish.`); done() @@ -1170,7 +1170,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 finish.`); done() @@ -1184,7 +1184,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 finish.`); done() @@ -1198,7 +1198,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 finish.`); done() @@ -1212,7 +1212,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 finish.`); done() @@ -1226,7 +1226,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 finish.`); done() @@ -1240,7 +1240,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 finish.`); done() @@ -1254,7 +1254,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 finish.`); done() @@ -1268,7 +1268,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 finish.`); done() @@ -1282,7 +1282,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 finish.`); done() @@ -1296,7 +1296,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 finish.`); done() @@ -1311,7 +1311,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 finish.`); done() @@ -1325,7 +1325,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 finish.`); done() @@ -1339,7 +1339,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 finish.`); done() @@ -1353,7 +1353,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 finish.`); done() @@ -1367,7 +1367,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010") await Utils.sleep(3000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 finish.`); done() @@ -1383,7 +1383,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770 finish.`); done() @@ -1399,7 +1399,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790 finish.`); done() @@ -1415,7 +1415,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810 finish.`); done() @@ -1431,7 +1431,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020 finish.`); done() @@ -1447,7 +1447,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040 finish.`); done() @@ -1463,7 +1463,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050 finish.`); done() @@ -1473,7 +1473,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1060 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1060 finish.`); done() @@ -1483,7 +1483,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1080 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1080 finish.`); done() @@ -1492,7 +1492,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1090 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1090 finish.`); done() @@ -1501,7 +1501,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1100 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1100 finish.`); done() @@ -1510,7 +1510,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1110 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1110 finish.`); done() @@ -1519,7 +1519,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1120 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1120 finish.`); done() @@ -1528,7 +1528,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1130 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1130 finish.`); done() @@ -1537,7 +1537,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1140 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1140 finish.`); done() @@ -1546,7 +1546,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1150 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1150 finish.`); done() @@ -1555,7 +1555,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1160 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1160 finish.`); done() @@ -1564,7 +1564,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1170 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1170 finish.`); done() @@ -1573,7 +1573,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1180 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1180 finish.`); done() @@ -1582,7 +1582,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1190 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1190 finish.`); done() @@ -1591,7 +1591,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1200 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1200 finish.`); done() @@ -1600,7 +1600,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1210 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1210 finish.`); done() @@ -1609,7 +1609,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1220 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1220 finish.`); done() @@ -1618,7 +1618,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1230 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1230 finish.`); done() @@ -1627,7 +1627,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1240 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1240 finish.`); done() @@ -1636,7 +1636,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1250 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1250 finish.`); done() @@ -1645,7 +1645,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1260 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1260 finish.`); done() @@ -1654,7 +1654,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1270 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1270 finish.`); done() @@ -1663,7 +1663,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1280 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1280 finish.`); done() @@ -1672,7 +1672,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1290 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1290 finish.`); done() @@ -1681,7 +1681,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1300 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1300 finish.`); done() @@ -1690,7 +1690,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1310 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1310 finish.`); done() @@ -1699,7 +1699,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1320 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1320 finish.`); done() @@ -1708,7 +1708,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1330 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1330 finish.`); done() @@ -1717,7 +1717,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1340 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1340 finish.`); done() @@ -1726,7 +1726,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1350 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1350 finish.`); done() @@ -1735,7 +1735,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1360 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1360 finish.`); done() @@ -1744,7 +1744,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1370 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1370 finish.`); done() @@ -1753,7 +1753,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1380 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1380 finish.`); done() @@ -1762,7 +1762,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1390 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1390 finish.`); done() @@ -1771,7 +1771,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1400 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1400 finish.`); done() @@ -1780,7 +1780,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1410 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1410 finish.`); done() @@ -1789,7 +1789,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1420 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1420 finish.`); done() @@ -1798,7 +1798,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1430 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1430 finish.`); done() @@ -1807,7 +1807,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1440 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1440 finish.`); done() @@ -1816,7 +1816,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1450 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1450 finish.`); done() @@ -1825,7 +1825,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1460 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1460 finish.`); done() @@ -1834,7 +1834,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1470 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1470 finish.`); done() @@ -1843,7 +1843,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1480 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1480 finish.`); done() @@ -1852,7 +1852,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1490 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1490 finish.`); done() @@ -1861,7 +1861,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1500 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1500 finish.`); done() @@ -1870,7 +1870,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1510 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1510 finish.`); done() @@ -1879,7 +1879,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1520 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1520 finish.`); done() @@ -1890,7 +1890,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1530 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1530 finish.`); done() @@ -1899,7 +1899,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1540 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1540 finish.`); done() @@ -1908,7 +1908,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1550 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1550 finish.`); done() @@ -1917,7 +1917,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1560 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1560 finish.`); done() @@ -1926,7 +1926,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1570 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1570 finish.`); done() @@ -1935,7 +1935,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1580 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1580 finish.`); done() @@ -1944,7 +1944,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1590 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1590 finish.`); done() @@ -1953,7 +1953,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1600 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1600 finish.`); done() @@ -1962,7 +1962,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1610 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1610 finish.`); done() @@ -1971,7 +1971,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1620 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1620 finish.`); done() @@ -1980,7 +1980,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1630 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1630 finish.`); done() @@ -1989,7 +1989,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1640 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1640 finish.`); done() @@ -1998,7 +1998,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1650 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1650 finish.`); done() @@ -2007,7 +2007,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1660 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1660 finish.`); done() @@ -2016,7 +2016,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1670 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1670 finish.`); done() @@ -2025,7 +2025,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1680 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1680 finish.`); done() @@ -2034,7 +2034,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1690 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1690 finish.`); done() @@ -2043,7 +2043,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1700 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1700 finish.`); done() @@ -2052,7 +2052,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1710 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1710 finish.`); done() @@ -2061,7 +2061,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1720 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1720 finish.`); done() @@ -2070,7 +2070,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1730 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1730 finish.`); done() @@ -2079,7 +2079,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1740 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1740 finish.`); done() @@ -2088,7 +2088,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1750 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1750 finish.`); done() @@ -2097,7 +2097,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1760 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1760 finish.`); done() @@ -2106,7 +2106,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1770 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1770 finish.`); done() @@ -2115,7 +2115,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1780 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1780 finish.`); done() @@ -2124,7 +2124,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1790 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1790 finish.`); done() @@ -2133,7 +2133,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1860 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1860 finish.`); done() @@ -2142,7 +2142,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1870 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1870 finish.`); done() @@ -2151,7 +2151,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1880 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1880 finish.`); done() @@ -2160,7 +2160,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1890 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1890 finish.`); done() @@ -2169,7 +2169,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1900 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1900 finish.`); done() @@ -2178,7 +2178,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1910 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1910 finish.`); done() @@ -2187,7 +2187,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1920 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1920 finish.`); done() @@ -2196,7 +2196,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1930 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1930 finish.`); done() @@ -2205,7 +2205,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1940 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1940 finish.`); done() @@ -2214,7 +2214,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1950 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1950 finish.`); done() @@ -2223,7 +2223,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1960 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1960 finish.`); done() @@ -2232,7 +2232,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1970 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1970 finish.`); done() @@ -2241,7 +2241,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1980 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1980 finish.`); done() @@ -2250,7 +2250,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1990 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1990 finish.`); done() @@ -2259,7 +2259,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2000 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2000 finish.`); done() @@ -2268,7 +2268,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2010 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2010 finish.`); done() @@ -2277,7 +2277,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2020 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2020 finish.`); done() @@ -2286,7 +2286,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2030 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2030 finish.`); done() @@ -2295,7 +2295,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2040 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2040 finish.`); done() @@ -2304,7 +2304,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2050 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050") await Utils.sleep(4000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2050 finish.`); done() @@ -2316,7 +2316,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800 finish.`); done() @@ -2328,7 +2328,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810 finish.`); done() @@ -2340,7 +2340,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820") await Utils.sleep(2000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820 finish.`); done() @@ -2352,7 +2352,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830") await Utils.sleep(2000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830 finish.`); done() @@ -2364,7 +2364,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1840 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1840 finish.`); done() @@ -2376,7 +2376,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 finish.`); done() @@ -2388,7 +2388,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060 finish.`); done() @@ -2400,7 +2400,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070 finish.`); done() @@ -2412,7 +2412,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080 finish.`); done() @@ -2424,7 +2424,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090 finish.`); done() @@ -2436,7 +2436,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100 finish.`); done() @@ -2448,7 +2448,7 @@ export default function UIComponentScrollSwiperLayout() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMarginTest/UIComponentScrollSwiperMargin.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMarginTest/UIComponentScrollSwiperMargin.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3846ee603e522bc542d752948c839a57a2fd77a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMarginTest/UIComponentScrollSwiperMargin.test.ets @@ -0,0 +1,287 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperMargin() { + + describe('UIComponentScrollSwiperMargin', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0270 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0270 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(4000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0270 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0280 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0280 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(4000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARIGN_0280 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0040 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0040 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("swipermargin0050")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 2000); + await Utils.sleep(1000); + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 2000); + await Utils.sleep(1000); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 2000); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050_3 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050"); + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("swipermargin0050")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 2000); + await Utils.sleep(1000); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 2000); + await Utils.sleep(1000); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 2000); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0050 finish.`); + done() + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0280 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARIGN_0060 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARIGN_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARIGN_0060 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARIGN_0060 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0100 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0100 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0100 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0120 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0120")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0120 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0130 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0130")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0140")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0140 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0150 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0150")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0150 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0160")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0170 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0170 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperMargin0170")); + let point = await swiper.getBoundsCenter(); + await driver.fling({ + x: point.x + 200, y: point.y + }, { + x: point.x - 200, y: point.y + }, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MARGIN_0170 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMirroringTest/UIComponentScrollSwiperMirroring.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMirroringTest/UIComponentScrollSwiperMirroring.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef8fbfd0cc1ac2b070539089b4228ba7f58e2897 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMirroringTest/UIComponentScrollSwiperMirroring.test.ets @@ -0,0 +1,462 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperMirroring() { + + describe('UIComponentScrollSwiperMirroring', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0050 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperMirroring0050_ShowNext')); + button_ShowNext.click() + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0060 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0060 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperMirroring0060_showPrevious')); + button_ShowNext.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0350 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0350 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperMirroring0350_ShowNext')); + button_ShowNext.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0350 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0360 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0360 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button_showPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperMirroring0360_showPrevious')); + button_showPrevious.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0360 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0070 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0070 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0370 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0370 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0370 finish.`); + done() + }) + /* @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0340 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0340 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0040 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0040 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0040 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0540 +*/ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0540 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0540 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0240 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0240 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0280 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0280 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0280 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0150 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0120 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0150 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0160 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0160 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0170 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0170 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0490 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0490 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0490 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0510 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0510 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0510 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0530 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0530 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0530 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0530 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0550 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0550 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0530 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0570 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0570 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0580 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0580 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580") + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0580 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0180 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0180 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180") + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0140 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140") + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_IRRORING_0140 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0190 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0190 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0220 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0220 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0230 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0230 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0250 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0250 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0260 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0260 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0270 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0270 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0560 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0560 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0520 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0520 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0410 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0410 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0420 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0420 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0440 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0440 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0450 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0450 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0460 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0460 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0470 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0470 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0480 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_MIRRORING_0480 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperNextPreviousMarginTest/UIComponentScrollSwiperNextPreviousMargin.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperNextPreviousMarginTest/UIComponentScrollSwiperNextPreviousMargin.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..6bf866f9f84f66340c66edf488d572ec26103898 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperNextPreviousMarginTest/UIComponentScrollSwiperNextPreviousMargin.test.ets @@ -0,0 +1,572 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperNextPreviousMargin() { + + describe('UIComponentScrollSwiperNextPreviousMargin', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0760 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0760 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0760 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0780 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0780 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0780 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0770 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0770 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0770 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0810 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0810 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0810 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0800 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0800 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0800 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0790 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0790 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(4000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0790 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0820 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0820 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0820 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0830 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0830 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0830 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0840 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0840 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0840 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0850 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0850 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0850 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0460 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0460 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0460 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0470 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0470 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0470 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0480 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0480 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0480 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0490 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0490 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0490 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0720 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0720 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0720 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0730 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0730 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0730 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0740 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0740 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0740 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0750 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0750 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0750 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0680 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0680 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0680 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0690 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0690 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0690 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0700 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0700 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0700 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0710 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0710 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0710 finish.`); + done() + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0420 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0420_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0420 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0430 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0430_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0430 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0440 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0440_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0440 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0450 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0450_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0450 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0520 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0520_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0520 finish.`); + done(); + }) + + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0530 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0530_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0530 finish.`); + done(); + }) + + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0540 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0540_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0540 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0550 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0550_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0550 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0560 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0560_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0560 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0570 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0570_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0570 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0580 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0580_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0580 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0590 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0590_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0590 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0600 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0600_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0600 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0610 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0610_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0610 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0620 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0620_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0620 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0630 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0630_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0630 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0640 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0640_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0640 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0650 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0650_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0650 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0660 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0660_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0660 finish.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0670 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670"); + await Utils.sleep(3000); + let driver: Driver = Driver.create() + let swiperButton: Component = await driver.findComponent(ON.id('UIComponentScrollSwiperNextPreviousMargin0670_001')) + swiperButton.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_NEXT_PREVIOUS_MARGIN_0670 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperStyleTest/UIComponentScrollSwiperStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperStyleTest/UIComponentScrollSwiperStyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3799703960115157377fb83b071ed6bb31912686 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperStyleTest/UIComponentScrollSwiperStyle.test.ets @@ -0,0 +1,316 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentScrollSwiperStyle() { + + describe('UIComponentScrollSwiperStyle', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0090_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0050_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0070_2 finish.`); + done() + }) + + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0100_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0110_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0120_2 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_1 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0190_2 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1"); + await Utils.sleep(1000); + let driver = Driver.create(); + let swiper1 = await driver.findComponent(ON.id("UIComponentScrollSwiperStyle0160_11")); + let point1 = await swiper1.getBoundsCenter(); + let swiper2 = await driver.findComponent(ON.id("UIComponentScrollSwiperStyle0160_12")); + let point2 = await swiper2.getBoundsCenter(); + await driver.fling({x: point1.x + 200, y: point1.y}, {x: point1.x - 210, y: point1.y}, 5, 1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 210, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_1 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2"); + await Utils.sleep(1000); + let driver = Driver.create(); + let swiper1 = await driver.findComponent(ON.id("UIComponentScrollSwiperStyle0160_21")); + let point1 = await swiper1.getBoundsCenter(); + let swiper2 = await driver.findComponent(ON.id("UIComponentScrollSwiperStyle0160_22")); + let point2 = await swiper2.getBoundsCenter(); + await driver.fling({x: point1.x + 200, y: point1.y}, {x: point1.x - 210, y: point1.y}, 5, 1000); + await driver.fling({x: point2.x + 200, y: point2.y}, {x: point2.x - 210, y: point2.y}, 5, 1000); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0160_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_1 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_2 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0130_2 finish.`); + done() + }) + + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_1 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_2 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0140_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_1 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_1 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_2 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_2 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_STYLE_0240_2 finish.`); + done() + }) + + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperSwiperTest/UIComponentScrollSwiperSwiper.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperSwiperTest/UIComponentScrollSwiperSwiper.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a21c9e554c61ba738e043815908386e158feb503 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperSwiperTest/UIComponentScrollSwiperSwiper.test.ets @@ -0,0 +1,158 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { KeyCode } from '@ohos.multimodalInput.keyCode' + +export default function UIComponentScrollSwiperSwiper() { + + describe('UIComponentScrollSwiperSwiper', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0010 + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0010 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010") + await Utils.sleep(1000) + let driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0010")); + let point = await swiper.getBoundsCenter(); + + for (let i = 1; i <= 2; i++) { + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + let currentWindow = await Settings.windowClass; + if (currentWindow) { + await currentWindow.hide(); + await driver.triggerKey(KeyCode.KEYCODE_HOME); + await Utils.sleep(1000); + await currentWindow.showWindow(); + } + } + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0010 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0020 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020") + await Utils.sleep(1000) + let driver = Driver.create(); + let swiper1 = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0020_1")); + let point1 = await swiper1.getBoundsCenter(); + let swiper2 = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0020_2")); + let point2 = await swiper2.getBoundsCenter(); + + for (let i = 1; i <= 2; i++) { + await driver.fling({ + x: point1.x - 200, y: point1.y + }, { + x: point1.x + 200, y: point1.y + }, 5, 1000); + await driver.fling({ + x: point2.x - 200, y: point2.y + }, { + x: point2.x + 200, y: point2.y + }, 5, 1000); + let currentWindow = await Settings.windowClass; + if (currentWindow) { + await currentWindow.hide(); + await driver.triggerKey(KeyCode.KEYCODE_HOME); + await Utils.sleep(1000); + await currentWindow.showWindow(); + } + } + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0020 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0030 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030") + await Utils.sleep(1000) + let driver = Driver.create(); + let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0030")); + let point = await swiper.getBoundsCenter(); + + for (let i = 1; i <= 2; i++) { + await driver.fling({ + x: point.x - 200, y: point.y + }, { + x: point.x + 200, y: point.y + }, 5, 1000); + + let currentWindow = await Settings.windowClass; + if (currentWindow) { + await currentWindow.hide(); + await driver.triggerKey(KeyCode.KEYCODE_HOME); + await Utils.sleep(1000); + await currentWindow.showWindow(); + } + } + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0030 finish.`); + done(); + }) + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0040 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040") + await Utils.sleep(1000) + let driver = Driver.create(); + let swiper1 = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0040_1")); + let point1 = await swiper1.getBoundsCenter(); + let swiper2 = await driver.findComponent(ON.id("UIComponentScrollSwiperSwiper0040_2")); + let point2 = await swiper2.getBoundsCenter(); + + for (let i = 1; i <= 2; i++) { + await driver.fling({ + x: point1.x - 200, y: point1.y + }, { + x: point1.x + 200, y: point1.y + }, 5, 1000); + await driver.fling({ + x: point2.x - 200, y: point2.y + }, { + x: point2.x + 200, y: point2.y + }, 5, 1000); + let currentWindow = await Settings.windowClass; + if (currentWindow) { + await currentWindow.hide(); + await driver.triggerKey(KeyCode.KEYCODE_HOME); + await Utils.sleep(1000); + await currentWindow.showWindow(); + } + } + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_SWIPER_0040 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets index 45774daa06b73cc24a86ec09b5236769d0be1526..7ba1a0f8c195adb984453eeb72eb6a024066856f 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -28,12 +28,12 @@ export default function UIComponentScrollSwiperTeace() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0070 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let driver: Driver = Driver.create() let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperTeace0070_ShowNext')); button_ShowNext.click() await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_Teace_0070 finish.`); done() @@ -45,12 +45,12 @@ export default function UIComponentScrollSwiperTeace() { Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0080 start.`); Settings.createWindow("testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080") await Utils.sleep(1000) - windowSnap.snapShot() + await windowSnap.snapShot() let driver: Driver = Driver.create() let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperTeace0080_ShowPrevious')); button_ShowPrevious.click() await Utils.sleep(2000) - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_Teace_0080 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets index 47cb0da7dbf8ad263f98c1a06e64617a281db99f..91a28200411241a58702ec93d6d3e004930bfd92 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. @@ -32,7 +32,7 @@ export default function UIComponentScrollSwiperUx() { let driver = Driver.create(); await driver.fling({x: 500, y: 480},{x: 450, y: 480},5,20000); await Utils.sleep(3000); - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(4000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0520 finish.`); done() @@ -48,7 +48,7 @@ export default function UIComponentScrollSwiperUx() { let driver = Driver.create(); await driver.fling({x: 300, y: 100},{x: 0, y: 100},5,600); await Utils.sleep(1000); - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0010 finish.`); done() @@ -63,7 +63,7 @@ export default function UIComponentScrollSwiperUx() { let driver = Driver.create(); await driver.fling({x: 300, y: 100},{x: 0, y: 100},5,600); await Utils.sleep(1000); - windowSnap.snapShot() + await windowSnap.snapShot() await Utils.sleep(3000) Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0020 finish.`); done() diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets index 5b2992dcb24394039f4c71907479c34895c1a73a..930043a9caf991c1c86d9d3dfa16e7199f5b5df1 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..1446cf8d6a24792a464576eafc62903631a97f41 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0020 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(new DotIndicator() + .maxDisplayCount(6) // 超长 + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c2670547a758358466615017d35f6628d9de557 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0030 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(6) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0030') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..2546103536410a218381f7eb250865401ab84d81 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0060_1 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(-1) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0060_1') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..fe14c876836fbe76175b98e766d1e0e3d2e0df82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0060_2 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(0) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0060_2') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3.ets new file mode 100644 index 0000000000000000000000000000000000000000..735327be19b3c2d214b29f90b0ffecdbb2dcdac3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0060_3 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(3) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0060_3') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f559368b632aaf2ac8d04b3ea153a9d345d0779 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0060_4 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(10) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0060_4') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5.ets new file mode 100644 index 0000000000000000000000000000000000000000..22bde658ff7df43f01e0d8b97bc4433b5d5258c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0060_5 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(100) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0060_5') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..252b3cbd755fb372229e738921c620839e7a9021 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0070_1 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(null) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0070_1') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..59c790dfc1bb412abbcd984fe87537bbe043602e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0070_2 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(undefined) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0070_2') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3.ets new file mode 100644 index 0000000000000000000000000000000000000000..50b1d95da5e1edd79d13d31019aeb1b489e0e4f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0070_3 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(5) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0070_3') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..ff0ec5b1ab0a16b54517b5c021880b979bb26950 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0080 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(6) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20) + .mask(true)) // 超长 + .id('UIArkuiSwiperNavigationPoint0080') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..10e77833bd74d163da3737710881635445f1414a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0090 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(6) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20) + .mask(true)) // 超长 + .id('UIArkuiSwiperNavigationPoint0090') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..501190a84e472d9a86254b5df16e95e45d43ab27 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0100 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(6) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20) + .mask(true)) // 超长 + .id('UIArkuiSwiperNavigationPoint0100') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..d49d09c18d40c3fc0e6f18e1944673614e15f7ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0120 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .index(10) + .autoPlay(true) + .indicator(new DotIndicator() + .maxDisplayCount(6) + .itemWidth(20) + .itemHeight(20) + .selectedItemWidth(20) + .selectedItemHeight(20)) // 超长 + .id('UIArkuiSwiperNavigationPoint0120') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..9190645d55c1947f1cd3b6b1c45089893807c6de --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140.ets @@ -0,0 +1,103 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +class MyDataSource implements IDataSource { + private list: number[] = [] + + constructor(list: number[]) { + this.list = list + } + + totalCount(): number { + return this.list.length + } + + getData(index: number): number { + return this.list[index] + } + + registerDataChangeListener(listener: DataChangeListener): void { + } + + unregisterDataChangeListener() { + } +} + +@Entry +@Component +struct UIArkuiSwiperNavigationPoint0140 { + private swiperController: SwiperController = new SwiperController() + private data: MyDataSource = new MyDataSource([]) + + aboutToAppear(): void { + let list: number[] = [] + for (let i = 1; i <= 15; i++) { + list.push(i); + } + this.data = new MyDataSource(list) + } + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, (item: string) => item) + } + .cachedCount(2) + .index(5) + .autoPlay(true) + .interval(4000) + .loop(true) + .duration(1000) + .itemSpace(0) + .indicator( // 设置圆点导航点样式 + new DotIndicator() + .itemWidth(8) + .itemHeight(8) + .selectedItemWidth(16) + .selectedItemHeight(8) + .color(Color.Gray) + .selectedColor(Color.Blue) + .maxDisplayCount(9)) + .displayArrow({ // 设置导航点箭头样式 + showBackground: true, + isSidebarMiddle: true, + backgroundSize: 24, + backgroundColor: Color.White, + arrowSize: 18, + arrowColor: Color.Blue + }, false) + .curve(Curve.Linear) + Row({ space: 12 }) { + Button('showNext') + .onClick(() => { + this.swiperController.showNext() + }) + .id('UIArkuiSwiperNavigationPoint0140_showNext') + Button('showPrevious') + .onClick(() => { + this.swiperController.showPrevious() + }) + .id('UIArkuiSwiperNavigationPoint0140_showPrevious') + }.margin(5) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets index e31d9512aecc683ecb95a3a43cc48e76ede0eaa7..b8f723d64ac9ec43f4ba601d27d9546da5294f08 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..665201fda0547406f04be6416ae36e559c4c374e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0020.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0020 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .displayCount(2, true) + .loop(true) + .vertical(true) + + Row() { + Button('Change5').onClick(() => { + this.swiperController.changeIndex(5, true) + }) + .id('UIComponentScrollSwiperAcross0020_ChangeIndex') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets index 9aff3705b96b36d47284b3ee99abb9584abf0e6d..395a30126de1e0f732a42d8ae020eea1096466f7 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets index 573732910f548f487a1d3cf0010d13baa7f4f201..26846a37c95ab823185143d801f04c9ecce3c167 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..dadb72544d8c07871eb0dd4b132d4d889449c618 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0070.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0070 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0,1, 2, 3, 4, 5, 6, 7, 8] + @State num: number = 1 + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .displayCount(this.num) + + Button('displayCount').onClick(() => { + this.num = 4 + }).id('btnswiperacross0070') + + Button('change4').onClick(() => { + this.swiperController.changeIndex(7,true) + }) + .id('swiperacross0070') + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..fea3910dd1bd9bce9ade6943fc203c38901a1a43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0080.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0080 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [ 1, 2, 3, 4, 5, 6, 7, 8] + @State swloop: boolean = false + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .loop(this.swloop) + .displayCount(7, true) + + Button('swloop').onClick(() => { + this.swloop = true + }) + .id("btnswiperacross0080") + + Button('change4').onClick(() => { + this.swiperController.changeIndex(7) + }) + .id('swiperacross0080') + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..5168a896b537975d7a11f44b305f7e15201fcd85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0090.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0090 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] + @State userAtion: boolean = false + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .displayCount(7, true) + .loop(true) + + + Button('change4').onClick(() => { + this.userAtion=true + this.swiperController.changeIndex(4, this.userAtion) + }) + .id('swiperacross0090') + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..b484228683e5124ae50181cf91983ac6e53ab375 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0100.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0100 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] + @State useAnination: number = 7 + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .loop(true) + .displayCount(7, true) + + Button('change4').onClick(() => { + this.swiperController.changeIndex(this.useAnination, true) + this.useAnination = 4 + }) + .id('swiperacross0100') + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a5b241f414781ef5819f5c772987f485a37d324 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0110.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0110 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] + @State change: string = "" + @State onAnimationStart: string = "" + @State onAnimationEnd: string = "" + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(500) + .height(300) + .loop(true) + .displayCount(2, true) + .onChange((index: number) => { + this.change = "onChange" + }) + .onAnimationStart((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => { + this.onAnimationStart = "onAnimationStart" + }) + .onAnimationEnd((index: number, extraInfo: SwiperAnimationEvent) => { + this.onAnimationEnd = "onAnimationEnd" + }) + + Text(this.change).fontColor(Color.Red).margin({ top: 20 }) + Text(this.onAnimationStart).fontColor(Color.Red).margin({ top: 20 }) + Text(this.onAnimationEnd).fontColor(Color.Red).margin({ top: 20 }) + + + Button('change4').onClick(() => { + this.swiperController.changeIndex(5, true) + }) + .id('swiperacross0110') + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..19bca032fae24db8c527b08e1ac6752ef4ad6af9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0280.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0280 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [0, 1, 2, 3, 4, 5, 6, 7] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .displayCount(2, true) + .loop(true) + + Row({ space: 8 }) { + Button('Change-3').onClick(() => { + this.swiperController.changeIndex(-3, true) + }) + .id('UIComponentScrollSwiperAcross0280_ChangeIndex') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f03b29322c646000d011c591631fa98767257a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0290.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAcross0290 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + + Row() { + Button('Change-10').onClick(() => { + this.swiperController.changeIndex(10, true) + }) + .id('UIComponentScrollSwiperAcross0290_ChangeIndex') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..3f92d2155eca675fb029c42860fb0a4ba8d632c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0020 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(0) + .loop(true) + .displayCount(2) + .backgroundColor(Color.Yellow) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..9311dcfb6780b5957de93145b5692416a9f48e5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0030 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .displayCount(2) + .backgroundColor(Color.Yellow) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..6fea9348106bb6b656466669ebbece591658f007 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0070 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center) + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center) + } + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(2) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..96ceeb80898578eb0d707b0a4bba632e89eba51c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0080 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center) + } + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..fe4c178cf69660b49ee05b103d88ce40c7463104 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0090 { + private swiperController: SwiperController = new SwiperController() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(500).backgroundColor(Color.Orange).height(160).textAlign(TextAlign.Center) + } + Column() { + Text("2").fontSize(80).width(50).backgroundColor(Color.Gray).height(160).textAlign(TextAlign.Center) + } + Column() { + Text("3").fontSize(80).width(100).backgroundColor(Color.Red).height(160).textAlign(TextAlign.Center) + } + + }.id("swiperadd0090") + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..04811c3b02da567e2da4063f3929914df01279fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0100 { + private swiperController: SwiperController = new SwiperController() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("3").fontSize(80).width(500).backgroundColor(Color.Orange).height(160).textAlign(TextAlign.Center) + Text("1").fontSize(80).width(50).backgroundColor(Color.Gray).height(160).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(100).backgroundColor(Color.Red).height(160).textAlign(TextAlign.Center) + + }.id("swiperadd0100") + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c3e979a8b37e6f3347d4054e7cd4d1bdc250324 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0110 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200) + Text("2").fontSize(80).width(200) + Text("3").fontSize(80).width(200) + } + .width(450) + .height(150) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..d448e4612797592895129a1b82da2c0ce6a799c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0120 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200) + Text("2").fontSize(80).width(200) + Text("3").fontSize(80).width(200) + } + .width(450) + .height(150) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..969f2dc4e67c72c43ac6062eff0e381a5b0583c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0130 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("2").fontSize(80).width(100).backgroundColor(Color.Orange) + } + + Column() { + Text("1").fontSize(80).width(50).backgroundColor(Color.Orange) + } + } + .width(500) + .height(200) + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb3f5660897b14158f1935dd90f78945ae463061 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0140 { + private swiperController: SwiperController = new SwiperController() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + Text("1").fontSize(80).width(300).backgroundColor(Color.Gray) + Text("2").fontSize(80).width(100).backgroundColor(Color.Red) + + } + .width(500) + .height(200) + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..371d6643df03e94f8a293008ae90192baaa6ca1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0190 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200) + Text("2").fontSize(80).width(200) + Text("3").fontSize(80).width(200) + } + .width(450) + .height(150) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..a33b6114e8b5b72754ff60ecac44d8359d9727c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200.ets @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0200 { + private swiperController: SwiperController = new SwiperController() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("3").fontSize(80).width(400).backgroundColor(Color.Orange) + Text("1").fontSize(80).width(50).backgroundColor(Color.Gray) + Text("2").fontSize(80).width(100).backgroundColor(Color.Red) + + } + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..1be819c6a3bf53bf88dd803fe736fc0188e581b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210.ets @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperAdd0210 { + private swiperController: SwiperController = new SwiperController() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("3").fontSize(80).width(400).backgroundColor(Color.Orange) + Text("1").fontSize(80).width(50).backgroundColor(Color.Gray) + Text("2").fontSize(80).width(100).backgroundColor(Color.Red) + + } + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..9744de4e74eadbe6d0728970b36b7985aba36f5c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0240 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(150) + .height(250) + .margin(10) + .padding(10) + .border({ width: 1 }) + }, (item: string) => item) + } + .padding(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.AutoLinear) + } + .width(250) + .height(100) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..15418f3f3176b5771ed986ac6c985982d7d08acc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0420 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(100).height(100) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(200).height(100) + Text('5').fontSize(80).border({width:1}).width(200).height(200) + } + .width(300) + .padding(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(2) + .itemSpace(10) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..00c0a9e48a1cb48a9e03e2b17a6e49715e2542cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0430 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(100).height(100) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(200).height(100) + Text('5').fontSize(80).border({width:1}).width(200).height(200) + } + .width(300) + .padding(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(2) + .itemSpace(0) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..4fd8e6b31afcc01cbe5759d6858cb972f978114d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0440 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(200).height(300) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(50).height(100) + Text('5').fontSize(80).border({width:1}).width(10).height(200) + } + // .width(300) + .padding(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + .itemSpace(10) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..48dfed1a7f99cb29875d0db23e2498b9e3753d86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0440 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(200).height(300) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(50).height(100) + Text('5').fontSize(80).border({width:1}).width(10).height(200) + } + .padding(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + .itemSpace(0) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..820304b55b06d612353bb6c84f4b4c97d9a075b7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0460 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(200).height(300) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(50).height(100) + Text('5').fontSize(80).border({width:1}).width(10).height(200) + } + .width(300) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + .itemSpace(0) + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..4a7eea94cd8b20cee71c7542b41df039f7138d3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0470 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(200).height(300) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(50).height(100) + Text('5').fontSize(80).border({width:1}).width(10).height(200) + } + .width(300) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + .itemSpace(0) + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..d6680e3572899673fd014c835550524f567f5ea8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0480 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Text('1').fontSize(80).border({width:1}).width(200).height(300) + Text('2').fontSize(80).border({width:1}).width(100).height(150) + Text('4').fontSize(80).border({width:1}).width(100).height(250) + Text('3').fontSize(80).border({width:1}).width(50).height(100) + Text('5').fontSize(80).border({width:1}).width(10).height(200) + } + .border({ width: 1, color: Color.Red }) + .backgroundColor(Color.Yellow) + .itemSpace(10) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..beff20cc35cd1a734964dd68856e53e02991e3dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperAdd0490 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column(){ + Text('1').fontSize(80) + }.width(200).height(300).border({width:1}) + Column(){ + Text('2').fontSize(80) + }.width(100).height(150).border({width:1}) + Column(){ + Text('4').fontSize(80) + }.width(100).height(250).border({width:1}) + Column(){ + Text('3').fontSize(80) + }.width(50).height(100).border({width:1}) + Column(){ + Text('5').fontSize(80) + }.width(10).height(200).border({width:1}) + } + .border({ width: 1, color: Color.Red }) + .backgroundColor(Color.Yellow) + .itemSpace(0) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3a058f7fb36d1ab88b219a22de8029dbca55db7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0050.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0050 { + private swiperController: SwiperController = new SwiperController() + @State jcolor: string | ResourceColor = "#fc0303" + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowColor: this.jcolor + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..11477df3f2462da6cdd9df0eecd193dcfffc8da0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0060.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0060 { + private swiperController: SwiperController = new SwiperController() + @State jcolor: string | ResourceColor = "#fc0303" + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowColor: this.jcolor + }, false) + + Button("abdc").onClick(() => { + this.jcolor = "abcd" + }) + .id("ArrowHead0060") + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..551bf9aa3d3e5b9b040f909c34800d6b4efb9b17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0070.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0070 { + private swiperController: SwiperController = new SwiperController() + @State jcolor: string | ResourceColor = "#fc0303" + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowColor: this.jcolor + }, false) + + Button("Pink").onClick(() => { + this.jcolor = $r('app.color.Pink') + }) + .id("ArrowHead0070") + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ac3060d957a4ae5927af0a3b6b9ac7dfe57c191 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0080.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0080 { + private swiperController: SwiperController = new SwiperController() + @State jcolor: string | ResourceColor = "0xFF0000" + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowColor: this.jcolor + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..14e4dc77e4ba92382196eb2e775d45ae6b5a667f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0090.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0090 { + private swiperController: SwiperController = new SwiperController() + @State jcolor: string | ResourceColor = "0xFF0000" + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowColor: this.jcolor + }, false) + + Button("abdc").onClick(() => { + this.jcolor = Color.Blue + }) + .id("ArrowHead0090") + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..3cbca7bafa370bd2036b99b4ad11a1995728e4eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0110.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0110 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowSize: -30 + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..188b9d82db28e8f1e54cb264d19a7ff98a6e2d2b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0120.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0120 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + // 设置导航点箭头样式 + arrowSize: 0 + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..c147c862ff4a5e3edaf2cda52985743bdc5ae4f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0130.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0130 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + arrowSize: "10%" + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..46f49847bee23a70faee6d39f3d423e1cf9d5129 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0140.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0140 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + arrowSize: "100abcd" + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..76ffe60b6801ed0289df018aeb8a8f2c286f772c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0150.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0150 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + arrowSize: 30 + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..6e1e4d55eef129a341811a6b5a14e34d1c10e631 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0160.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0160 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + arrowSize: "30fp" + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..356c4247d456541b90e93a5bb997a783bc9c147a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0170.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0170 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({ + arrowSize: "30lpx" + }, false) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..f1d70614856c638801fb60f98cbddbc9fab65382 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0810.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0810 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(350) + .backgroundColor(Color.Yellow) + .displayArrow({ + isSidebarMiddle: false + }, false) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..0cd340233894f0287a2e1d926ed996121b761d41 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0820.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0820 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(350) + .backgroundColor(Color.Yellow) + .displayArrow({ + isSidebarMiddle: true + }, false) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..e73c68dcc8b255dee0fc84ea7e4ed5802adeea18 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0830.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0830 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(350) + .backgroundColor(Color.Yellow) + .displayArrow({ + isSidebarMiddle: false + }, true) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..18a11f8c0cd986af124b40b1912db5e378b48729 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0840.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0830 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(350) + .height(350) + .backgroundColor(Color.Yellow) + .displayArrow({ + isSidebarMiddle: true + }, true) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..21bae2abf76e42cfa174039ba4299138672a7377 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0850.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0850 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({isSidebarMiddle: false,},true) + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..9adba3b8e7fe33eb530a6b0c393434bb60bab0a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0860.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0860 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({isSidebarMiddle: false,},true) + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..bb3d0ec68304695b390fcd4909789bdb21592c03 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0870.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0870 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({isSidebarMiddle: true,},false) + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..496c71f24ec0d1cbd754c2cae360e9dc00695c8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0880.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperArrowHead0880 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .displayArrow({isSidebarMiddle: true,},true) + + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..44e4465ba87fe2402f4b52557c7ee5e4727fbaa6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0010.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { InputMethodListDialog } from '@ohos.inputMethodList' + +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0010 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("4").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("5").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("6").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + }.id("swiperdisplaycount0010") + .backgroundColor(Color.Yellow) + .width('100%') + .displayCount(-1, true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d1e30f6f98da2cb53e03549b521705a41a5813d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0020.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { InputMethodListDialog } from '@ohos.inputMethodList' + +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0020 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("4").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("5").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("6").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + }.id("swiperdisplaycount0020") + .backgroundColor(Color.Yellow) + .width('100%') + .displayCount(1, true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..37e6817090981db893bd0296ee7d032b9abd6881 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0040.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { InputMethodListDialog } from '@ohos.inputMethodList' + +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0040 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("4").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("5").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + Text("6").fontSize(80).width(200).textAlign(TextAlign.Center).borderWidth(3).borderColor(Color.Red) + }.id("swiperdisplaycount0040") + .backgroundColor(Color.Yellow) + .width('100%') + .displayCount(2.5, true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..81e6f6d097811585f47e7bc114dd48f297c8fd39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0090.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0090 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + + + }.id("displaycount0090") + .loop(false) + .displayCount(3,true) + .itemSpace(5) + .effectMode(EdgeEffect.Spring) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..288b3e6417575673154d50f832fd44c4fe3419c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0100.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0100 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + + + }.id("displaycount0100") + .loop(false) + .displayCount(3,true) + .itemSpace(5) + .effectMode(EdgeEffect.Fade) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..7aefd156927511ea6d91d78cd7281e4c47fceb85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0120.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0120 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .id("displaycount0120") + .loop(false) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets index a2f7f529303afcf24428b490fdec8ccbc8d6415f..6addd7bf8af934dc68f282abcde924ba09bb1d7e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..ccc9c76203c2f045d5e21aa87c1eeeab67370294 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0170.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0170 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .id('UIComponentScrollSwiperDisplaycount0170') + .width(300) + .height(300) + .autoPlay(true) + .loop(false) + + Row({ space: 8 }) { + Button("ShowNext").onClick(() => { + this.swiperController.showNext() + }) + .id('UIComponentScrollSwiperDisplaycount0170_ShowNext') + } + .margin({ top: 30 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..e513e3cc254b3661a7cbab15ddab8ed9c267f930 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0220.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0220 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .loop(false) + .displayArrow(true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..fcdc552a7b39b9f519a22e47c6c85c712d688e34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0230.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0230 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .loop(false) + .displayArrow(true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..d786b03de4c8774817ac2cc0650bbfb4c7ba9ea1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0240.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0240 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .id("displaycount0240") + .loop(false) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..544429322abb0d09695574951920b5cd15b197fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0290.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { InputMethodListDialog } from '@ohos.inputMethodList' + +@Entry +@Component +struct UIComponentScrollSwiperDisplaycount0290 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6,7,8] + @State disboo: boolean = false + @State num: number = 0 + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + }.id("swiperdisplaycount0290") + .index(this.num) + .displayCount(1, this.disboo) + .onGestureSwipe((index: number, extraInfo: SwiperAnimationEvent) => { + this.disboo = true + }) + Button("item是5") + .id("btn0290") + .onClick(() => { + this.num = 5 + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..196c761495f25f86aa96aee6a69d672f83ae86f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDisplayedcolumns { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(200) + .height(200) + .displayCount({ + minSize: '20vp' + }) + .displayMode(SwiperDisplayMode.STRETCH) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3f203460f100f2cdfaf47b8f24395b5758e8b7f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0110 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Gray) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..88784b031674d103b9999ccbf9254123391eccf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0120 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..e3e7a176cd569da519f3b724deda444ff646d702 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0130 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().bottom('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ae6e6e1a7c153c7a5942530f8f75ffa18f05abb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0140 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().left('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..4016883ddc8ba8d3b9dd496cfe16ae210950561e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0150 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().right('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..e190d99c9a86c3b6c470e4cce5b68d5fa82fe628 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0160 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).fontColor(Color.White) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().top('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..c93cf7ee1894c2d14df88ab3f312e1d96f8f696a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0170 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().bottom(0)) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..1161b59b54028dd488030de85d2d17e3123f391e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0330 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(false) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..beb5b2d83afb67fe03c22651e71e03d92b20436c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0340 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..b894991b46606a2d63aa2f669f28fff1d70be362 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0360 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().mask(false)) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..53654228073dd1054d06d256774e9f6716e87560 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0370 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().selectedColor('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2717baefef4108fa5386e6917dbc6f5edf1c4ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperDrag0380 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .indicator(DotIndicator.dot().itemHeight('')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..66e24fe5d8c628dac802fdc81ba9105353a94789 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0390 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator(new DotIndicator()) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..76f92a540a4a4f0ce8393eebfe4aea4aadff1b57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0400 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().itemHeight(100) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..6882ae1220162315dcfa728dd426710ea2228994 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0410 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator() + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..935e0845f3d930340f0ef7625850be27106670e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0420 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().itemWidth(0) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..101b55678ebd838896f4dc8ef77ead1a9ba25fa5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0430 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width('100%') + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().itemWidth(100) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..00c81fec263366a275c04958d3f85654adadf0ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0440 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight(-100) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c7c4fb74ea47ce0f16d8333ed48f8f3a7ab87da --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0450 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight(0) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6882f49a2fe2260e21ce3abf47f3674e5cecf38 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0460 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight(100) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae8b30ffd05eff48110062cd5b5f324ec7210cc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0470 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight('-100') + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..22eb77d84f7e350c1e5db45d4cb0b5f52d070173 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0480 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight('0') + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa155e0d36f9f306b52fce659db29071c5a090e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0490 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemHeight('100') + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0828430b7b5449a8d8a088d714dada109160e7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0500 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemWidth(0) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ef7af6b94ee1704fcdc63c9121cbfa6d8f439a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0510 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedItemWidth(100) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2f57f7998e436c181606cbadb4b24563d9747f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0520 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().color(Color.Blue) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..9fa9e244d0aa45ac7e737064071db8764538c0bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0530 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().color('#fc0303') + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e6dcfea0d33eadeadfcbee8c9a458bd6b6df244 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0540 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().color(0xFF0000) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..8efd5f6febae183929e3e75093367f6d5521fc3c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0570 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().selectedColor('#fc0303') + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..17008b4319686bea595d9ff9d4f93eb89b5062de --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0590 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().color(Color.Blue) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5eade7314830fd8c24551edfaf664864769e612 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0650 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .indicator( + new DotIndicator().top(0) + ) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a71ed52fc83dc6150bb4d6969f49244c714ada7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperDrag0680 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .width(500) + .id("swiperdrag0680") + .indicator( // 设置圆点导航点样式 + new DotIndicator() + .itemWidth(15) + .itemHeight(15) + .selectedItemWidth(15) + .selectedItemHeight(15) + .color(Color.Gray) + .selectedColor(Color.Blue)) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..39f8fa80a3db6d17238f59e7d3d0da512cf5ed94 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperDrag0690 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .width(500) + .id("swiperdrag0690") + .indicator( // 设置圆点导航点样式 + new DotIndicator() + .itemWidth(15) + .itemHeight(15) + .selectedItemWidth(15) + .selectedItemHeight(15) + .color(Color.Gray) + .selectedColor(Color.Blue)) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..48effbf0af3721c6622d125a1c57a903a02d1867 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperDrag0760 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .autoPlay(true) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b36a317a58d4f610816e40447bc871e9b7f001a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0020.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0020 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ backgroundColor: $r('app.color.Pink'), showBackground: true }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..e1d711bd78c6319ebd3423ac912ca42acbb7647b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0050.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0050 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowColor: Color.Blue }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..135871165f830dab2074357b70c48bbd42e05166 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0080.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0080 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: 0 }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..94ddbec3913a355930c3669f6d6d18a9a9d18591 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0090.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0090 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: 30 }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c7b2dfaa2452d8f8ce7cd818d364cee1c1786d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0110.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0110 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: '-30' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..01093ed836cc8913b0c1c59efc4a9ed3e9031f03 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0120.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0120 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: '0' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..0b1af8bf8783fc058d1adaed0a188865a7fc6365 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0150.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0150 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: '30' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..107ea4eb0e91c7c511ef8beb13fe48ff790f7433 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0190.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0190 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: '30vp' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..393f187a108fd93d3c3c3ab573060f90679d6d63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0220.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0220 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + @State arrowSize: Resource = $r('app.boolean.boardSize') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: this.arrowSize }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..224ca30465199e50dadc425766a3ff32011ec5f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0230.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0230 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + @State arrowSize: Resource = $r('app.float.boardSize_50') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ arrowSize: this.arrowSize }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d28f03da1442d564757bc8210c04b78d821ec24 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0250.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0250 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundColor: '#fc0303' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb5348bab26cf115556af5381fbd0e1c3ebad8d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_1.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0270_1 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1") + .fontSize(80) + .width(160) + .backgroundColor(Color.Orange) + .height(400) + .textAlign(TextAlign.Center) + } + + Column() { + Text("2") + .fontSize(80) + .width(50) + .backgroundColor(Color.Gray) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("3") + .fontSize(80) + .width(60) + .backgroundColor(Color.Red) + .height(160) + .textAlign(TextAlign.Center) + } + + } + .vertical(true) + .displayCount(3) + + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..e5954a4ee3ab5bd4eb38eea8f8ae53d6a564f4f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_2.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0270_2 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1") + .fontSize(80) + .width(260) + .backgroundColor(Color.Orange) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("2") + .fontSize(80) + .width(50) + .backgroundColor(Color.Gray) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("3") + .fontSize(80) + .width(60) + .backgroundColor(Color.Red) + .height(160) + .textAlign(TextAlign.Center) + } + + } + .vertical(true) + .displayCount(1) + + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..e55f44e9ed8c4db1645fafe9629888f7dc4cf72c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0280.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0280 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ backgroundColor: '#abcd' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..9b5ebe3a0e3d1f47492e2cba02100a0bace0fa43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0300.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0300 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundColor: 'rgb(2,184,17)' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..90433c086557fe75cdaa390ed518813c757ab8e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0310.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0310 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: 'string/rawfile_string' }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..ff6f23a9a4bc3367f9297f0f6fa5416edff2e916 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0370.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0370 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: -30, backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..81f60a4dfa217e6be6496662b0f98d7a98134bf0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0400.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0400 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: '100abcd', backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..f291ad6c61778b9dd9b7ea883622bef0c12c0f47 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0440.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0440 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: '30px', backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa318d6cf939db1785bc666914a767f2d0866c84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0450.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0450 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: '30vp', backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..384b8958b7b28990248847a1ee2da1b0d4715a6f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0470.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0470 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: undefined, backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..eff914fa5ea3188b3c92a865cb661cb371dca9cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0480.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0480 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + @State arrowSize: Resource = $r('app.boolean.boardSize') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: true, backgroundSize: this.arrowSize, backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..320b8e5a4b9be7539c13b819357915ac60f36d61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0510.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0510 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .displayArrow({ showBackground: false, backgroundColor: Color.Red }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..86e3e514a642b5476c1ea8edb5269028780bdd38 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0540.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface0540{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .displayArrow({ + showBackground: true, + arrowSize: 30 + }, false) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c67e431352ca903ae19dd59b0b2608dc55f5c02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0690.ets @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface0690{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b1e05c01cfc1a4f9e854c70ec931f0257c3d386 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0700.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0700 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .index(1) + .index(2) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..6f3482a864bf70db822794a3fe124f87a0668990 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0710.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0710 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .index(-1) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..93235878f285e3960334492b0362767a0c66fd51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0740.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0740 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + @State arrowSize: Resource = $r('app.boolean.boardSize') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .index(5) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..f64fb4e6e25df1784d52ef9834c7dc8b6d2eee6c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0750.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0750 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center) + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.STRETCH) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..41cc24b0a49687b73876f338c2d175efca57e237 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0760.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0760 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center) + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("3").fontSize(80).width(200).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + .displayCount(2) + .displayMode(SwiperDisplayMode.STRETCH) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f669af35dfa01dffde0624632a48e0803919e32 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0770.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0770 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..860bd510b327dde4ed7d6801035a0b1221956973 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0780.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0780 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .displayArrow(true) + + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..82e062a17aad0a90106953c768b10f79a0592d54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0790.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0790 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .id("swiperinterface0790") + .width(450) + .height(250) + .backgroundColor(Color.Yellow) + .disableSwipe(true) + + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets index b6453c037b2651f8b159286d8827c851f2c1d676..a24d165567f49af9b0e0d9f1ef8d1e7298a65c90 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets index ed023a05d2f3029b7c0ba66244aea4de717a4d5e..17c16b1db9206b8df12e7ac73b78a801a0b70a43 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9f2d357e0fe7e909233f084f04ed7899d9f0654 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0840.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0840 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .index(2) + Button('showNext').id('UIComponentScrollSwiperInterface0840') + .onClick(() => { + this.swiperController.showNext() + }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0860.ets new file mode 100644 index 0000000000000000000000000000000000000000..a0d990fc603955b5b8aa2f8bc86a6df8086932e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0860.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0860 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .autoPlay(false) + .autoPlay(true) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0870.ets new file mode 100644 index 0000000000000000000000000000000000000000..792f00d85c915da9c7dd61afb3b5b6271ffd7bf2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0870.ets @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0870 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9] + @State i: number = 1 + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .displayCount(this.i, false) + + Button("切换").id("btninterface0870") + .onClick(() => { + this.i += 1 + + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0880.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd94f9d83ac0fbad31da1b108edc1692768f5497 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0880.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0880 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + @State edg: EdgeEffect[] = [EdgeEffect.Spring, EdgeEffect.Fade, EdgeEffect.None] + @State mode: EdgeEffect = this.edg[0] + @State i: number = 0 + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + }.id("interface0880") + .effectMode(this.mode) + .loop(false) + + Button("切换").id("btninterface0880") + .onClick(() => { + this.i += 1 + this.mode = this.edg[this.i] + console.log("thc::" + this.mode) + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets index 0b906418cdcdb68188544560af0d492b161e6d4d..853c9144562e14d2c7fa80970860244f99e9be10 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..58d5bc1410858564cffe38cf87d6319fc73f8bd5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0900.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { InputMethodListDialog } from '@ohos.inputMethodList' + +@Entry +@Component +struct UIComponentScrollSwiperInterface0900 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + @State edg: number[] = [1, 2, 3] + @State mode: Curve = this.edg[0] + @State i: number = 0 + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .cachedCount(this.mode) + .displayArrow(true) + .id("swiperinterface0900") + + Button("切换").id("btninterface0900") + .onClick(() => { + this.i += 1 + this.mode = this.edg[this.i] + console.log("thc::" + this.mode) + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0910.ets new file mode 100644 index 0000000000000000000000000000000000000000..77a47d150167baa8b8385ca39c0e14c1791a4c7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0910.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0910 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + @State edg: Curve[] = [Curve.Linear, Curve.EaseOut, Curve.LinearOutSlowIn] + @State mode: Curve = this.edg[0] + @State i: number = 0 + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .curve(this.mode) + .displayArrow(true) + + Button("切换").id("btninterface0910") + .onClick(() => { + this.i += 1 + this.mode = this.edg[this.i] + console.log("thc::" + this.mode) + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0920.ets new file mode 100644 index 0000000000000000000000000000000000000000..040ad68e30ab04431eb565f0642b735bfe8c3674 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0920.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0920 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + @State open:boolean=true + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .id("swiperinterface0920") + .width(450) + .height(250) + .backgroundColor(Color.Yellow) + .disableSwipe(this.open) + + Button("切换").id("btninterface0920") + .onClick(() => { + this.open=false + }) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0930.ets new file mode 100644 index 0000000000000000000000000000000000000000..5e08a1beafc5b4f8595a2f1d6769f1b29c3ce596 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0930.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0930 { + private swiperController: SwiperController = new SwiperController() + @State setmode: SwiperDisplayMode[] = [SwiperDisplayMode.STRETCH, SwiperDisplayMode.AUTO_LINEAR] + @State set: SwiperDisplayMode = this.setmode[0] + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1") + .fontSize(80) + .width(500) + .backgroundColor(Color.Orange) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("2") + .fontSize(80) + .width(50) + .backgroundColor(Color.Gray) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("3") + .fontSize(80) + .width(100) + .backgroundColor(Color.Red) + .height(160) + .textAlign(TextAlign.Center) + } + + } + .id("swiperinterface0930") + .backgroundColor(Color.Yellow) + .displayMode(this.set) + + Column() { + Button("切换").id("btninterface0930") + .onClick(() => { + this.set = this.setmode[1] + }) + + }.margin(30) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0940.ets new file mode 100644 index 0000000000000000000000000000000000000000..63cf1511b5ee11b34197df85a3429c9d6e29db87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0940.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0940 { + private swiperController: SwiperController = new SwiperController() + @State setmode: number[] = [-1,2,3] + @State set: number = this.setmode[0] + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1") + .fontSize(80) + .width(500) + .backgroundColor(Color.Orange) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("2") + .fontSize(80) + .width(50) + .backgroundColor(Color.Gray) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("3") + .fontSize(80) + .width(100) + .backgroundColor(Color.Red) + .height(160) + .textAlign(TextAlign.Center) + } + + } + .id("swiperinterface0940") + .backgroundColor(Color.Yellow) + .direction(this.set) + + Column() { + Button("切换").id("btninterface0940") + .onClick(() => { + this.set = this.setmode[1] + }) + + }.margin(30) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0950.ets new file mode 100644 index 0000000000000000000000000000000000000000..afe2e0d0121b8812db6204e50afdcb6d0019321c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0950.ets @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface0950 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace(-100) + .itemSpace(100) + .itemSpace("20") + .itemSpace(200) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets index 41785120074dad1b9a6e694d7cc1f69048d63566..294aff824f137ea21a5ccb6fa8b895bc6d6f9601 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0970.ets new file mode 100644 index 0000000000000000000000000000000000000000..265d71709fde39904b7ef95b5a5e03a7f7ea723b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0970.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface0970 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Image(this.icon).width(41) + Text(item.toString()) + Image(this.icon).width(41) + } + .width('90%') + .height(300) + }, (item: string) => item) + } + .loop(false) + .loop(true) + .index(2) + Button('showNext').id('UIComponentScrollSwiperInterface0970') + .onClick(() => { + this.swiperController.showNext() + }) + }.margin(5) + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets index d5ff8217dea0ada69db1bd6ec4e9fe045bd7db99..d3404d8395b9d4a99de5a1f4bd51dc11d617df9a 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets index 70fa20d68964335a0c485aa218c703742ca3549a..686f7e61f12ec1a1052ae477a5ef8ab5e37c5d97 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1000.ets new file mode 100644 index 0000000000000000000000000000000000000000..43a99a3e2d481adc0e23c21de8948399216d22f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1000.ets @@ -0,0 +1,67 @@ +@Entry +@Component +struct UIComponentScrollSwiperInterface1000 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace(100) + .vertical(true) + .vertical(false) + .vertical(true) + .vertical(false) + .vertical(true) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..a0ce4f70998277e2c939e6483a8257378c706c0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1020.ets @@ -0,0 +1,61 @@ +@Entry +@Component +struct UIComponentScrollSwiperInterface1020 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1060.ets new file mode 100644 index 0000000000000000000000000000000000000000..04e0c1de2a887a4e8597a4ac45bad835502c7863 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1060.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface1060 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .interval(1) + .autoPlay(false) + .backgroundColor(Color.Yellow) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1080.ets new file mode 100644 index 0000000000000000000000000000000000000000..932053c404b4e9aabdb9c5c98c107506e401ef0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1080.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface1080 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .autoPlay(true) + .backgroundColor(Color.Yellow) + .interval(3000) + .interval(2000) + .interval(1000) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1150.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c2e7cb408d2fe2a6bb694c9a8bfad291849560c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1150.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface1150 { + private swiperController: SwiperController = new SwiperController() + @State swiperVisib: Visibility = Visibility.Visible + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .visibility(this.swiperVisib) + .autoPlay(true) + + Button("Visibility").onClick((event: ClickEvent) => { + this.swiperVisib= Visibility.Hidden + }).margin(5).id("swiperinterface1150") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1160.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e6622838fbf23a133a9a83aa55c0f8d74c92362 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1160.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface1160 { + private swiperController: SwiperController = new SwiperController() + @State swiperVisib: Visibility = Visibility.Visible + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .visibility(this.swiperVisib) + .autoPlay(true) + + Button("Visibility").onClick((event: ClickEvent) => { + this.swiperVisib= Visibility.None + }).margin(5).id("swiperinterface1160") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1170.ets new file mode 100644 index 0000000000000000000000000000000000000000..e04ef363fa793cd002fca236dd036fdec026c4d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1170.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface1170 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .autoPlay(true) + .visibility(Visibility.Visible) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1280.ets new file mode 100644 index 0000000000000000000000000000000000000000..342b91b1747cc6720d20da1233b799c3fb833339 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1280.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 curves from '@ohos.curves'; + +@Entry +@Component +struct UIComponentScrollSwiperInterface1280 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + @State size_10vp: string = 'abc'; + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()) + .width('80%') + .height(100) + .backgroundColor(Color.Yellow) + .margin('10%') + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .curve(curves.cubicBezierCurve(0.1,0.0,0.1,1.0)) + .displayArrow(true) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1290.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9c1f3ec4d5f41c02a69b9aee549fabdb461a677 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1290.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 curves from '@ohos.curves'; + +@Entry +@Component +struct UIComponentScrollSwiperInterface1290 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + @State size_10vp: string = 'abc'; + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()) + .width('80%') + .height(100) + .backgroundColor(Color.Yellow) + .margin('10%') + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .curve(curves.interpolatingSpring(100,1,228,30)) + .displayArrow(true) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1630.ets new file mode 100644 index 0000000000000000000000000000000000000000..3bc615adbd9c0ee95b741608e947a31c0ca297a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1630.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface1630 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + + + }.id("interface1630") + .loop(true) + .effectMode(EdgeEffect.Fade) + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets index 9a58bb458ea0bf8187e75fb0bb0f42e5b9baa921..26c731633870dc579fb50995c7bf33206d76d045 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets index 975b94e9e65ef3b41b336c80e5a08ae7778447cc..0e598c669a5fd9a77dff3a5b02cef87fdb845037 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets index f94360a8d4f0f5c4a6c3ad6c165a69f62de2a1da..d76e0bb906eeea2f32582612bce80a0be359271b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets index e9712267ee27dab37a9eb1573a849c6db9735d7d..542d52d0965c3394e60d9281b56f730762160007 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets index 2c7058c5c164d4326b81935dfbb64d02f3629700..9be6bcac8ca39a0c0be2b0b2c2f575fee762d717 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets index 88195bc511d7f94ccdc4fe007ea7985aa3f4cf62..86f83795c94ee0bf3b93faafd4af22246f5debb2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets index d3b880ae1a8f7e6cdffca6958371375f6fa5b596..b7cebb31ed15e99dec772e9ac6794b07a0e815cf 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets index 741ccd0beaefb614e02b1c0001378bd478cb9c08..647dff8aea930207d7eed47497947e73ab708035 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets index 36fbedd9e6f23168e041f8e485e5444cfd2b37ac..85d2d903418b1ef455e00318be1a7a3e4504e99b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets index 9ec4b05b005dc4253f2ced1eee43c37aabc2761f..7c3d701bea82461b3a6556c485996e2aaf44e0e8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets index 69c6e1b96abe877f2f0b2710e5c89e38263a380a..6af25e27f03fdf5d2ca0836b6763a6ed0e61aeab 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets index 677562985bdde87e3b4f0ccd3386a7cf7c4ffb89..8b543d388b010e708bbe6a4e33d149fa8b72496c 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets index 96bc460e2cf32e7ada48f78c6b01e21b676ccf1a..2569b04247886990a5028f89f9b06d30f5d9a09e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets index 76f68d4257b3297f92bdd418b34db5cc351b9039..5af748f6d067607efa971964b2d78f95eae5e041 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3210.ets new file mode 100644 index 0000000000000000000000000000000000000000..50f2c293529a397777ff0467993259b44c731523 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3210.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3210 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace(-100) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3230.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd348f24e593dfccd694f1765cc6acbaee5cfe45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3230.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3230 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace(100) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3240.ets new file mode 100644 index 0000000000000000000000000000000000000000..4082cd22b221325536b05bd040ee0fb25cd2393e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3240.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3240 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("-100") + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3250.ets new file mode 100644 index 0000000000000000000000000000000000000000..06239f5948898b2ed9abf2ddcacc748ffa12a045 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3250.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3250 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("0") + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3270.ets new file mode 100644 index 0000000000000000000000000000000000000000..644aa276327dfd72506d92779042c49db14efbd8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3270.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3270 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("100") + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3280.ets new file mode 100644 index 0000000000000000000000000000000000000000..e20c7010c72252b9e992d0117e457d09c6a9df74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3280.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3280 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("50") + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3290.ets new file mode 100644 index 0000000000000000000000000000000000000000..a21597dfc5a9c28c34e5c9cd71fcedddd6e295f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3290.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3290 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("abc") + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets index b1b2fb9ae7aaf7672b3e47bad77e3dab7967372f..81eaa5ea3963afea38921b9459ce99566a10b7bb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets index bcdaa70c79157f0aa5bed67382f2bc67943d640e..cf2190c1ab6c1b401fd0885f3ba4a2791cb22786 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets index 3be10976214507808894bd3fff42e6ecf09dac31..c22b43c3e9c9f83fd786a8c2755a439f638c4986 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets index 8cd9cf67b7561f3fbc6251da383c087d3c30d332..1c8e96127caeea637d292112e1803b1c69e6c6f9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets index 538c00b980f9458f124b2be00db704b011e3246e..6a80d239081954ce07a24706dd2aa9d984c74455 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets index 223417106e7c6922a61936cdd544b8cf9271db93..8a2306f5c121b0e764ebd93871fbf68a4a8a1107 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets index e4fe1d8902d90efcedb3dba923ea4b78c2b58d50..5b1e96e25d04d717bc3e655a3a7cc1776591bf55 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets index dd170251cbdc100e2585bf8c233207deab88a4ac..9c524ac57754f316f4461894c6ae715f2258f681 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets index 474cb2b10fec38f4d80785d6870087156a41baed..f297d6c2a036b70313922faf9bf0c2b072c2e5e8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets index f2e938a2240de893ec66a8d1aca20d56b187aa84..bbd9eca9f6e17077bce6ae169a38b620115c42bf 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets index 29ab6ff2bcba59ee3895e8e12b2713c05608b43b..d0a7a39edbe7ed7590dc8c797db0fb0836cc61a0 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets index bceebb024b4707507acb02b2e32a1f682605243e..e2ef40a2a3c7c4edd12b127bdb76121b10acf636 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets index 3f30130dd22b0d8b6d744f589a91d2f0cb43d1fd..62c388f31ec77ed95dcb5615cda504913752628c 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets index 1549e62d47a72a7d0d827a5e06c18ec3fc0c66b5..186a91e4b44dada05e6a6d947a7f3092093eff6e 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets index 90afe05eb1eea73548c61ea509f8c5706f43c091..e058d468e8878b814ff98affa3f456e3b6c422a4 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets index b3c8c887777029038d37cd4dcacaeffd42d9400f..97e50db23482dd8c50e3e0718dfd16c859fd0eed 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets index bbfa9d91f464d2d3a0f25e913261b21c9aa4af2d..6aa8589b118e3a992d89fad18142b7a0b3c9acac 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets index be48ec33df29746c9fc8e7aefdbf510edfbd9d13..1ecec8736561d9b2006cb13c503b399696dd9ceb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets index 5810f69044afe316b9306879dd2f6de5be51fe5f..be960a26c9a8c18b100933cb406a9663774c04a8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3670.ets new file mode 100644 index 0000000000000000000000000000000000000000..d59d260893723dc8c4d7de03448405e144c6cf5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3670.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface3670 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .width(450) + .height(250) + .backgroundColor(Color.Yellow) + .disableSwipe(false) + .autoPlay(false) + .displayArrow(true) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3680.ets new file mode 100644 index 0000000000000000000000000000000000000000..dc34f1166dab140b2debbe5ee97c98b0cd61dd36 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3680.ets @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterface3680 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("2").fontSize(80).width(200).textAlign(TextAlign.Center) + Text("3").fontSize(80).width(400).textAlign(TextAlign.Center) + Text("4").fontSize(80).width(200).textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.STRETCH) + .displayCount(2) + .displayArrow(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets index 56142636dbade5c335d05e20c1bd6e1cadd081a4..9eac96333d56b9f0141fedcbf2f06502cb3e10be 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3760.ets new file mode 100644 index 0000000000000000000000000000000000000000..748e962a782d180e1b40b176a005ad39417d12f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3760.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3760{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width(250) + .height(250) + .backgroundColor(Color.Yellow) + .displayArrow(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3770.ets new file mode 100644 index 0000000000000000000000000000000000000000..18659fa955ad9d3e4e1e0b3373b5fdda56d77fbc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3770.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterface3770{ + private swiperController_1: SwiperController = new SwiperController() + private swiperController_2: SwiperController = new SwiperController() + private swiperController_3: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController_1) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(60) + } + }, (item: string) => item) + } + .width(500) + .height(150) + .backgroundColor(Color.Yellow) + .id("UIComponentScrollSwiperInterface3770_1") + + Swiper(this.swiperController_2) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(60) + } + }, (item: string) => item) + } + .width(500) + .height(150) + .backgroundColor(Color.Gray) + .margin({ top: 20 }) + .id("UIComponentScrollSwiperInterface3770_2") + + + Swiper(this.swiperController_3) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(60) + } + }, (item: string) => item) + } + .width(500) + .height(150) + .backgroundColor(Color.Orange) + .margin({ top: 20 }) + .id("UIComponentScrollSwiperInterface3770_3") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets index 11ab8441d5d967a55eb9df1f00eeb07aa0d27fc1..67c7108946fcc6e22b4921066e9e7cd13238ec76 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets index a4eb325b4270db5eb207d1d89e88ce0180d8cf4d..0da1bcd32f49cd293a3b68b6f0bbf31282a628d2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets index ef3ee1974039b756db81041b9b592a84933bfaea..8d35b4e27a15df0ce431e76f51c6a0e5dd303f24 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets index c9241c56879ccb61c5b95d5c565eb7ad528e584c..8040fe2e1b516d9e4fc68d8f0ad5313c04b1d148 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e4fbcd402a6da89c12cecf9943715ec75a177b7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0010 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .index(0) + + Row() { + Button('Delete0').onClick(() => { + this.data.splice(0,1) + }) + .id('UIComponentScrollSwiperInterfacemix0010_delete') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e04dcfee8e14ac367bcc3614b660cdf753ae17f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0020 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .index(2) + + Row() { + Button('Delete3').onClick(() => { + this.data.splice(2,1) + }) + .id('UIComponentScrollSwiperInterfacemix0020_delete') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..498486b056c1803909c543d2ab933b9d282f58eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0050 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['first', 'two', 'three', 'four', 'five'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .index(2) + + Row() { + Button('Add2').onClick(() => { + this.data.splice(2, 0, 'new') + }) + .id('UIComponentScrollSwiperInterfacemix0050_add') + } + .margin({ top: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..e9e3b7f80e0df0bfa8ae193a836639fb28513a4b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0070 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Row() { + Text(item.toString()).fontSize(80).width(200) + Image(this.icon).width(40) + } + .height(200) + .backgroundColor(Color.Orange) + }) + + } + .border({ width: 1 , color: Color.Red}) + .height(320) + .displayCount(3) + .vertical(true) + .id('UIComponentScrollSwiperInterfacemix0070') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..73c5324801e4067b747c00caf32bcf316401539d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0080 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Row() { + Text(item.toString()).fontSize(30).width(200) + Image(this.icon).width(40) + } + .height(200) + .backgroundColor(Color.Orange) + }) + + } + .border({ width: 1 , color: Color.Red}) + .height(320) + .displayCount(10) + .vertical(true) + .id('UIComponentScrollSwiperInterfacemix0080') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c40718ae8f19b1d95e48aef077eeaa270778899 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0090 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Row() { + Text(item.toString()).width(200) + Image(this.icon).width(40) + } + .height(200) + .backgroundColor(Color.Orange) + }) + + } + .border({ width: 1 , color: Color.Red}) + .height(320) + .displayCount(11) + .vertical(true) + .id('UIComponentScrollSwiperInterfacemix0090') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..c699557ab4009b452ee40431bdf6804ce4476bdf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0100 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()).fontSize(80).width(200).backgroundColor(Color.Orange) + Image(this.icon).width(40) + } + .height(400) + }) + + } + .border({ width: 1 , color: Color.Red}) + .width(300) + .vertical(true) + .displayCount(3) + .id('UIComponentScrollSwiperInterfacemix0100') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..1fff40fbcbeba549f0304362fa2b240ef7643993 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0110 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Row() { + Text(item.toString()).fontSize(20).width(200) + Image(this.icon).width(40) + } + .height(100) + .backgroundColor(Color.Orange) + }) + + } + .border({ width: 1 , color: Color.Red}) + .width(300) + .vertical(true) + .displayCount(10) + .id('UIComponentScrollSwiperInterfacemix0110') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..b6008744386ac405d6294a753630ec134f98b186 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0120 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8,9,10] + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Row() { + Text(item.toString()).fontSize(30).width(200) + Image(this.icon).width(40) + } + .height(200) + .backgroundColor(Color.Orange) + }) + + } + .border({ width: 1 , color: Color.Red}) + .width(300) + .displayCount(11) + .vertical(true) + .id('UIComponentScrollSwiperInterfacemix0120') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..f679d2f18c8eec5424aa6c7dac13c588caa6233e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0130 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ x: 100 }) + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(300) + .id('UIComponentScrollSwiperInterfacemix0130') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..f71439155f2bd50e097ae66f49089fc729866f70 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0140 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ y: 100 }) + + } + .border({ width: 1 , color: Color.Red}) + .width(300) + .height(500) + .vertical(true) + .id('UIComponentScrollSwiperInterfacemix0140') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d7ff8c4d9236230566a5d27cc302b737fd39bad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0150 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ x: 100 }) + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ x: 100 }) + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(300) + .id('UIComponentScrollSwiperInterfacemix0150') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..e46f7e12f16235c5f31f9777396232eff7d9a994 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0160 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ y: 100 }) + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + }.offset({ y: 100 }) + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(400) + .id('UIComponentScrollSwiperInterfacemix0160') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..327b321d7a42ca4c8b0daa665f11672443d9bbab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0170 { + private swiperController: SwiperController = new SwiperController() + @State timeswiper: number = 3000 + @State switchanimation: number = 300 + @State openswitch: boolean = true + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1") + .fontSize(80) + .width(500) + .backgroundColor(Color.Orange) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("2") + .fontSize(80) + .width(350) + .backgroundColor(Color.Gray) + .height(160) + .textAlign(TextAlign.Center) + } + + Column() { + Text("3") + .fontSize(80) + .width(250) + .backgroundColor(Color.Red) + .height(160) + .textAlign(TextAlign.Center) + } + } + .interval(this.timeswiper) + .duration(this.switchanimation) + .disableSwipe(this.openswitch) + .id("interfacemix0170") + + + Button("1000:1000").onClick((event: ClickEvent) => { + this.timeswiper = 1000 + this.switchanimation = 800 + this.openswitch = false + }).margin(5).id("btnswitch0170") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..c82e1b84630795389390c8df9dd4f0907a686fbd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0180 { + private swiperController: SwiperController = new SwiperController() + private icon: Resource = $r('app.media.icon') + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + Image(this.icon).width(41) + } + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + Image(this.icon).width(41) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + Image(this.icon).width(41) + } + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(400) + .id('UIComponentScrollSwiperInterfacemix0180') + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..0dd81930240fe49d08a42d177426c8c0722e4f3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0190 { + private swiperController: SwiperController = new SwiperController() + @State mode: SwiperDisplayMode = SwiperDisplayMode.STRETCH + @State Visibility:Visibility = Visibility.Visible + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + } + .visibility(this.Visibility) + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(400) + .displayMode(this.mode) + + Column({space: 8}){ + Button('displaylode:AUTO_LINEAR').onClick(() => { + this.mode = SwiperDisplayMode.AUTO_LINEAR + }).id('UIComponentScrollSwiperInterfacemix0190_AUTO_LINEAR') + Button('第一个页面visibility:None').onClick(() => { + this.Visibility = Visibility.None + }).id('UIComponentScrollSwiperInterfacemix0190_Visibility') + Button('showNext').onClick(() => { + this.swiperController.showNext() + }).id('UIComponentScrollSwiperInterfacemix0190_showNext') + } + .margin(10) + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..26d782206c5134457c1c5e7e2d96bd60f0d6c548 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0200{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width('100%') + .height('60%') + .indicator( // 设置圆点导航点样式 + new DotIndicator() + .itemWidth(100) + .itemHeight(100) + .selectedItemWidth(100) + .selectedItemHeight(100) + .mask(true)) + .autoPlay(false) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..cdf0ba4d7fed603216b9b48d6f716cdf39e7a77b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0210{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + }, (item: string) => item) + } + .width('100%') + .height('60%') + .indicator(Indicator.digit()) + .autoPlay(false) + .loop(false) + .displayCount(3) + Row({ space: 12 }) { + Button('showNext').id('UIComponentScrollSwiperInterfacemix0210_001') + .onClick(() => { + this.swiperController.showNext() + }) + Button('showPrevious').id('UIComponentScrollSwiperInterfacemix0210_002') + .onClick(() => { + this.swiperController.showPrevious() + }) + }.margin(5) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..d27cf3df12c22142ca772e2938281a10a6d68f0f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0230{ + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .visibility(Visibility.None) + }, (item: string) => item) + } + .id('UIComponentScrollSwiperInterfacemix0230') + .width('100%') + .height('60%') + .backgroundColor(Color.Yellow) + .displayCount(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..49551f9d6fd8fbc9fcc2fd0fad2bbb2a2d6eaba8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0240 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width('100%') + .height(300) + .nextMargin(30) + .prevMargin(30) + .itemSpace(100) + Row({ space: 8 }){ + Button("1-2").onClick(() => { + this.swiperController.showNext() + }) + .id('UIComponentScrollSwiperInterfacemix0240_2') + Button("showPrevious").onClick(() => { + this.swiperController.showPrevious() + }) + .id('UIComponentScrollSwiperInterfacemix0240_showPrevious') + } + .margin({ top: 10 }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..901ec4a4d4528308bcafe8dd04c8615ff562edb0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0250 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width('100%') + .height(300) + .autoPlay(true) + .interval(1000) + .duration(500) + Row({ space: 8 }){ + Button("showPrevious").onClick(() => { + this.swiperController.showPrevious() + }) + .id('UIComponentScrollSwiperInterfacemix0250_showPrevious') + } + .margin({ top: 10 }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..228751f2e3983a0d65eb678d7b0eeacda78fe885 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0280 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column() { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("2").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + } + .border({ width: 1 , color: Color.Red}) + .width(500) + .height(400) + .interval(0) + + Column({space: 8}){ + Button('showPrevious').onClick(() => { + this.swiperController.showPrevious() + }).id('UIComponentScrollSwiperInterfacemix0280_showPrevious') + + Button('showNext').onClick(() => { + this.swiperController.showNext() + }).id('UIComponentScrollSwiperInterfacemix0280_showNext') + } + .margin(10) + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..4fb215aeabd78946b49631d819539d46a7089700 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290.ets @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0290 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width('100%') + .height(300) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..a8e378035b9f0c4a0c70299ca91e4a77b304ce72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0300 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + @State num:number = 1 + @State space:number = 0 + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width('100%') + .height(300) + .displayCount(this.num) + .itemSpace(this.space) + + Column(){ + Button("减少子节点").onClick(() => { + this.data = ['1', '2'] + }) + .id('UIComponentScrollSwiperInterfacemix0300_delete') + Button("一页内显示个数").onClick(() => { + this.num = 2 + }) + .id('UIComponentScrollSwiperInterfacemix0300_count') + Button('子组件间隙').onClick(() => { + this.space = 100 + }) + .id('UIComponentScrollSwiperInterfacemix0300_space') + } + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..351fbb0b6300b640b39e97e57d4376164ddcd7f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0310 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + .border({width: 1}) + }, (item: string) => item) + } + .width('100%') + .height(300) + .nextMargin(30) + .prevMargin(30) + Row({ space: 8 }){ + Button("切换页面").onClick(() => { + this.swiperController.showNext() + }) + .id('UIComponentScrollSwiperInterfacemix0310_showNext') + } + .margin({ top: 10 }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d85cb9109d9d09911d82c98a989ca434a31b9bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0320 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + @State autoPlay:boolean = true + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width('100%') + .height(300) + .autoPlay(this.autoPlay) + .index(500) + Row(){ + Button("关闭自动循环").onClick(() => { + this.autoPlay = false + }) + .id('UIComponentScrollSwiperInterfacemix0320_close') + } + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef773a33d602bb1b0afce8cfe45defbc5d94be7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0340 { + private swiperController: SwiperController = new SwiperController() + @State data: string[] = ['1', '2', '3', '4', '5'] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + // .width(300) + // .height(300) + .border({ width: 20 }) + + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets index 1ecb61807d1592b2a86b8123f5eb867b4fe2b89c..3452be736a7019a9414e2f1f36adb5722b23f83b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets index 5495cdd9e8011dd5733f577a7c0d097e4de0c619..d65390db5d048678731dcf929dbfde607c760997 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets index 63896e8138ce8c293d4c44f62b828ebd2d915e7f..4266ff26ac5247efae4ae7c7f17c7b6845be0a08 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets index dc87d30d9e152cf3b13ee0564c5c61d293319de5..23246d2b7da2e6957ed5cd8822292c3561430cf2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets index 68445d29396781bb38dedc9ca9676852a66dc529..377583b85961de51f79ba581dcad4cb16acd133b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets index ebb3e85be74971a8922e5961ed7b4ac26f285709..854758d4419f35a4805acafa8d86b0fcf5924eac 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets index 4e1426182edbf0f39533cc84f26ba7d3f5805855..e61273bbf031c23efc969a18ca26644564db5b84 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1070.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebffb07865f77554b036d5b4d288a6456a59bcc3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1070.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentScrollSwiperLayout1070 { + private swiperController: SwiperController = new SwiperController() + private icon: Resource = $r('app.media.icon') + private data: number[] = [1, 2, 3, 4] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Image(this.icon).width(200) + Image(this.icon).width(200) + } + }, (item: string) => item) + } + .displayMode(SwiperDisplayMode.AutoLinear) + .vertical(true) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets index 46607cc3c14d6ec89f708d075e2aa853487729d1..244196cfe216961b4399115a3e3c18d7e75c5183 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets index 5e4a1055bfb17a5171a4956604b61911f37572c9..aff231d9717217f7a551c964410ece1c18735082 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets index c1b313812ea9a562db67df20cbe083af9b1af194..3db223fc7bab09815e801939ae95d5c564b8c9d8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets index 2b21f4d210fb4b1df2e83a87ead3bf6e121a539f..b2480ec0302d416cbda98912dcb99fb36528bc05 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets index 3b38082718a5861c051327b35cf7c70bba513796..12a6e24a3bb45b078f8a4ba1af8c415110547901 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets index c5e076deb23e319e63ed49b02c10feb5e986e914..789518181739d49e78fe8d8e745aad29549d08ad 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets index 712d4595e9bde425fead4efc776272a34c63611a..013ad5ad7895f3158b3282256b458410277a7374 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets index bfbc49fb64eed14d1f79cb9461a889d817528b7c..91c54ea149eba57d7f329ef726c714824ad90986 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets index 950112e342c70d91bb505cadf35cc1605ed29157..511245b04317a8674dec9ed7ad649ef6b22a320b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets index 5148d67fb6971a3bd918a557f6c52a7663374be9..07b6a9b77f4a5cf3bd621e204a9ae3056f7d2d18 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets index 015f4c7bcde6aefa9ccc8795adc7b093eeb4c03f..6b78764cdf1bfe84c97ee4cd12282b758b11d3aa 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets index 89c4c993bcdf0da1b5ac69da825b2945a53552a8..54fd9b2a8b9fd4436921427a7252ba1a5308df83 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0be17601a52773e8dcfb86f1ca02c6c5963d129 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { cert } from '@kit.DeviceCertificateKit' + +@Entry +@Component +struct UIComponentScrollSwiperMargin0040 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()).fontSize(80).width(200).textAlign(TextAlign.Center) + } + .border({width: 1}) + }) + } + .width('100%') + .height(300) + .nextMargin(5) + .prevMargin(5) + .autoPlay(false) + .loop(true) + .index(0) + .backgroundColor("#ffe2c222") + .displayCount(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..b405d02be07c32c457aafcee172082d83c9dedad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { cert } from '@kit.DeviceCertificateKit' + +@Entry +@Component +struct UIComponentScrollSwiperMargin0050 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()).fontSize(80).width(200).textAlign(TextAlign.Center) + } + .border({width: 1}) + }) + } + .width('100%') + .height(300) + .nextMargin(5) + .prevMargin(5) + .autoPlay(false) + .loop(true) + .index(0) + .backgroundColor("#ffe2c222") + .displayCount(3) + .id('swipermargin0050') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..c994e7cfec7ef9d5e781e8b05f0ba490efb07a8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060.ets @@ -0,0 +1,54 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0060{ + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + Text("4") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + } + .backgroundColor("#ffe2c222") + .displayCount(3) + .prevMargin(5) + .nextMargin(5) + .autoPlay(false) + .index(1) + .loop(true) + .displayMode(SwiperDisplayMode.STRETCH) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..33a71e42cd54ffbede3f4a7a7b99de4cb36fcf3e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { cert } from '@kit.DeviceCertificateKit' + +@Entry +@Component +struct UIComponentScrollSwiperMargin0100 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: number) => { + Column() { + Text(item.toString()).fontSize(80).width(200).textAlign(TextAlign.Center) + } + .border({width: 1}) + }) + } + .index(3) + .width('100%') + .height(300) + .nextMargin(5) + .prevMargin(5) + .autoPlay(false) + .loop(true) + .backgroundColor("#ffe2c222") + .displayCount(3) + .id('swipermargin0050') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4a9bd7af098156906e64e46400fe8a97e12337d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */@Entry +@Component +struct UIComponentScrollSwiperMargin0120 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).backgroundColor(Color.Yellow) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(true) + .nextMargin(5) + .displayCount(1) + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + .id('UIComponentScrollSwiperMargin0120') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..3bd519a7cddfb82522f34044d9d63a97a7329ed9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0130 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(false) + .nextMargin(20, true) + .displayCount(3) + .displayMode(SwiperDisplayMode.Stretch) + .id('UIComponentScrollSwiperMargin0130') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..10e34449bf7ed3b69b0b9b4f70e0e94bdb9f7490 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0140 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(true) + .nextMargin(20, true) + .displayCount(0) + .displayMode(SwiperDisplayMode.Stretch) + .id('UIComponentScrollSwiperMargin0140') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..ff1b22c35eeaeff4abe7d688298904d691394440 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0150 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(true) + .nextMargin(20, true) + .displayCount(1) + .displayMode(SwiperDisplayMode.Stretch) + .id('UIComponentScrollSwiperMargin0150') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6c985e45f701b2fa8896dde21f5ffd8d63f5521 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0160 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(true) + .nextMargin(20, true) + .displayCount(3) + .displayMode(SwiperDisplayMode.Stretch) + .id('UIComponentScrollSwiperMargin0160') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..95a65330656c5d598df54590c79366ec39d00121 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */@Entry +@Component +struct UIComponentScrollSwiperMargin0170 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .loop(true) + .displayCount(1) + .displayMode(SwiperDisplayMode.Stretch) + .id('UIComponentScrollSwiperMargin0170') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..dab7527765b18ac14a1dcb5833b7202b8027b8ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0270 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3,4,5,6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).backgroundColor(Color.Green) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(400) + .height(160) + .nextMargin(60,true) + .backgroundColor("#ffe2c222") + .displayCount(3,true) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..c00996fe0ce4f30fdd4b897ce38285de47d0be63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMargin0280 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Column() { + Text("1").fontSize(80).width(200).backgroundColor(Color.Orange) + } + + Column() { + Text("2").fontSize(80).width(100).backgroundColor(Color.Orange) + } + + Column() { + Text("3").fontSize(80).width(50).backgroundColor(Color.Orange) + } + } + .width(400) + .height(160) + .nextMargin(60,true) + .prevMargin(100,true) + .backgroundColor("#ffe2c222") + .displayMode(SwiperDisplayMode.AUTO_LINEAR) + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..3f27039c976463e6794c6e941448a9bc0c54a09e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0040 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .backgroundColor(Color.Green) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .displayCount(3) + .direction(Direction.Ltr) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5a115c412ec7c76dd5c7991f6870341999a2195 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0050 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5 , 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .direction(Direction.Ltr) + + Row(){ + Button("ShowNext").onClick(() => { + this.swiperController.showNext() + }) + .id('UIComponentScrollSwiperMirroring0050_ShowNext') + } + .margin({ top: 30 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..96a6ac14ddffd0f70e255090e4efe58cef8b4f49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0060 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5 , 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .direction(Direction.Ltr) + + Row(){ + Button("showPrevious").onClick(() => { + this.swiperController.showPrevious() + }) + .id('UIComponentScrollSwiperMirroring0060_showPrevious') + } + .margin({ top: 30 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..fca2c6dbae439abb48c130b71e94148fc31371cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0070 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .indicator(DigitIndicator.digit()) + .direction(Direction.Ltr) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..c33027755bf6e3a56924bde59965fa44eb5908e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110.ets @@ -0,0 +1,67 @@ +import { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0110 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().start(LengthMetrics.vp(0))) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee0e2f09fb76bd2dee06caaeaf0c8d93aaf5c5e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0120 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().start(LengthMetrics.vp(10))) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..90715e19663341de54d2238086c315b55ae4160b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140.ets @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0140 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .indicator(DotIndicator.dot().start(LengthMetrics.vp(20))) + .direction(Direction.Ltr) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..aab1708dc308783b53cb157e5dea47a67afabd3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0150 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().start(LengthMetrics.vp(-20))) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..479e032b1074f9693f3bbf81e7482704a35a69ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0160 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().start(LengthMetrics.percent(0.5))) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..f80b075ac81cf0cfc3c317d92ceb719c5b3c3648 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170.ets @@ -0,0 +1,67 @@ +import { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0170 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().start(null)) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..f0723c14479e975b57a625cdca5659991b0d3541 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0180 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .indicator(DotIndicator.dot().start(undefined)) + .direction(Direction.Ltr) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..33a727c90fbff0ad0c965b59c0e0068d870dc0d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' +@Entry +@Component +struct UIComponentScrollSwiperMirroring0190 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(LengthMetrics.vp(0))) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..bc0bddbc9714a64cce4c69dfcb8f7dade3a464af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0220 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + @State size_20: Resource = $r('app.string.size_20') + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(LengthMetrics.resource(this.size_20))) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..7b7b0c2b3a44bf9fc592d4a90ce8b8b2eafce5ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' +@Entry +@Component +struct UIComponentScrollSwiperMirroring0230 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(LengthMetrics.px(-20))) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..c840e89b66ec3a849e2f498ac8700bb40e664117 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' +@Entry +@Component +struct UIComponentScrollSwiperMirroring0240 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .backgroundColor(Color.Green) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(LengthMetrics.percent(0.5))) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..8530f734c15976ba1bd6dd4da821efaa3eda85cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0250 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(null)) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..34811862e2917ad283f9ad6822f34db4f86e5ea8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0260 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().end(undefined)) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..92e8beb3ff4d02e74b6c0c1f2f8e5184f8654b75 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0270 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .direction(Direction.Ltr) + .indicator(new DotIndicator().left(10)) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..d093355bbdb0f678b8f9a93768fcec921b488178 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280.ets @@ -0,0 +1,65 @@ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0280 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().right(10)) + .direction(Direction.Ltr) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f6b5e96befa0ccf766fdf934471176f184ed9f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0340 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .textAlign(TextAlign.Center) + .fontSize(80) + .backgroundColor(Color.Green) + .width('100%') + .height(160) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .displayCount(3) + .direction(Direction.Rtl) + + }.width("100%") + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..919d417ca6e322b6dae6aa16a803214bc16ef1fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0350 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5 , 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .direction(Direction.Rtl) + + Row(){ + Button("ShowNext").onClick(() => { + this.swiperController.showNext() + }) + .id('UIComponentScrollSwiperMirroring0350_ShowNext') + } + .margin({ top: 30 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..bf6c9dffe6723b1da90548a86f29602d9d2061b7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0360 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5 , 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .direction(Direction.Rtl) + + Row(){ + Button("showPrevious").onClick(() => { + this.swiperController.showPrevious() + }) + .id('UIComponentScrollSwiperMirroring0360_showPrevious') + } + .margin({ top: 30 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..bdb4ebe426b045a542f8bb265eccce1431033ee2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370.ets @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0370 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .width(300) + .height(300) + .indicator(DigitIndicator.digit()) + .direction(Direction.Rtl) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..3ed6c0a2fd07ea85386281d9696fd4ecd855b670 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410.ets @@ -0,0 +1,26 @@ +import { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0410 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(LengthMetrics.vp(0))) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0410') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..493c11c0563b32217e24d59b832ed64c33baee65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0420 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(LengthMetrics.vp(10))) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0420') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..74ec5ca4b7413d0133c79de00ca239f5121f0993 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440.ets @@ -0,0 +1,27 @@ +import { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0440 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + @State size_20: Resource = $r('app.string.size_20') + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(LengthMetrics.resource(this.size_20))) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0440') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..3fc62442db1c466c9598cdd641749e23f5c8108e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450.ets @@ -0,0 +1,26 @@ +import { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0450 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(LengthMetrics.vp(-20))) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0450') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..15905b05f9561ae02032b051cc4711907205d338 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460.ets @@ -0,0 +1,26 @@ +import { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0460 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(LengthMetrics.percent(0.5))) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0460') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd81d710e621677752a31f9482ee4b0c4efa3fb1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470.ets @@ -0,0 +1,25 @@ + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0470 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(null)) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0470') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..5509ab708efac5c01f8d6c34b6830b7e2c2223e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480.ets @@ -0,0 +1,25 @@ + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0480 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .indicator(Indicator.dot().start(undefined)) + .direction(Direction.Rtl) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperMirroring0480') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..01a14fbf7916e59e7e0143f1c33e5c3b1331d7e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490.ets @@ -0,0 +1,67 @@ +import { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0490 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().end(LengthMetrics.vp(0))) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d5cb7717a94172133d3cd83fd7c5c79f33d1523 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510.ets @@ -0,0 +1,67 @@ +import { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0510 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().end(LengthMetrics.vp(10))) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..2dfaf5511045fa7e6bba767c9e8e9e130f6ad26c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520.ets @@ -0,0 +1,25 @@ +import { LengthMetrics } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0520 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80).width('90%') + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .indicator(Indicator.dot().end(LengthMetrics.vp(20))) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..b6d6a381432b77b85f944bc54721ba4232e59615 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0530 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().end(LengthMetrics.vp(-20))) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5a01297741170184e7e6b8fcc849bdf049a3ef4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0540 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .indicator(DotIndicator.dot().end(LengthMetrics.percent(0.5))) + .direction(Direction.Rtl) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e8c762c97e38ed1f5c7bcbd814984375bb65dc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0550 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().end(null)) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..159f943d29f4238ff8bf161cb4397e072923e604 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560.ets @@ -0,0 +1,21 @@ +@Entry +@Component +struct UIComponentScrollSwiperMirroring0560 { + private swiperController: SwiperController = new SwiperController() + @State data: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Text(item.toString()).fontSize(80).width('90%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .indicator(Indicator.dot().end(undefined)) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..16bad41e7aa9f93521fac4a8685f210d95676299 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570.ets @@ -0,0 +1,66 @@ + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0570 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().left(100)) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..f01652fff3c02e2f2eca82de2b142113254e66e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580.ets @@ -0,0 +1,66 @@ + +@Entry +@Component +struct UIComponentScrollSwiperMirroring0580 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [2, 3, 4, 5, 6] + + build() { + Column() { + Swiper(this.swiperController) { + Text("1111111") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("2222222") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("33333333") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("4444") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("5555") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("6666") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("777") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("88888") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + Text("99999") + .width('90%') + .height(160) + .textAlign(TextAlign.Center) + .backgroundColor(0xAFEEEE) + } + .displayCount(3, true) + .displayArrow({},false) + .itemSpace("20") + .indicator(DigitIndicator.digit().right(100)) + .direction(Direction.Rtl) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..d842656457a2220b0173cc2c2a7fe4330479e6c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420.ets @@ -0,0 +1,49 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0420 { + private swiperController: SwiperController = new SwiperController(); + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .height(100) + .width(100) + .nextMargin(-10) + .prevMargin(-10) + .itemSpace(0) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0420_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..54daa59bee8001430dfac19b33cb57d12ea8400b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0430 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .height(100) + .width(100) + .nextMargin(-10) + .prevMargin(-10) + .itemSpace(0) + .vertical(true) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0430_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad6451ecf8b164921eed54340d7c09af2b1b9756 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0440 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + .height(100) + .width(100) + .nextMargin(-10) + .prevMargin(-10) + .itemSpace(10) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0440_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..b9e74464a11a53886b97dcc4191fc67e4eb233ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450.ets @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0450 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + .height(100) + .width(100) + .nextMargin(-10) + .prevMargin(-10) + .itemSpace(10) + .vertical(true) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0450_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..45d729be7f384d5317669d7d7d714eae64f23f71 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0460 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(0) + .prevMargin(0) + .itemSpace(0) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9a25ec664c212e8d09439cade1203044d95da64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0460 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(0) + .prevMargin(0) + .itemSpace(0) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .vertical(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..b43f401595ca8a1d23dbcade16334ab22ff871d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0480 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(0) + .prevMargin(0) + .itemSpace(10) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..dcb86dba1cad5ed8f15d41e76ae7bc66d856b12d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0490 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(0) + .prevMargin(0) + .itemSpace(10) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .vertical(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..38837217905c742f4ba99992eeb633393b79f727 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0520 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width(100) + .height(20) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(true) + .displayCount(3) + .vertical(true) + .index(3) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0520_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..118928c6ca3bb62cb08694b19aea58d9bfe35ce2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0530 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3, 4] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(true) + .displayCount(3) + .index(4) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0530_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..cde92788d214eae39f07120e49e84fd9278dbcf4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0540 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2] + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(true) + .displayCount(1) + .vertical(true) + .index(2) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0540_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..40702d1942ec869f091a533228b74257d0891737 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0550 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Row() { + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height(100) + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(true) + .displayCount(1) + .index(2) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0550_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..36c4c208df7203b61830091f167273d710c4a6d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560.ets @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0560 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("0") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("1") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("4") + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("5") + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(true) + .displayCount(3) + .vertical(true) + .index(5) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0560_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c58d5341d0d814684f180938ce89b630b6c9027 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570.ets @@ -0,0 +1,55 @@ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0570 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(true) + .displayCount(3) + .index(3) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0570_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580.ets new file mode 100644 index 0000000000000000000000000000000000000000..40805a33a1b520ea8a8f1fe687c814f46b006a31 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580.ets @@ -0,0 +1,66 @@ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0580 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(20) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(true) + .displayCount(1) + .vertical(true) + .index(2) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0580_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590.ets new file mode 100644 index 0000000000000000000000000000000000000000..18163108a0902b0997a431e3851c0a8e00c31c32 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590.ets @@ -0,0 +1,64 @@ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0590 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Row() { + Text("1") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(20) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(true) + .displayCount(1) + .index(2) + + Button('showNext') + .id('UIComponentScrollSwiperNextPreviousMargin0590_001') + .onClick(() => { + this.swiperController.showNext() + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e7d284b9fa4534198c472d619a6c3b88ae3835e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0600 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(100) + .height(20) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(20) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(20) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("4") + .width(100) + .height(20) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("5") + .width(100) + .height(20) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(false) + .displayCount(3) + .vertical(true) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0600_001') + .onClick(() => { + this.indexV = 1; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610.ets new file mode 100644 index 0000000000000000000000000000000000000000..c1409d746fd57cb92e8a3e3f1aa705d269c691f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610.ets @@ -0,0 +1,72 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0610 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Row() { + Text("1") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(20) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("4") + .width(20) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("5") + .width(20) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(false) + .displayCount(3) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0610_001') + .onClick(() => { + this.indexV = 1; + }) + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..6f25029e1b0779fab5d45a07ff2431e548befe08 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0620 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(60) + .height(60) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(60) + .height(60) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(60) + .height(60) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(false) + .displayCount(1) + .vertical(true) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0620_001') + .onClick(() => { + this.indexV = 3; + }) + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f239a9a5a15fbdaca4c24ad9f3c068f132beae3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0630 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Row() { + Text("1") + .width(60) + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(60) + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(60) + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(0) + .loop(false) + .displayCount(1) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0630_001') + .onClick(() => { + this.indexV = 3; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..c7242d85bbba01b0e9097571f93dede19bef62c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0640 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("4") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("5") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(false) + .displayCount(3) + .vertical(true) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0640_001') + .onClick(() => { + this.indexV = 1; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650.ets new file mode 100644 index 0000000000000000000000000000000000000000..e71305e29c9d0df836eb93770ba2baeaeee45c83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0650 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("4") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("5") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(false) + .displayCount(3) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0650_001') + .onClick(() => { + this.indexV = 1; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660.ets new file mode 100644 index 0000000000000000000000000000000000000000..afe2d4f5b6ebfce1429b7e06543ddf40ee12e76d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0660 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text("1") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .height('60%') + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(false) + .displayCount(1) + .vertical(true) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0660_001') + .onClick(() => { + this.indexV = 3; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..438cfc52a8e7710968bf4ed14a07fd9f8bea1276 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670.ets @@ -0,0 +1,63 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0670 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [0, 1, 2, 3] + @State indexV: number = 0; + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Row() { + Text("1") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width(100) + .height(100) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .width('100%') + .backgroundColor(Color.Yellow) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .itemSpace(10) + .loop(false) + .displayCount(1) + .index(this.indexV) + + Button('切换到最后一个元素页按钮') + .id('UIComponentScrollSwiperNextPreviousMargin0670_001') + .onClick(() => { + this.indexV = 3; + }) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b101bb11819e693aaf6fc6c3de9822c48164222 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0680 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(300) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .loop(false) + .index(2) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..45e8c87799647acc0a9a1f143b0d28701285abc6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0690 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(15) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .loop(false) + .vertical(true) + .index(2) + } + .height(500) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..20e396e6e0e90fc02796762eb171f4bed021a6a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0700 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(30) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .loop(true) + // .index(2) + } + .height(500) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..277f11fb81593cfb301cdad6f5910368f357bb5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0710 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(30) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(3) + .loop(true) + .vertical(true) + } + .height(500) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..19b442a6926d00246b131ef131763cf8c68345d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0720 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(20) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(0) + .loop(false) + .displayCount(2) + .backgroundColor(Color.Yellow) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..4efe06dd4c02582cd79fccc3c3423074db040243 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0730 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(20) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(0) + .loop(false) + .displayCount(2) + .backgroundColor(Color.Yellow) + .vertical(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..5de8ca2b4b4d8caac473455908e64a94aadb1b30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0740 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3,4,5] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(250) + .height(250) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(20) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(0) + .loop(true) + .displayCount(2) + .backgroundColor(Color.Yellow) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750.ets new file mode 100644 index 0000000000000000000000000000000000000000..74082351d33f5e1eddb8bc436dfd18c480239c43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0750 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(350) + .height(350) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(0) + .backgroundColor(Color.Yellow) + .displayCount(2) + .loop(true) + .vertical(true) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5e1236dcc86180c342eb97c1bd3a804ba24b95a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0760 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(350) + .height(350) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.Stretch) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770.ets new file mode 100644 index 0000000000000000000000000000000000000000..87df5cf0356cfc43ca209bd9777fc77e9c64b8ff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0770 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(350) + .height(350) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(2) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780.ets new file mode 100644 index 0000000000000000000000000000000000000000..eff81dbb47950c2ef3d89813a85bdaa0b7523ecf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0780 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(150) + .height(150) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5de375e1495d4a70dd340aab7787350ca9482d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0790 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(350) + .height(350) + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayMode(SwiperDisplayMode.Stretch) + } + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800.ets new file mode 100644 index 0000000000000000000000000000000000000000..921b1231c597994cc9cb52070d2e13125735333d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0800 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(350) + .height(350) + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(2) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810.ets new file mode 100644 index 0000000000000000000000000000000000000000..02c8400ae68047394d87bb06304a0de83a1c9299 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0810 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .border({ width: 1 }) + }, (item: string) => item) + } + .width(350) + .height(350) + .nextMargin(10) + .prevMargin(10) + .padding(15) + .border({ width: 2, color: Color.Red }) + .itemSpace(10) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820.ets new file mode 100644 index 0000000000000000000000000000000000000000..725bccef1dd063e18c44c5eb05146b402b08ff5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0820 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(300) + .height(300) + .padding(100) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(10) + .prevMargin(10) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + .displayMode(SwiperDisplayMode.Stretch) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830.ets new file mode 100644 index 0000000000000000000000000000000000000000..74a13b6089b11a263c8dfd46bb250d6c35cf20e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0830 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(300) + .height(300) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(100) + .prevMargin(100) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2af459c867180780daa19d742ec2c03dcb8a016 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0840 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier() + private data:number[] = [1,2,3] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(200) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(250) + .prevMargin(250) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850.ets new file mode 100644 index 0000000000000000000000000000000000000000..83cfbf49658599384f90fb69cb3bd704ace8b0f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850.ets @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperNextPreviousMargin0850 { + private swiperController: SwiperController = new SwiperController() + private data:number[] = [1,2,3,4,5,6,7,8] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(80) + } + .width(100) + .height(200) + .border({ width: 1 }) + }, (item: string) => item) + } + .nextMargin(150) + .prevMargin(150) + .border({ width: 2, color: Color.Red }) + .backgroundColor(Color.Yellow) + .displayCount(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..3cad391eaa23fc5933a3191fadfdb4a284c6184b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.displayCount(2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0050_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .displayCount(2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca6b5a671f8c55855730695c5796f332bf5d1c93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2.ets @@ -0,0 +1,89 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.displayCount(3) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0050_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .effectMode(EdgeEffect.Spring) + .displayCount(3) + + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..3856c022f4bc000af3f78e11267a174aa3198d34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.curve(Curve.FastOutSlowIn) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0070_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .curve(Curve.FastOutSlowIn) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..2824a43fd617932138560a574aab60315a21a2cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.curve(Curve.LinearOutSlowIn) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0070_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .curve(Curve.LinearOutSlowIn) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + Text("4") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b6f0603b382c7ba1a6f0088ed2fd62ae6cf3c3a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1.ets @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.effectMode(EdgeEffect.Spring) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0090_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .effectMode(EdgeEffect.Spring) + .displayArrow(true, false) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..e6b86c1f7146998c5b0aa7426681ac03ee79b4d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2.ets @@ -0,0 +1,78 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.effectMode(EdgeEffect.Fade) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0090_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .effectMode(EdgeEffect.Fade) + .displayArrow(true, false) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebbc57a0b284128376d89f0363713c0163ac6370 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.cachedCount(2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0100_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .cachedCount(2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..63f96143de9d2d2dbf031402c1655dc423418d62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.cachedCount(3) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0100_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .cachedCount(3) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..8aafe09a3c9b62a42d2fbd9dfae1d13e5d7af990 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.cachedCount(-1) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0110_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .cachedCount(-1) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..1924a8e2c9bb569629e92524e63a4dd13732da30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.cachedCount(-2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0110_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .cachedCount(-2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a40aca5bbcdc2e21be8719156ce94051d156089 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.displayMode(SwiperDisplayMode.AutoLinear) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0120_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .displayMode(SwiperDisplayMode.AutoLinear) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e4356a9ce7be37c850f0f9898f51358e8a97e65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.displayMode(SwiperDisplayMode.STRETCH) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0120_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .displayMode(SwiperDisplayMode.STRETCH) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..9725613ea63f4af336b0d7be133e0049cafd7ec2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.displayMode(SwiperDisplayMode.AutoLinear) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0130_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .displayMode(SwiperDisplayMode.AutoLinear) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..a2ffb58a6597f649168af9698410167cbad3f272 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.itemSpace(2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0130_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .itemSpace(2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..94b721fb3764f56b037a7a86ba4d5fa76be37b52 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.itemSpace(2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0140_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .itemSpace(2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..abfd4c3cc4f728932fe72a8d78133c5a3e1eabdb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.itemSpace(-1) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0140_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .itemSpace(-1) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..32f170269bf880730d40a8bb3c66d7bb2cb844b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperStyle0160_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier().loop(true) + @State loopV: boolean = true + + + build() { + Column({ space: 5 }) { + Text("原始方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .loop(this.loopV) + .index(2) + .id('UIComponentScrollSwiperStyle0160_11') + + Text("attributeModifier方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .index(2) + .id('UIComponentScrollSwiperStyle0160_12') + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..c0ee72cabd7596c49051cee8a834d1b32efdb9f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperStyle0160_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier().loop(false) + @State loopV: boolean = false + + + build() { + Column({ space: 5 }) { + Text("原始方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .loop(this.loopV) + .index(2) + .id('UIComponentScrollSwiperStyle0160_21') + + Text("attributeModifier方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .index(2) + .id('UIComponentScrollSwiperStyle0160_22') + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2da0df563551ac6fcf9dfcb16aea981217b2188 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperStyle0190_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier().index(2) + @State indexV: number = 2 + + + build() { + Column({ space: 5 }) { + Text("原始方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .index(this.indexV) + + Text("attributeModifier方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..728412949e3a4da7ede97d9389538f63e928b2d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2.ets @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@ohos.arkui.modifier' + +@Entry +@Component +struct UIComponentScrollSwiperStyle0190_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: SwiperModifier = new SwiperModifier().index(-1) + @State indexV: number = -1 + + + build() { + Column({ space: 5 }) { + Text("原始方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .index(this.indexV) + + Text("attributeModifier方法") + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + + }.width('100%') + .margin({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..c030fd8157071d860f42dd3b6da918a59ed2b5d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.direction(-1) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0240_1 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .direction(-1) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..93a9efe3bc2f82b3a28f84eab1960450c24db55d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { SwiperModifier } from '@kit.ArkUI' + +class MyButtonModifier implements AttributeModifier { + isDark: boolean = false + + applyNormalAttribute(instance: SwiperAttribute): void { + instance.direction(-2) + } +} + +@Entry +@Component +struct UIComponentScrollSwiperStyle0240_2 { + private swiperController: SwiperController = new SwiperController() + @State modifier: MyButtonModifier = new MyButtonModifier() + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .direction(-2) + + + Swiper(this.swiperController) { + Text("1") + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + Text("2") + .width('90%') + .height(160) + .backgroundColor(Color.Pink) + .textAlign(TextAlign.Center) + Text("3") + .width('90%') + .height(160) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center) + } + .attributeModifier(this.modifier) + .displayArrow(true, false) + + + }.width('100%') + .margin({ top: 5 }) + } + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..5eb9e924ef9c7f7b4a7b98bfeefaa03ac3fff42e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperSwiper0010 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(3,true) + .id('UIComponentScrollSwiperSwiper0010') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..cb23042103d188e92199b46b250308d76646de71 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020.ets @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperSwiper0020 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(2,true) + .id('UIComponentScrollSwiperSwiper0020_1') + + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(2,true) + .id('UIComponentScrollSwiperSwiper0020_2') + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a42075d3d90a100f49453b66cf2ed5cccbd4f6c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030.ets @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperSwiper0030 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(2,true) + .loop(true) + .id('UIComponentScrollSwiperSwiper0030') + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..4e1dc4bdedb380861a9bf56ee95001279e05bf80 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperSwiper0040 { + private swiperController: SwiperController = new SwiperController() + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(2,true) + .loop(true) + .id('UIComponentScrollSwiperSwiper0040_1') + + Swiper(this.swiperController) { + Text("1") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("2") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + + Text("3") + .fontSize(80) + .backgroundColor(Color.Orange) + .textAlign(TextAlign.Center).border({ width: 1 }) + } + .backgroundColor("#ffe2c222") + .displayCount(2,true) + .loop(true) + .id('UIComponentScrollSwiperSwiper0040_2') + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets index 7570aa339a51475ff36d0a81287df29ddec00d73..a4e90215886117e3c19d81d82d96be7cc28d0abb 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets index 2b401f6ebaad39f4a6c6562849662d8e0f629433..a766519f23c76e4c2784d98b0777a01bbd667860 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets index 4b8aaee490f21e69c725eced8229ef827464c7f5..8b4b3a1823693fb646fef24781f2bb8750db764b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets index 7881799e8b434c7bb7f7709a5dc12136c66c0b36..860f33fbe4d4ab025b23ac974d214589401407f6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..09f6d8a4faf2d75ee4fa199e328cc08e06cd022c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0140.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0140 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(9) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0140') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ec8bdb9dc74de16aff1c95dcecc25b1b1e62f28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0150.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0150 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0150') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..00ffb022333223dad6b67e5ee0dfeeccc6c4a200 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0160.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0160 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(9) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0160') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..8fea1db2c490ba8800381949e2aaba370adb8b21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0190.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperUx0190 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('swiperux0190') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..53d0c1f630c5f9e7790947ef74887ee602674c35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0200.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperUx0200 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('swiperux0200') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ba4a1512ba54e01ac2f1c25902535681dc2b169 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0230.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0230 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0230') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..ef4d42eb246e4d79d3967d3e0fc976704524f947 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0240.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0240 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0240') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9f95cfe55b532eeffe4776debe50313dbbbc581 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0250.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0250 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Repeat(this.arr) + .each((obj: RepeatItem) => { + Text('' + obj.item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + }) + } + .indicator(new DotIndicator()) + .autoPlay(false) + .loop(false) + .effectMode(EdgeEffect.Fade) + .id("swiperux0250") + + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f2347f50b165e9058f1220a664360d9e65bc96e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0260.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0260 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Repeat(this.arr) + .each((obj: RepeatItem) => { + Text('' + obj.item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + }) + } + .indicator(new DotIndicator()) + .autoPlay(false) + .loop(false) + .effectMode(EdgeEffect.None) + .id("swiperux0260") + + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..27daff8cf78518375ec5e04a62b3224fd6666d9e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0270.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0270 { + private swiperController: SwiperController = new SwiperController() + @State arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] + + build() { + Column({ space: 5 }) { + Swiper(this.swiperController) { + Repeat(this.arr) + .each((obj: RepeatItem) => { + Text('' + obj.item) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + }) + } + .indicator(new DotIndicator()) + .autoPlay(false) + .loop(false) + .effectMode(EdgeEffect.Spring) + .id("swiperux0270") + .index(9) + + + }.width('100%') + .margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..e01dcf73759f466c1b0262e66e44a91e3243376d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0280.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0280 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(9) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0280') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..d17e8d5c8e2b879b06d35d810b2b004235f834b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0290.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0290 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(9) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0290') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..276e4423a2e6cae5ea6cc1bf2c838cccd66c63c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0300.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0300 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0300') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..0e8dd64211de457eaa50c5cc2b133cc7100970c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0310.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0310 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .index(9) + .indicator(Indicator.dot()) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0310') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..6fc96c1b09f2b52a803671397614307311e60f33 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0340.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperUx0340 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('swiperux0340') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ade476af85e5845bf4ecd2aef2c94d51dc93f10 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0350.ets @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { LengthMetrics, LengthMetricsUnit } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentScrollSwiperUx0350 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('swiperux0350') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b3244f407ac4c848c677c4b0bb3bac6ef0f4464 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0380.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0380 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0380') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..b7f548f7b368cb813084dcc06e3f7e5b1de7bf04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0390.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0390 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(false) + .loop(true) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0390') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..a0aa126606f0356353c771260247ad140a35bf31 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0400.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0400 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .autoPlay(true) + .indicator(DotIndicator.dot()) + .loop(false) + .interval(4000) + .duration(2000) + .id("swiperux0400") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..49eb360041311d19fb8ad20841f1ddc714d3c3cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0410.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0410 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .autoPlay(true) + .indicator(DotIndicator.dot()) + .loop(false) + .id("swiperux0410") + .index(9) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..de8ff067a541a4324bdac592ca061b4bc163e4fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0420.ets @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0420 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .autoPlay(true) + .indicator(DotIndicator.dot()) + .loop(false) + .interval(4000) + .duration(3000) + .id("swiperux0420") + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..2537d5fafada08a30f4bcb47bcdfd481b4454938 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0430.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentScrollSwiperUx0430 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + } + }, (item: string) => item) + } + .backgroundColor(Color.Yellow) + .autoPlay(true) + .indicator(DotIndicator.dot()) + .loop(false) + .id("swiperux0430") + .index(9) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e3434f8c098fee48d23236e98c8b8f07d796d72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0460.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0460 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(true) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0460') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ddeedeee8e423a46266aae6110ac717dd364d0f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0470.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentScrollSwiperUx0470 { + private swiperController: SwiperController = new SwiperController() + private data: number[] = [1,2,3,4,5,6,7,8,9,10] + + build() { + Column() { + Swiper(this.swiperController) { + ForEach(this.data, (item: string) => { + Column() { + Text(item.toString()).fontSize(30).height(100).width(200).backgroundColor(Color.Orange) + } + }, (item: string) => item) + } + .width(500) + .height(300) + .autoPlay(true) + .loop(false) + .indicator(Indicator.dot()) + .index(5) + .backgroundColor(Color.Yellow) + .id('UIComponentScrollSwiperUx0470') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets index 99aa52e22d53d933fdf5a8e2b1f4594b4f34c22a..97c1857b85131d6a0e6a5b601cb61745b66a0329 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets @@ -1,13 +1,13 @@ /* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, + * distributed under the License is distributed on an 'AS IS' BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json new file mode 100644 index 0000000000000000000000000000000000000000..3322b3536ea64474e0bf03e2fc2206977b84ec67 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json @@ -0,0 +1,8 @@ +{ + "boolean": [ + { + "name": "boardSize", + "value": true + } + ] +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json index 4038f619b6a75b6e28b75700455d382845eeaec6..63fbf32218b6f302d08a48ac64cb6da2e764b95d 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json @@ -11,6 +11,10 @@ { "name": "bbb", "value": "5" + }, + { + "name": "boardSize_50", + "value": "50" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json index f87e327c173cd796077b9f84d53b48ac06b7f4da..4d54eaafaeeaa9eddd13f8fdcba84c44de503324 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -191,6 +191,10 @@ { "name": "size_10vp", "value": "10vp" + }, + { + "name": "size_20", + "value": "20" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json index 0bc35630a4cd284dfdd53b0a400c6c24d64a8f3d..c3ceec1ed5b57d778252da3025f9bdc90a2e5a47 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -946,6 +946,7 @@ "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230", "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240", "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250", + "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260", "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270", "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280", "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290", @@ -1034,6 +1035,10 @@ "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520", "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010", "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0190", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0200", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0340", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0350", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830", @@ -1102,6 +1107,9 @@ "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010", "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030", "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0280", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0290", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0020", "testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070", "testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080", "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140", @@ -1129,6 +1137,10 @@ "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020", "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030", "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0810", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0820", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0830", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0840", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680", @@ -1143,6 +1155,340 @@ "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110", "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370" + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0540", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3760", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370", + "testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0050", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0080", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0090", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0110", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0120", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0150", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0190", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0220", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0230", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0250", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0280", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0300", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0310", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0370", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0400", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0440", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0450", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0470", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0480", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0510", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0250", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0260", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0270", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0050", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0080", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0110", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0120", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0130", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0140", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0150", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0160", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0170", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0020", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0100", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0090", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1630", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0880", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0870", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0750", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0760", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0290", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0240", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0230", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0220", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0120", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0010", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0020", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0040", + "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0170", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660", + "testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0880", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0870", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0860", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0850", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1290", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0900", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0910", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3670", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3680", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0920", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0930", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0790", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1060", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1080", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0840", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0970", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140", + "testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0060", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0070", + "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0090", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0690", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0700", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0710", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0740", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0770", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0860", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1170", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1020", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3210", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3230", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3240", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3250", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3270", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3280", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3290", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0950", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1000", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3770", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2", + "testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0140", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0150", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0160", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0280", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0290", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0300", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0310", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0940", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680", + "testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0070", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0080", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0090", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0100", + "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0110", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_1", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_2", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1150", + "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1160", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0400", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0410", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0420", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0430", + "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1070", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480", + "testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0230", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0240", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0380", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0390", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0460", + "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0470", + "testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010", + "testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020", + "testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030", + "testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170", + "testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2", + "testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1" ] }