From a9186f7a6d3ffa0498896517656e3e753d57943b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=9D=E8=BF=AA?= Date: Thu, 21 Nov 2024 10:07:42 +0800 Subject: [PATCH] 1121 swiper1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宝迪 --- .../entry/src/ohosTest/ets/test/List.test.ets | 20 + .../UIArkuiSwiperNavigationPoint.test.ets | 371 ++++++++++++ .../UIComponentScrollSwiperAcross.test.ets | 18 +- .../UIComponentScrollSwiperAdd.test.ets | 388 ++++++++++++ .../UIComponentScrollSwiperArrowHead.test.ets | 54 +- ...ComponentScrollSwiperDisplaycount.test.ets | 14 +- ...onentScrollSwiperDisplayedcolumns.test.ets | 38 ++ .../UIComponentScrollSwiperDrag.test.ets | 400 ++++++++++++ .../UIComponentScrollSwiperInterface.test.ets | 166 ++--- ...ComponentScrollSwiperInterfacemix.test.ets | 552 +++++++++++++++++ .../UIComponentScrollSwiperLayout.test.ets | 420 ++++++------- .../UIComponentScrollSwiperMargin.test.ets | 287 +++++++++ .../UIComponentScrollSwiperMirroring.test.ets | 462 ++++++++++++++ ...entScrollSwiperNextPreviousMargin.test.ets | 572 ++++++++++++++++++ .../UIComponentScrollSwiperStyle.test.ets | 316 ++++++++++ .../UIComponentScrollSwiperSwiper.test.ets | 158 +++++ .../UIComponentScrollSwiperTeace.test.ets | 14 +- .../UIComponentScrollSwiperUx.test.ets | 12 +- .../ohosTest/ets/testability/TestAbility.ets | 6 +- .../UIArkuiSwiperNavigationPoint0020.ets | 41 ++ .../UIArkuiSwiperNavigationPoint0030.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0060_1.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0060_2.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0060_3.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0060_4.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0060_5.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0070_1.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0070_2.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0070_3.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0080.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0090.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0100.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0120.ets | 44 ++ .../UIArkuiSwiperNavigationPoint0140.ets | 103 ++++ .../UIComponentScrollSwiperAcross0010.ets | 6 +- .../UIComponentScrollSwiperAcross0020.ets | 46 ++ .../UIComponentScrollSwiperAcross0030.ets | 6 +- .../UIComponentScrollSwiperAcross0060.ets | 6 +- .../UIComponentScrollSwiperAcross0070.ets | 47 ++ .../UIComponentScrollSwiperAcross0080.ets | 49 ++ .../UIComponentScrollSwiperAcross0090.ets | 46 ++ .../UIComponentScrollSwiperAcross0100.ets | 45 ++ .../UIComponentScrollSwiperAcross0110.ets | 60 ++ .../UIComponentScrollSwiperAcross0280.ets | 45 ++ .../UIComponentScrollSwiperAcross0290.ets | 43 ++ .../UIComponentScrollSwiperAdd0020.ets | 46 ++ .../UIComponentScrollSwiperAdd0030.ets | 44 ++ .../UIComponentScrollSwiperAdd0070.ets | 34 ++ .../UIComponentScrollSwiperAdd0080.ets | 33 + .../UIComponentScrollSwiperAdd0090.ets | 38 ++ .../UIComponentScrollSwiperAdd0100.ets | 31 + .../UIComponentScrollSwiperAdd0110.ets | 35 ++ .../UIComponentScrollSwiperAdd0120.ets | 35 ++ .../UIComponentScrollSwiperAdd0130.ets | 42 ++ .../UIComponentScrollSwiperAdd0140.ets | 33 + .../UIComponentScrollSwiperAdd0190.ets | 35 ++ .../UIComponentScrollSwiperAdd0200.ets | 32 + .../UIComponentScrollSwiperAdd0210.ets | 31 + .../UIComponentScrollSwiperAdd0240.ets | 47 ++ .../UIComponentScrollSwiperAdd0420.ets | 42 ++ .../UIComponentScrollSwiperAdd0430.ets | 42 ++ .../UIComponentScrollSwiperAdd0440.ets | 42 ++ .../UIComponentScrollSwiperAdd0450.ets | 40 ++ .../UIComponentScrollSwiperAdd0460.ets | 41 ++ .../UIComponentScrollSwiperAdd0470.ets | 41 ++ .../UIComponentScrollSwiperAdd0480.ets | 38 ++ .../UIComponentScrollSwiperAdd0490.ets | 48 ++ .../UIComponentScrollSwiperArrowHead0050.ets | 44 ++ .../UIComponentScrollSwiperArrowHead0060.ets | 50 ++ .../UIComponentScrollSwiperArrowHead0070.ets | 50 ++ .../UIComponentScrollSwiperArrowHead0080.ets | 44 ++ .../UIComponentScrollSwiperArrowHead0090.ets | 48 ++ .../UIComponentScrollSwiperArrowHead0110.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0120.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0130.ets | 42 ++ .../UIComponentScrollSwiperArrowHead0140.ets | 42 ++ .../UIComponentScrollSwiperArrowHead0150.ets | 42 ++ .../UIComponentScrollSwiperArrowHead0160.ets | 42 ++ .../UIComponentScrollSwiperArrowHead0170.ets | 42 ++ .../UIComponentScrollSwiperArrowHead0810.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0820.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0830.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0840.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0850.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0860.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0870.ets | 43 ++ .../UIComponentScrollSwiperArrowHead0880.ets | 43 ++ ...IComponentScrollSwiperDisplaycount0010.ets | 39 ++ ...IComponentScrollSwiperDisplaycount0020.ets | 39 ++ ...IComponentScrollSwiperDisplaycount0040.ets | 39 ++ ...IComponentScrollSwiperDisplaycount0090.ets | 47 ++ ...IComponentScrollSwiperDisplaycount0100.ets | 47 ++ ...IComponentScrollSwiperDisplaycount0120.ets | 41 ++ ...IComponentScrollSwiperDisplaycount0140.ets | 6 +- ...IComponentScrollSwiperDisplaycount0170.ets | 46 ++ ...IComponentScrollSwiperDisplaycount0220.ets | 41 ++ ...IComponentScrollSwiperDisplaycount0230.ets | 41 ++ ...IComponentScrollSwiperDisplaycount0240.ets | 41 ++ ...IComponentScrollSwiperDisplaycount0290.ets | 53 ++ ...ponentScrollSwiperDisplayedcolumns0050.ets | 39 ++ .../UIComponentScrollSwiperDrag0110.ets | 36 ++ .../UIComponentScrollSwiperDrag0120.ets | 39 ++ .../UIComponentScrollSwiperDrag0130.ets | 37 ++ .../UIComponentScrollSwiperDrag0140.ets | 37 ++ .../UIComponentScrollSwiperDrag0150.ets | 37 ++ .../UIComponentScrollSwiperDrag0160.ets | 37 ++ .../UIComponentScrollSwiperDrag0170.ets | 37 ++ .../UIComponentScrollSwiperDrag0330.ets | 37 ++ .../UIComponentScrollSwiperDrag0340.ets | 37 ++ .../UIComponentScrollSwiperDrag0360.ets | 37 ++ .../UIComponentScrollSwiperDrag0370.ets | 37 ++ .../UIComponentScrollSwiperDrag0380.ets | 37 ++ .../UIComponentScrollSwiperDrag0390.ets | 40 ++ .../UIComponentScrollSwiperDrag0400.ets | 42 ++ .../UIComponentScrollSwiperDrag0410.ets | 42 ++ .../UIComponentScrollSwiperDrag0420.ets | 42 ++ .../UIComponentScrollSwiperDrag0430.ets | 42 ++ .../UIComponentScrollSwiperDrag0440.ets | 42 ++ .../UIComponentScrollSwiperDrag0450.ets | 42 ++ .../UIComponentScrollSwiperDrag0460.ets | 42 ++ .../UIComponentScrollSwiperDrag0470.ets | 42 ++ .../UIComponentScrollSwiperDrag0480.ets | 42 ++ .../UIComponentScrollSwiperDrag0490.ets | 42 ++ .../UIComponentScrollSwiperDrag0500.ets | 42 ++ .../UIComponentScrollSwiperDrag0510.ets | 42 ++ .../UIComponentScrollSwiperDrag0520.ets | 42 ++ .../UIComponentScrollSwiperDrag0530.ets | 42 ++ .../UIComponentScrollSwiperDrag0540.ets | 42 ++ .../UIComponentScrollSwiperDrag0570.ets | 42 ++ .../UIComponentScrollSwiperDrag0590.ets | 42 ++ .../UIComponentScrollSwiperDrag0650.ets | 42 ++ .../UIComponentScrollSwiperDrag0680.ets | 48 ++ .../UIComponentScrollSwiperDrag0690.ets | 48 ++ .../UIComponentScrollSwiperDrag0760.ets | 41 ++ .../UIComponentScrollSwiperInterface0020.ets | 40 ++ .../UIComponentScrollSwiperInterface0050.ets | 40 ++ .../UIComponentScrollSwiperInterface0080.ets | 40 ++ .../UIComponentScrollSwiperInterface0090.ets | 40 ++ .../UIComponentScrollSwiperInterface0110.ets | 40 ++ .../UIComponentScrollSwiperInterface0120.ets | 40 ++ .../UIComponentScrollSwiperInterface0150.ets | 40 ++ .../UIComponentScrollSwiperInterface0190.ets | 40 ++ .../UIComponentScrollSwiperInterface0220.ets | 41 ++ .../UIComponentScrollSwiperInterface0230.ets | 41 ++ .../UIComponentScrollSwiperInterface0250.ets | 40 ++ ...UIComponentScrollSwiperInterface0270_1.ets | 58 ++ ...UIComponentScrollSwiperInterface0270_2.ets | 58 ++ .../UIComponentScrollSwiperInterface0280.ets | 40 ++ .../UIComponentScrollSwiperInterface0300.ets | 40 ++ .../UIComponentScrollSwiperInterface0310.ets | 40 ++ .../UIComponentScrollSwiperInterface0370.ets | 40 ++ .../UIComponentScrollSwiperInterface0400.ets | 40 ++ .../UIComponentScrollSwiperInterface0440.ets | 40 ++ .../UIComponentScrollSwiperInterface0450.ets | 40 ++ .../UIComponentScrollSwiperInterface0470.ets | 40 ++ .../UIComponentScrollSwiperInterface0480.ets | 41 ++ .../UIComponentScrollSwiperInterface0510.ets | 40 ++ .../UIComponentScrollSwiperInterface0540.ets | 40 ++ .../UIComponentScrollSwiperInterface0690.ets | 33 + .../UIComponentScrollSwiperInterface0700.ets | 38 ++ .../UIComponentScrollSwiperInterface0710.ets | 40 ++ .../UIComponentScrollSwiperInterface0740.ets | 41 ++ .../UIComponentScrollSwiperInterface0750.ets | 34 ++ .../UIComponentScrollSwiperInterface0760.ets | 35 ++ .../UIComponentScrollSwiperInterface0770.ets | 39 ++ .../UIComponentScrollSwiperInterface0780.ets | 42 ++ .../UIComponentScrollSwiperInterface0790.ets | 42 ++ .../UIComponentScrollSwiperInterface0820.ets | 6 +- .../UIComponentScrollSwiperInterface0830.ets | 6 +- .../UIComponentScrollSwiperInterface0840.ets | 44 ++ .../UIComponentScrollSwiperInterface0860.ets | 41 ++ .../UIComponentScrollSwiperInterface0870.ets | 48 ++ .../UIComponentScrollSwiperInterface0880.ets | 52 ++ .../UIComponentScrollSwiperInterface0890.ets | 6 +- .../UIComponentScrollSwiperInterface0900.ets | 54 ++ .../UIComponentScrollSwiperInterface0910.ets | 52 ++ .../UIComponentScrollSwiperInterface0920.ets | 47 ++ .../UIComponentScrollSwiperInterface0930.ets | 68 +++ .../UIComponentScrollSwiperInterface0940.ets | 68 +++ .../UIComponentScrollSwiperInterface0950.ets | 79 +++ .../UIComponentScrollSwiperInterface0960.ets | 6 +- .../UIComponentScrollSwiperInterface0970.ets | 46 ++ .../UIComponentScrollSwiperInterface0980.ets | 6 +- .../UIComponentScrollSwiperInterface0990.ets | 6 +- .../UIComponentScrollSwiperInterface1000.ets | 67 ++ .../UIComponentScrollSwiperInterface1020.ets | 61 ++ .../UIComponentScrollSwiperInterface1060.ets | 39 ++ .../UIComponentScrollSwiperInterface1080.ets | 40 ++ .../UIComponentScrollSwiperInterface1150.ets | 47 ++ .../UIComponentScrollSwiperInterface1160.ets | 47 ++ .../UIComponentScrollSwiperInterface1170.ets | 41 ++ .../UIComponentScrollSwiperInterface1280.ets | 42 ++ .../UIComponentScrollSwiperInterface1290.ets | 42 ++ .../UIComponentScrollSwiperInterface1630.ets | 42 ++ .../UIComponentScrollSwiperInterface2180.ets | 6 +- .../UIComponentScrollSwiperInterface2190.ets | 6 +- .../UIComponentScrollSwiperInterface2200.ets | 6 +- .../UIComponentScrollSwiperInterface2210.ets | 6 +- .../UIComponentScrollSwiperInterface2230.ets | 6 +- .../UIComponentScrollSwiperInterface2330.ets | 6 +- .../UIComponentScrollSwiperInterface2340.ets | 6 +- .../UIComponentScrollSwiperInterface2350.ets | 6 +- .../UIComponentScrollSwiperInterface2460.ets | 6 +- .../UIComponentScrollSwiperInterface2560.ets | 6 +- .../UIComponentScrollSwiperInterface2570.ets | 6 +- .../UIComponentScrollSwiperInterface2720.ets | 6 +- .../UIComponentScrollSwiperInterface2790.ets | 6 +- .../UIComponentScrollSwiperInterface3160.ets | 6 +- .../UIComponentScrollSwiperInterface3210.ets | 76 +++ .../UIComponentScrollSwiperInterface3230.ets | 76 +++ .../UIComponentScrollSwiperInterface3240.ets | 76 +++ .../UIComponentScrollSwiperInterface3250.ets | 76 +++ .../UIComponentScrollSwiperInterface3270.ets | 76 +++ .../UIComponentScrollSwiperInterface3280.ets | 76 +++ .../UIComponentScrollSwiperInterface3290.ets | 76 +++ .../UIComponentScrollSwiperInterface3300.ets | 6 +- .../UIComponentScrollSwiperInterface3310.ets | 6 +- .../UIComponentScrollSwiperInterface3330.ets | 6 +- .../UIComponentScrollSwiperInterface3340.ets | 6 +- .../UIComponentScrollSwiperInterface3350.ets | 6 +- .../UIComponentScrollSwiperInterface3380.ets | 6 +- .../UIComponentScrollSwiperInterface3390.ets | 6 +- .../UIComponentScrollSwiperInterface3430.ets | 6 +- .../UIComponentScrollSwiperInterface3450.ets | 6 +- .../UIComponentScrollSwiperInterface3460.ets | 6 +- .../UIComponentScrollSwiperInterface3500.ets | 6 +- .../UIComponentScrollSwiperInterface3510.ets | 6 +- .../UIComponentScrollSwiperInterface3520.ets | 6 +- .../UIComponentScrollSwiperInterface3530.ets | 6 +- .../UIComponentScrollSwiperInterface3550.ets | 6 +- .../UIComponentScrollSwiperInterface3560.ets | 6 +- .../UIComponentScrollSwiperInterface3570.ets | 6 +- .../UIComponentScrollSwiperInterface3600.ets | 6 +- .../UIComponentScrollSwiperInterface3610.ets | 6 +- .../UIComponentScrollSwiperInterface3670.ets | 42 ++ .../UIComponentScrollSwiperInterface3680.ets | 35 ++ .../UIComponentScrollSwiperInterface3700.ets | 6 +- .../UIComponentScrollSwiperInterface3760.ets | 37 ++ .../UIComponentScrollSwiperInterface3770.ets | 67 ++ .../UIComponentScrollSwiperInterface3780.ets | 6 +- .../UIComponentScrollSwiperInterface3790.ets | 6 +- .../UIComponentScrollSwiperInterface3810.ets | 6 +- .../UIComponentScrollSwiperInterface3820.ets | 6 +- ...IComponentScrollSwiperInterfacemix0010.ets | 44 ++ ...IComponentScrollSwiperInterfacemix0020.ets | 44 ++ ...IComponentScrollSwiperInterfacemix0050.ets | 44 ++ ...IComponentScrollSwiperInterfacemix0070.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0080.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0090.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0100.ets | 42 ++ ...IComponentScrollSwiperInterfacemix0110.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0120.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0130.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0140.ets | 44 ++ ...IComponentScrollSwiperInterfacemix0150.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0160.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0170.ets | 67 ++ ...IComponentScrollSwiperInterfacemix0180.ets | 47 ++ ...IComponentScrollSwiperInterfacemix0190.ets | 58 ++ ...IComponentScrollSwiperInterfacemix0200.ets | 43 ++ ...IComponentScrollSwiperInterfacemix0210.ets | 49 ++ ...IComponentScrollSwiperInterfacemix0230.ets | 39 ++ ...IComponentScrollSwiperInterfacemix0240.ets | 50 ++ ...IComponentScrollSwiperInterfacemix0250.ets | 46 ++ ...IComponentScrollSwiperInterfacemix0280.ets | 54 ++ ...IComponentScrollSwiperInterfacemix0290.ets | 36 ++ ...IComponentScrollSwiperInterfacemix0300.ets | 54 ++ ...IComponentScrollSwiperInterfacemix0310.ets | 46 ++ ...IComponentScrollSwiperInterfacemix0320.ets | 44 ++ ...IComponentScrollSwiperInterfacemix0340.ets | 37 ++ .../UIComponentScrollSwiperLayout0770.ets | 6 +- .../UIComponentScrollSwiperLayout0790.ets | 6 +- .../UIComponentScrollSwiperLayout0810.ets | 6 +- .../UIComponentScrollSwiperLayout1020.ets | 6 +- .../UIComponentScrollSwiperLayout1040.ets | 6 +- .../UIComponentScrollSwiperLayout1050.ets | 6 +- .../UIComponentScrollSwiperLayout1060.ets | 6 +- .../UIComponentScrollSwiperLayout1070.ets | 39 ++ .../UIComponentScrollSwiperLayout1800.ets | 6 +- .../UIComponentScrollSwiperLayout1810.ets | 6 +- .../UIComponentScrollSwiperLayout1820.ets | 6 +- .../UIComponentScrollSwiperLayout1830.ets | 6 +- .../UIComponentScrollSwiperLayout1840.ets | 6 +- .../UIComponentScrollSwiperLayout1850.ets | 6 +- .../UIComponentScrollSwiperLayout2060.ets | 6 +- .../UIComponentScrollSwiperLayout2070.ets | 6 +- .../UIComponentScrollSwiperLayout2080.ets | 6 +- .../UIComponentScrollSwiperLayout2090.ets | 6 +- .../UIComponentScrollSwiperLayout2100.ets | 6 +- .../UIComponentScrollSwiperLayout2110.ets | 6 +- .../UIComponentScrollSwiperMargin0040.ets | 44 ++ .../UIComponentScrollSwiperMargin0050.ets | 45 ++ .../UIComponentScrollSwiperMargin0060.ets | 54 ++ .../UIComponentScrollSwiperMargin0100.ets | 44 ++ .../UIComponentScrollSwiperMargin0120.ets | 41 ++ .../UIComponentScrollSwiperMargin0130.ets | 42 ++ .../UIComponentScrollSwiperMargin0140.ets | 42 ++ .../UIComponentScrollSwiperMargin0150.ets | 42 ++ .../UIComponentScrollSwiperMargin0160.ets | 42 ++ .../UIComponentScrollSwiperMargin0170.ets | 40 ++ .../UIComponentScrollSwiperMargin0270.ets | 40 ++ .../UIComponentScrollSwiperMargin0280.ets | 44 ++ .../UIComponentScrollSwiperMirroring0040.ets | 42 ++ .../UIComponentScrollSwiperMirroring0050.ets | 44 ++ .../UIComponentScrollSwiperMirroring0060.ets | 44 ++ .../UIComponentScrollSwiperMirroring0070.ets | 37 ++ .../UIComponentScrollSwiperMirroring0110.ets | 67 ++ .../UIComponentScrollSwiperMirroring0120.ets | 81 +++ .../UIComponentScrollSwiperMirroring0140.ets | 39 ++ .../UIComponentScrollSwiperMirroring0150.ets | 81 +++ .../UIComponentScrollSwiperMirroring0160.ets | 81 +++ .../UIComponentScrollSwiperMirroring0170.ets | 67 ++ .../UIComponentScrollSwiperMirroring0180.ets | 37 ++ .../UIComponentScrollSwiperMirroring0190.ets | 42 ++ .../UIComponentScrollSwiperMirroring0220.ets | 44 ++ .../UIComponentScrollSwiperMirroring0230.ets | 42 ++ .../UIComponentScrollSwiperMirroring0240.ets | 43 ++ .../UIComponentScrollSwiperMirroring0250.ets | 43 ++ .../UIComponentScrollSwiperMirroring0260.ets | 43 ++ .../UIComponentScrollSwiperMirroring0270.ets | 43 ++ .../UIComponentScrollSwiperMirroring0280.ets | 65 ++ .../UIComponentScrollSwiperMirroring0340.ets | 42 ++ .../UIComponentScrollSwiperMirroring0350.ets | 44 ++ .../UIComponentScrollSwiperMirroring0360.ets | 44 ++ .../UIComponentScrollSwiperMirroring0370.ets | 37 ++ .../UIComponentScrollSwiperMirroring0410.ets | 26 + .../UIComponentScrollSwiperMirroring0420.ets | 40 ++ .../UIComponentScrollSwiperMirroring0440.ets | 27 + .../UIComponentScrollSwiperMirroring0450.ets | 26 + .../UIComponentScrollSwiperMirroring0460.ets | 26 + .../UIComponentScrollSwiperMirroring0470.ets | 25 + .../UIComponentScrollSwiperMirroring0480.ets | 25 + .../UIComponentScrollSwiperMirroring0490.ets | 67 ++ .../UIComponentScrollSwiperMirroring0510.ets | 67 ++ .../UIComponentScrollSwiperMirroring0520.ets | 25 + .../UIComponentScrollSwiperMirroring0530.ets | 81 +++ .../UIComponentScrollSwiperMirroring0540.ets | 38 ++ .../UIComponentScrollSwiperMirroring0550.ets | 81 +++ .../UIComponentScrollSwiperMirroring0560.ets | 21 + .../UIComponentScrollSwiperMirroring0570.ets | 66 ++ .../UIComponentScrollSwiperMirroring0580.ets | 66 ++ ...nentScrollSwiperNextPreviousMargin0420.ets | 49 ++ ...nentScrollSwiperNextPreviousMargin0430.ets | 50 ++ ...nentScrollSwiperNextPreviousMargin0440.ets | 50 ++ ...nentScrollSwiperNextPreviousMargin0450.ets | 51 ++ ...nentScrollSwiperNextPreviousMargin0460.ets | 44 ++ ...nentScrollSwiperNextPreviousMargin0470.ets | 45 ++ ...nentScrollSwiperNextPreviousMargin0480.ets | 44 ++ ...nentScrollSwiperNextPreviousMargin0490.ets | 45 ++ ...nentScrollSwiperNextPreviousMargin0520.ets | 56 ++ ...nentScrollSwiperNextPreviousMargin0530.ets | 53 ++ ...nentScrollSwiperNextPreviousMargin0540.ets | 64 ++ ...nentScrollSwiperNextPreviousMargin0550.ets | 58 ++ ...nentScrollSwiperNextPreviousMargin0560.ets | 62 ++ ...nentScrollSwiperNextPreviousMargin0570.ets | 55 ++ ...nentScrollSwiperNextPreviousMargin0580.ets | 66 ++ ...nentScrollSwiperNextPreviousMargin0590.ets | 64 ++ ...nentScrollSwiperNextPreviousMargin0600.ets | 76 +++ ...nentScrollSwiperNextPreviousMargin0610.ets | 72 +++ ...nentScrollSwiperNextPreviousMargin0620.ets | 64 ++ ...nentScrollSwiperNextPreviousMargin0630.ets | 63 ++ ...nentScrollSwiperNextPreviousMargin0640.ets | 76 +++ ...nentScrollSwiperNextPreviousMargin0650.ets | 74 +++ ...nentScrollSwiperNextPreviousMargin0660.ets | 66 ++ ...nentScrollSwiperNextPreviousMargin0670.ets | 63 ++ ...nentScrollSwiperNextPreviousMargin0680.ets | 44 ++ ...nentScrollSwiperNextPreviousMargin0690.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0700.ets | 45 ++ ...nentScrollSwiperNextPreviousMargin0710.ets | 45 ++ ...nentScrollSwiperNextPreviousMargin0720.ets | 47 ++ ...nentScrollSwiperNextPreviousMargin0730.ets | 47 ++ ...nentScrollSwiperNextPreviousMargin0740.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0750.ets | 47 ++ ...nentScrollSwiperNextPreviousMargin0760.ets | 47 ++ ...nentScrollSwiperNextPreviousMargin0770.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0780.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0790.ets | 47 ++ ...nentScrollSwiperNextPreviousMargin0800.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0810.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0820.ets | 46 ++ ...nentScrollSwiperNextPreviousMargin0830.ets | 43 ++ ...nentScrollSwiperNextPreviousMargin0840.ets | 43 ++ ...nentScrollSwiperNextPreviousMargin0850.ets | 43 ++ .../UIComponentScrollSwiperStyle0050_1.ets | 86 +++ .../UIComponentScrollSwiperStyle0050_2.ets | 89 +++ .../UIComponentScrollSwiperStyle0070_1.ets | 86 +++ .../UIComponentScrollSwiperStyle0070_2.ets | 86 +++ .../UIComponentScrollSwiperStyle0090_1.ets | 78 +++ .../UIComponentScrollSwiperStyle0090_2.ets | 78 +++ .../UIComponentScrollSwiperStyle0100_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0100_2.ets | 77 +++ .../UIComponentScrollSwiperStyle0110_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0110_2.ets | 77 +++ .../UIComponentScrollSwiperStyle0120_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0120_2.ets | 77 +++ .../UIComponentScrollSwiperStyle0130_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0130_2.ets | 77 +++ .../UIComponentScrollSwiperStyle0140_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0140_2.ets | 77 +++ .../UIComponentScrollSwiperStyle0160_1.ets | 74 +++ .../UIComponentScrollSwiperStyle0160_2.ets | 74 +++ .../UIComponentScrollSwiperStyle0190_1.ets | 70 +++ .../UIComponentScrollSwiperStyle0190_2.ets | 70 +++ .../UIComponentScrollSwiperStyle0240_1.ets | 77 +++ .../UIComponentScrollSwiperStyle0240_2.ets | 77 +++ .../UIComponentScrollSwiperSwiper0010.ets | 41 ++ .../UIComponentScrollSwiperSwiper0020.ets | 65 ++ .../UIComponentScrollSwiperSwiper0030.ets | 47 ++ .../UIComponentScrollSwiperSwiper0040.ets | 67 ++ .../UIComponentScrollSwiperTeace0070.ets | 6 +- .../UIComponentScrollSwiperTeace0080.ets | 6 +- .../UIComponentScrollSwiperUx0010.ets | 6 +- .../UIComponentScrollSwiperUx0020.ets | 6 +- .../UIComponentScrollSwiperUx0140.ets | 41 ++ .../UIComponentScrollSwiperUx0150.ets | 40 ++ .../UIComponentScrollSwiperUx0160.ets | 41 ++ .../UIComponentScrollSwiperUx0190.ets | 42 ++ .../UIComponentScrollSwiperUx0200.ets | 42 ++ .../UIComponentScrollSwiperUx0230.ets | 40 ++ .../UIComponentScrollSwiperUx0240.ets | 40 ++ .../UIComponentScrollSwiperUx0250.ets | 44 ++ .../UIComponentScrollSwiperUx0260.ets | 44 ++ .../UIComponentScrollSwiperUx0270.ets | 45 ++ .../UIComponentScrollSwiperUx0280.ets | 41 ++ .../UIComponentScrollSwiperUx0290.ets | 41 ++ .../UIComponentScrollSwiperUx0300.ets | 40 ++ .../UIComponentScrollSwiperUx0310.ets | 41 ++ .../UIComponentScrollSwiperUx0340.ets | 42 ++ .../UIComponentScrollSwiperUx0350.ets | 42 ++ .../UIComponentScrollSwiperUx0380.ets | 40 ++ .../UIComponentScrollSwiperUx0390.ets | 40 ++ .../UIComponentScrollSwiperUx0400.ets | 45 ++ .../UIComponentScrollSwiperUx0410.ets | 44 ++ .../UIComponentScrollSwiperUx0420.ets | 45 ++ .../UIComponentScrollSwiperUx0430.ets | 44 ++ .../UIComponentScrollSwiperUx0460.ets | 40 ++ .../UIComponentScrollSwiperUx0470.ets | 40 ++ .../UIComponentScrollSwiperUx0520.ets | 6 +- .../resources/base/element/boolean.json | 8 + .../resources/base/element/float.json | 4 + .../resources/base/element/string.json | 4 + .../resources/base/profile/test_pages.json | 348 ++++++++++- 442 files changed, 21151 insertions(+), 569 deletions(-) create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIArkuiSwiperNavigationPointTest/UIArkuiSwiperNavigationPoint.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAddTest/UIComponentScrollSwiperAdd.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplayedcolumnTest/UIComponentScrollSwiperDisplayedcolumns.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDragTest/UIComponentScrollSwiperDrag.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMarginTest/UIComponentScrollSwiperMargin.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperMirroringTest/UIComponentScrollSwiperMirroring.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperNextPreviousMarginTest/UIComponentScrollSwiperNextPreviousMargin.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperStyleTest/UIComponentScrollSwiperStyle.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperSwiperTest/UIComponentScrollSwiperSwiper.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_3.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_4.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0060_5.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0070_3.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIArkuiSwiperNavigationPoint/UIArkuiSwiperNavigationPoint0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAdd/UIComponentScrollSwiperAdd0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0850.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0860.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0870.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0880.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplayedcolumns/UIComponentScrollSwiperDisplayedcolumns0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDrag/UIComponentScrollSwiperDrag0760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0270_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0740.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0750.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0860.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0870.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0880.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0900.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0910.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0920.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0930.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0940.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0950.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0970.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1000.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMargin/UIComponentScrollSwiperMargin0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0560.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperMirroring/UIComponentScrollSwiperMirroring0580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0560.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0640.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0660.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0720.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0730.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0740.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0750.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0800.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperNextPreviousMargin/UIComponentScrollSwiperNextPreviousMargin0850.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0050_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0070_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0090_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0100_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0110_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0120_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0130_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0140_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0160_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0190_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_1.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperStyle/UIComponentScrollSwiperStyle0240_2.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperSwiper/UIComponentScrollSwiperSwiper0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/boolean.json 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 87c82566b..8d356f54d 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 000000000..c89db1e60 --- /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 77c7949e6..b2a6b975f 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 000000000..cf5147f2a --- /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 1169f15bc..17f2fa6f7 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 d814c97a0..b9600a435 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 000000000..9c6494748 --- /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 000000000..2928ca7c4 --- /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 3611b9713..dea3c2174 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 000000000..f7effbbc8 --- /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 445abeb08..5b2043781 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 000000000..3846ee603 --- /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 000000000..ef8fbfd0c --- /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 000000000..6bf866f9f --- /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 000000000..379970396 --- /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 000000000..a21c9e554 --- /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 45774daa0..7ba1a0f8c 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 47cb0da7d..91a282004 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 5b2992dcb..930043a9c 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 000000000..1446cf8d6 --- /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 000000000..1c2670547 --- /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 000000000..254610353 --- /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 000000000..fe14c8768 --- /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 000000000..735327be1 --- /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 000000000..0f559368b --- /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 000000000..22bde658f --- /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 000000000..252b3cbd7 --- /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 000000000..59c790dfc --- /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 000000000..50b1d95da --- /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 000000000..ff0ec5b1a --- /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 000000000..10e77833b --- /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 000000000..501190a84 --- /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 000000000..d49d09c18 --- /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 000000000..9190645d5 --- /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 e31d9512a..b8f723d64 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 000000000..665201fda --- /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 9aff3705b..395a30126 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 573732910..26846a37c 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 000000000..dadb72544 --- /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 000000000..fea3910dd --- /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 000000000..5168a896b --- /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 000000000..b48422868 --- /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 000000000..4a5b241f4 --- /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 000000000..19bca032f --- /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 000000000..2f03b2932 --- /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 000000000..3f92d2155 --- /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 000000000..9311dcfb6 --- /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 000000000..6fea93481 --- /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 000000000..96ceeb808 --- /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 000000000..fe4c178cf --- /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 000000000..04811c3b0 --- /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 000000000..7c3e979a8 --- /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 000000000..d448e4612 --- /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 000000000..969f2dc4e --- /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 000000000..fb3f56608 --- /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 000000000..371d6643d --- /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 000000000..a33b6114e --- /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 000000000..1be819c6a --- /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 000000000..9744de4e7 --- /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 000000000..15418f3f3 --- /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 000000000..00c0a9e48 --- /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 000000000..4fd8e6b31 --- /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 000000000..48dfed1a7 --- /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 000000000..820304b55 --- /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 000000000..4a7eea94c --- /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 000000000..d6680e357 --- /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 000000000..beff20cc3 --- /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 000000000..b3a058f7f --- /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 000000000..11477df3f --- /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 000000000..551bf9aa3 --- /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 000000000..0ac3060d9 --- /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 000000000..14e4dc77e --- /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 000000000..3cbca7baf --- /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 000000000..188b9d82d --- /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 000000000..c147c862f --- /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 000000000..46f49847b --- /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 000000000..76ffe60b6 --- /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 000000000..6e1e4d55e --- /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 000000000..356c4247d --- /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 000000000..f1d706148 --- /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 000000000..0cd340233 --- /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 000000000..e73c68dcc --- /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 000000000..18a11f8c0 --- /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 000000000..21bae2abf --- /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 000000000..9adba3b8e --- /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 000000000..bb3d0ec68 --- /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 000000000..496c71f24 --- /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 000000000..44e4465ba --- /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 000000000..2d1e30f6f --- /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 000000000..37e681709 --- /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 000000000..81e6f6d09 --- /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 000000000..288b3e641 --- /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 000000000..7aefd1569 --- /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 a2f7f5293..6addd7bf8 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 000000000..ccc9c7620 --- /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 000000000..e513e3cc2 --- /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 000000000..fcdc552a7 --- /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 000000000..d786b03de --- /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 000000000..544429322 --- /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 000000000..196c76149 --- /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 000000000..f3f203460 --- /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 000000000..88784b031 --- /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 000000000..e3e7a176c --- /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 000000000..9ae6e6e1a --- /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 000000000..4016883dd --- /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 000000000..e190d99c9 --- /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 000000000..c93cf7ee1 --- /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 000000000..1161b59b5 --- /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 000000000..beb5b2d83 --- /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 000000000..b894991b4 --- /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 000000000..536542280 --- /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 000000000..d2717baef --- /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 000000000..66e24fe5d --- /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 000000000..76f92a540 --- /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 000000000..6882ae122 --- /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 000000000..935e0845f --- /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 000000000..101b55678 --- /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 000000000..00c81fec2 --- /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 000000000..5c7c4fb74 --- /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 000000000..e6882f49a --- /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 000000000..ae8b30ffd --- /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 000000000..22eb77d84 --- /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 000000000..fa155e0d3 --- /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 000000000..d0828430b --- /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 000000000..9ef7af6b9 --- /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 000000000..b2f57f799 --- /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 000000000..9fa9e244d --- /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 000000000..0e6dcfea0 --- /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 000000000..8efd5f6fe --- /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 000000000..17008b431 --- /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 000000000..a5eade731 --- /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 000000000..2a71ed52f --- /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 000000000..39f8fa80a --- /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 000000000..48effbf0a --- /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 000000000..2b36a317a --- /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 000000000..e1d711bd7 --- /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 000000000..135871165 --- /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 000000000..94ddbec39 --- /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 000000000..0c7b2dfaa --- /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 000000000..01093ed83 --- /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 000000000..0b1af8bf8 --- /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 000000000..107ea4eb0 --- /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 000000000..393f187a1 --- /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 000000000..224ca3046 --- /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 000000000..5d28f03da --- /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 000000000..fb5348bab --- /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 000000000..e5954a4ee --- /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 000000000..e55f44e9e --- /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 000000000..9b5ebe3a0 --- /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 000000000..90433c086 --- /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 000000000..ff6f23a9a --- /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 000000000..81f60a4df --- /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 000000000..f291ad6c6 --- /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 000000000..fa318d6cf --- /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 000000000..384b8958b --- /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 000000000..eff914fa5 --- /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 000000000..320b8e5a4 --- /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 000000000..86e3e514a --- /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 000000000..1c67e4313 --- /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 000000000..3b1e05c01 --- /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 000000000..6f3482a86 --- /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 000000000..93235878f --- /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 000000000..f64fb4e6e --- /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 000000000..41cc24b0a --- /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 000000000..7f669af35 --- /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 000000000..860bd510b --- /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 000000000..82e062a17 --- /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 b6453c037..a24d16556 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 ed023a05d..17c16b1db 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 000000000..c9f2d357e --- /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 000000000..a0d990fc6 --- /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 000000000..792f00d85 --- /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 000000000..fd94f9d83 --- /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 0b906418c..853c91445 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 000000000..58d5bc141 --- /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 000000000..77a47d150 --- /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 000000000..040ad68e3 --- /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 000000000..5e08a1bea --- /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 000000000..63cf1511b --- /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 000000000..afe2e0d01 --- /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 417851200..294aff824 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 000000000..265d71709 --- /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 d5ff8217d..d3404d839 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 70fa20d68..686f7e61f 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 000000000..43a99a3e2 --- /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 000000000..a0ce4f709 --- /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 000000000..04e0c1de2 --- /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 000000000..932053c40 --- /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 000000000..7c2e7cb40 --- /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 000000000..7e6622838 --- /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 000000000..e04ef363f --- /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 000000000..342b91b17 --- /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 000000000..a9c1f3ec4 --- /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 000000000..3bc615adb --- /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 9a58bb458..26c731633 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 975b94e9e..0e598c669 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 f94360a8d..d76e0bb90 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 e9712267e..542d52d09 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 2c7058c5c..9be6bcac8 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 88195bc51..86f83795c 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 d3b880ae1..b7cebb31e 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 741ccd0be..647dff8ae 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 36fbedd9e..85d2d9034 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 9ec4b05b0..7c3d701be 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 69c6e1b96..6af25e27f 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 677562985..8b543d388 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 96bc460e2..2569b0424 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 76f68d425..5af748f6d 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 000000000..50f2c2935 --- /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 000000000..fd348f24e --- /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 000000000..4082cd22b --- /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 000000000..06239f594 --- /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 000000000..644aa2763 --- /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 000000000..e20c7010c --- /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 000000000..a21597dfc --- /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 b1b2fb9ae..81eaa5ea3 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 bcdaa70c7..cf2190c1a 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 3be109762..c22b43c3e 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 8cd9cf67b..1c8e96127 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 538c00b98..6a80d2390 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 223417106..8a2306f5c 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 e4fe1d890..5b1e96e25 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 dd170251c..9c524ac57 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 474cb2b10..f297d6c2a 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 f2e938a22..bbd9eca9f 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 29ab6ff2b..d0a7a39ed 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 bceebb024..e2ef40a2a 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 3f30130dd..62c388f31 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 1549e62d4..186a91e4b 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 90afe05eb..e058d468e 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 b3c8c8877..97e50db23 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 bbfa9d91f..6aa8589b1 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 be48ec33d..1ecec8736 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 5810f6904..be960a26c 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 000000000..d59d26089 --- /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 000000000..dc34f1166 --- /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 56142636d..9eac96333 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 000000000..748e962a7 --- /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 000000000..18659fa95 --- /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 11ab8441d..67c710894 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 a4eb325b4..0da1bcd32 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 ef3ee1974..8d35b4e27 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 c9241c568..8040fe2e1 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 000000000..9e4fbcd40 --- /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 000000000..9e04dcfee --- /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 000000000..498486b05 --- /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 000000000..e9e3b7f80 --- /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 000000000..73c532480 --- /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 000000000..5c40718ae --- /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 000000000..c699557ab --- /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 000000000..1fff40fbc --- /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 000000000..b60087443 --- /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 000000000..f679d2f18 --- /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 000000000..f71439155 --- /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 000000000..5d7ff8c4d --- /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 000000000..e46f7e12f --- /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 000000000..327b321d7 --- /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 000000000..c82e1b846 --- /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 000000000..0dd819302 --- /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 000000000..26d782206 --- /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 000000000..cdf0ba4d7 --- /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 000000000..d27cf3df1 --- /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 000000000..49551f9d6 --- /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 000000000..901ec4a4d --- /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 000000000..228751f2e --- /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 000000000..4fb215aea --- /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 000000000..a8e378035 --- /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 000000000..351fbb0b6 --- /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 000000000..8d85cb910 --- /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 000000000..ef773a33d --- /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 1ecb61807..3452be736 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 5495cdd9e..d65390db5 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 63896e813..4266ff26a 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 dc87d30d9..23246d2b7 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 68445d293..377583b85 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 ebb3e85be..854758d44 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 4e1426182..e61273bbf 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 000000000..ebffb0786 --- /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 46607cc3c..244196cfe 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 5e4a1055b..aff231d97 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 c1b313812..3db223fc7 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 2b21f4d21..b2480ec03 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 3b3808271..12a6e24a3 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 c5e076deb..789518181 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 712d4595e..013ad5ad7 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 bfbc49fb6..91c54ea14 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 950112e34..511245b04 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 5148d67fb..07b6a9b77 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 015f4c7bc..6b78764cd 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 89c4c993b..54fd9b2a8 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 000000000..d0be17601 --- /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 000000000..b405d02be --- /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 000000000..c994e7cfe --- /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 000000000..33a71e42c --- /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 000000000..e4a9bd7af --- /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 000000000..3bd519a7c --- /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 000000000..10e34449b --- /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 000000000..ff1b22c35 --- /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 000000000..f6c985e45 --- /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 000000000..95a653306 --- /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 000000000..dab752776 --- /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 000000000..c00996fe0 --- /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 000000000..3f27039c9 --- /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 000000000..a5a115c41 --- /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 000000000..96a6ac14d --- /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 000000000..fca2c6dba --- /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 000000000..c33027755 --- /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 000000000..ee0e2f09f --- /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 000000000..90715e196 --- /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 000000000..aab1708dc --- /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 000000000..479e032b1 --- /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 000000000..f80b075ac --- /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 000000000..f0723c144 --- /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 000000000..33a727c90 --- /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 000000000..bc0bddbc9 --- /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 000000000..7b7b0c2b3 --- /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 000000000..c840e89b6 --- /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 000000000..8530f734c --- /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 000000000..34811862e --- /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 000000000..92e8beb3f --- /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 000000000..d093355bb --- /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 000000000..8f6b5e96b --- /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 000000000..919d417ca --- /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 000000000..bf6c9dffe --- /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 000000000..bdb4ebe42 --- /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 000000000..3ed6c0a2f --- /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 000000000..493c11c05 --- /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 000000000..74ec5ca4b --- /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 000000000..3fc62442d --- /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 000000000..15905b05f --- /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 000000000..bd81d710e --- /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 000000000..5509ab708 --- /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 000000000..01a14fbf7 --- /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 000000000..3d5cb7717 --- /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 000000000..2dfaf5511 --- /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 000000000..b6d6a3814 --- /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 000000000..d5a012977 --- /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 000000000..0e8c762c9 --- /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 000000000..159f943d2 --- /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 000000000..16bad41e7 --- /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 000000000..f01652fff --- /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 000000000..d84265645 --- /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 000000000..54daa59be --- /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 000000000..ad6451ecf --- /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 000000000..b9e74464a --- /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 000000000..45d729be7 --- /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 000000000..a9a25ec66 --- /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 000000000..b43f40159 --- /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 000000000..dcb86dba1 --- /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 000000000..388372179 --- /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 000000000..118928c6c --- /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 000000000..cde92788d --- /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 000000000..40702d194 --- /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 000000000..36c4c208d --- /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 000000000..0c58d5341 --- /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 000000000..40805a33a --- /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 000000000..18163108a --- /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 000000000..0e7d284b9 --- /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 000000000..c1409d746 --- /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 000000000..6f25029e1 --- /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 000000000..1f239a9a5 --- /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 000000000..c7242d85b --- /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 000000000..e71305e29 --- /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 000000000..afe2d4f5b --- /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 000000000..438cfc52a --- /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 000000000..3b101bb11 --- /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 000000000..45e8c8779 --- /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 000000000..20e396e6e --- /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 000000000..277f11fb8 --- /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 000000000..19b442a69 --- /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 000000000..4efe06dd4 --- /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 000000000..5de8ca2b4 --- /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 000000000..74082351d --- /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 000000000..b5e1236dc --- /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 000000000..87df5cf03 --- /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 000000000..eff81dbb4 --- /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 000000000..b5de375e1 --- /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 000000000..921b1231c --- /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 000000000..02c8400ae --- /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 000000000..725bccef1 --- /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 000000000..74a13b608 --- /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 000000000..b2af459c8 --- /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 000000000..83cfbf496 --- /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 000000000..3cad391ea --- /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 000000000..ca6b5a671 --- /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 000000000..3856c022f --- /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 000000000..2824a43fd --- /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 000000000..3b6f0603b --- /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 000000000..e6b86c1f7 --- /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 000000000..ebbc57a0b --- /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 000000000..63f96143d --- /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 000000000..8aafe09a3 --- /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 000000000..1924a8e2c --- /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 000000000..2a40aca5b --- /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 000000000..4e4356a9c --- /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 000000000..9725613ea --- /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 000000000..a2ffb58a6 --- /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 000000000..94b721fb3 --- /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 000000000..abfd4c3cc --- /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 000000000..32f170269 --- /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 000000000..c0ee72cab --- /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 000000000..b2da0df56 --- /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 000000000..728412949 --- /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 000000000..c030fd815 --- /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 000000000..93a9efe3b --- /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 000000000..5eb9e924e --- /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 000000000..cb2304210 --- /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 000000000..1a42075d3 --- /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 000000000..4e1dc4bde --- /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 7570aa339..a4e902158 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 2b401f6eb..a766519f2 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 4b8aaee49..8b4b3a182 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 7881799e8..860f33fbe 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 000000000..09f6d8a4f --- /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 000000000..0ec8bdb9d --- /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 000000000..00ffb0223 --- /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 000000000..8fea1db2c --- /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 000000000..53d0c1f63 --- /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 000000000..8ba4a1512 --- /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 000000000..ef4d42eb2 --- /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 000000000..a9f95cfe5 --- /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 000000000..0f2347f50 --- /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 000000000..27daff8cf --- /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 000000000..e01dcf737 --- /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 000000000..d17e8d5c8 --- /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 000000000..276e4423a --- /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 000000000..0e8dd6421 --- /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 000000000..6fc96c1b0 --- /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 000000000..2ade476af --- /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 000000000..4b3244f40 --- /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 000000000..b7f548f7b --- /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 000000000..a0aa12660 --- /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 000000000..49eb36004 --- /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 000000000..de8ff067a --- /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 000000000..2537d5faf --- /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 000000000..3e3434f8c --- /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 000000000..9ddeedeee --- /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 99aa52e22..97c1857b8 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 000000000..3322b3536 --- /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 4038f619b..63fbf3221 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 f87e327c1..4d54eaafa 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 0bc35630a..c3ceec1ed 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" ] } -- Gitee