From 89bb1d08bae6c388e0911a8c1f9881ab3b775fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=9D=E8=BF=AA?= Date: Sat, 4 Jan 2025 15:02:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BA=A4=E4=BA=92=E6=A1=86=E6=9E=B6?= =?UTF-8?q?=E7=B1=BBCAPI=E7=AD=89=20=20UI=E5=AF=B9=E6=AF=94pr=E5=90=88?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宝迪 --- .../entry/src/ohosTest/ets/blue_icon.png | Bin 0 -> 1746 bytes .../entry/src/ohosTest/ets/gray_icon.png | Bin 0 -> 1739 bytes .../entry/src/ohosTest/ets/red_icon.png | Bin 0 -> 1745 bytes ...tDragRecipientCopyMoveReplacement.test.ets | 82 + ...ionEventCommonEventTouchAttribute.test.ets | 258 ++ .../textAreaActionEventCommon.test.ets | 300 ++ .../textInputActionEventCommon.test.ets | 319 ++ .../entry/src/ohosTest/ets/test/List.test.ets | 51 + ...UBEventShortcutInterActionTest001.test.ets | 101 + ...SetOnVisibleAreaApproximateChange.test.ets | 315 ++ .../StatusManagerRefresh01.test.ets | 63 + .../StatusManagerRefresh02.test.ets | 62 + ...ceActionEventCommonEventInterface.test.ets | 276 ++ .../SubAceActionGestureJudge.test.ets | 134 + .../SubAceActionGestureOnChildTouch.test.ets | 126 + ...hEventDockPointerEventReplacement.test.ets | 456 +++ .../UIAttributesBackgroundInterface.test.ets | 2575 +++++++++++++ ...UIAttributesBackgroundSelfDrawing.test.ets | 313 ++ .../UIAttributesBackgroundInterface.test.ets | 345 ++ .../UIAttributesFloatingLayerOverlay.test.ets | 464 +++ .../UIAttributesSelectedStyle.test.ets | 394 ++ .../UIAttributesStateStylesInterface.test.ets | 446 +++ .../UIComponentAreachangeTest001.test.ets | 41 + .../UIComponentMediaImageMaskTest001.test.ets | 188 + ...ttributesAttributeUpdaterModifier.test.ets | 3278 +++++++++++++++++ .../UiComponentAreaChange.test.ets | 95 + .../src/ohosTest/ets/test/model/Settings.ets | 8 +- .../src/ohosTest/ets/test/model/Utils.ets | 43 +- ...ntDragRecipientCopyMoveReplacement0030.ets | 119 + ...ntDragRecipientCopyMoveReplacement0050.ets | 110 + ...tionEventCommonEventTouchAttribute0020.ets | 47 + ...tionEventCommonEventTouchAttribute0030.ets | 47 + ...tionEventCommonEventTouchAttribute0040.ets | 47 + ...tionEventCommonEventTouchAttribute0050.ets | 46 + ...tionEventCommonEventTouchAttribute0060.ets | 46 + ...tionEventCommonEventTouchAttribute0070.ets | 46 + ...tionEventCommonEventTouchAttribute0160.ets | 48 + ...tionEventCommonEventTouchAttribute0170.ets | 48 + ...tionEventCommonEventTouchAttribute0180.ets | 48 + ...tionEventCommonEventTouchAttribute0190.ets | 48 + .../textAreaActionEventCommon.ets | 32 + .../textInputActionEventCommon.ets | 28 + .../touchObjectActionEventCommon.ets | 31 + .../SUBEventShortcutInterAction0170.ets | 38 + .../SUBEventShortcutInterAction0180.ets | 45 + .../SetOnVisibleAreaApproximateChange0140.ets | 153 + .../SetOnVisibleAreaApproximateChange0190.ets | 122 + .../SetOnVisibleAreaApproximateChange0200.ets | 131 + .../SetOnVisibleAreaApproximateChange0210.ets | 151 + .../SetOnVisibleAreaApproximateChange0230.ets | 142 + .../SetOnVisibleAreaApproximateChange0250.ets | 97 + .../SetOnVisibleAreaApproximateChange0260.ets | 93 + .../SetOnVisibleAreaApproximateChange0300.ets | 120 + .../SetOnVisibleAreaApproximateChange0320.ets | 135 + .../StatusManagerRefresh01.ets | 41 + .../StatusManagerRefresh02.ets | 40 + ...AceActionEventCommonEventInterface0010.ets | 81 + ...AceActionEventCommonEventInterface0050.ets | 72 + ...AceActionEventCommonEventInterface0090.ets | 80 + ...AceActionEventCommonEventInterface0140.ets | 79 + ...AceActionEventCommonEventInterface0160.ets | 76 + ...AceActionEventCommonEventInterface0190.ets | 80 + .../SubAceActionGestureJudge0100.ets | 58 + .../SubAceActionGestureJudge0110.ets | 62 + .../SubAceActionGestureJudge0240.ets | 90 + .../SubAceActionGestureJudge0250.ets | 92 + .../SubAceActionGestureJudge0260.ets | 58 + .../SubAceActionGestureJudge0280.ets | 62 + .../SubAceActionGestureOnChildTouch0030.ets | 81 + .../TouchEventDockPointerEvent0070.ets | 140 + .../TouchEventDockPointerEvent0080.ets | 140 + .../TouchEventDockPointerEvent0090.ets | 138 + .../TouchEventDockPointerEvent0100.ets | 139 + .../TouchEventDockPointerEvent0110.ets | 139 + .../TouchEventDockPointerEvent0120.ets | 139 + .../TouchEventDockPointerEvent0130.ets | 138 + .../TouchEventDockPointerEvent0140.ets | 132 + .../TouchEventDockPointerEvent0210.ets | 141 + ...chEventDockPointerEventReplacement0010.ets | 42 + ...chEventDockPointerEventReplacement0020.ets | 55 + ...chEventDockPointerEventReplacement0030.ets | 55 + ...chEventDockPointerEventReplacement0040.ets | 42 + ...chEventDockPointerEventReplacement0050.ets | 47 + ...chEventDockPointerEventReplacement0060.ets | 51 + ...chEventDockPointerEventReplacement0150.ets | 54 + ...chEventDockPointerEventReplacement0160.ets | 65 + ...chEventDockPointerEventReplacement0200.ets | 47 + .../ResourceHelper.ets | 50 + .../UIAttributesBackgroundBackBlur0010.ets | 42 + .../UIAttributesBackgroundBackBlur0020.ets | 42 + .../UIAttributesBackgroundBackBlur0030.ets | 42 + .../UIAttributesBackgroundBackBlur0040.ets | 42 + .../UIAttributesBackgroundBackBlur0050.ets | 42 + .../UIAttributesBackgroundBackBlur0060.ets | 43 + .../UIAttributesBackgroundBackBlur0070.ets | 43 + .../UIAttributesBackgroundBackBlur0080.ets | 43 + .../UIAttributesBackgroundBackBlur0090.ets | 43 + .../UIAttributesBackgroundBackBlur0100.ets | 43 + .../UIAttributesBackgroundBackBlur0110.ets | 43 + .../UIAttributesBackgroundBackBlur0120.ets | 43 + .../UIAttributesBackgroundBackBlur0130.ets | 43 + .../UIAttributesBackgroundBackBlur0140.ets | 43 + .../UIAttributesBackgroundBackBlur0150.ets | 43 + .../UIAttributesBackgroundBackBlur0160.ets | 43 + .../UIAttributesBackgroundBackBlur0170.ets | 43 + .../UIAttributesBackgroundBackBlur0180.ets | 43 + .../UIAttributesBackgroundBackBlur0190.ets | 45 + .../UIAttributesBackgroundBackBlur0200.ets | 43 + .../UIAttributesBackgroundBackBlur0210.ets | 45 + .../UIAttributesBackgroundBackBlur0220.ets | 43 + .../UIAttributesBackgroundBackBlur0230.ets | 44 + .../UIAttributesBackgroundBackBlur0240.ets | 46 + .../UIAttributesBackgroundBackBlur0250.ets | 46 + .../UIAttributesBackgroundBackBlur0260.ets | 132 + .../UIAttributesBackgroundInterface0010.ets | 25 + .../UIAttributesBackgroundInterface0020.ets | 29 + .../UIAttributesBackgroundInterface0030.ets | 28 + .../UIAttributesBackgroundInterface0040.ets | 30 + .../UIAttributesBackgroundInterface0050.ets | 29 + .../UIAttributesBackgroundInterface0060.ets | 30 + .../UIAttributesBackgroundInterface0070.ets | 29 + .../UIAttributesBackgroundInterface0080.ets | 29 + .../UIAttributesBackgroundInterface0090.ets | 29 + .../UIAttributesBackgroundInterface0100.ets | 29 + .../UIAttributesBackgroundInterface0110.ets | 32 + .../UIAttributesBackgroundInterface0120.ets | 32 + .../UIAttributesBackgroundInterface0130.ets | 32 + .../UIAttributesBackgroundInterface0160.ets | 33 + .../UIAttributesBackgroundInterface0170.ets | 33 + .../UIAttributesBackgroundInterface0180.ets | 33 + .../UIAttributesBackgroundInterface0190.ets | 33 + .../UIAttributesBackgroundInterface0200.ets | 33 + .../UIAttributesBackgroundInterface0210.ets | 33 + .../UIAttributesBackgroundInterface0220.ets | 33 + .../UIAttributesBackgroundInterface0230.ets | 35 + .../UIAttributesBackgroundInterface0240.ets | 36 + .../UIAttributesBackgroundInterface0250.ets | 36 + .../UIAttributesBackgroundInterface0260.ets | 37 + .../UIAttributesBackgroundInterface0270.ets | 36 + .../UIAttributesBackgroundInterface0280.ets | 36 + .../UIAttributesBackgroundInterface0290.ets | 35 + .../UIAttributesBackgroundInterface0300.ets | 35 + .../UIAttributesBackgroundInterface0310.ets | 35 + .../UIAttributesBackgroundInterface0320.ets | 35 + .../UIAttributesBackgroundInterface0330.ets | 35 + .../UIAttributesBackgroundInterface0340.ets | 35 + .../UIAttributesBackgroundInterface0350.ets | 34 + .../UIAttributesBackgroundInterface0380.ets | 36 + .../UIAttributesBackgroundInterface0390.ets | 36 + .../UIAttributesBackgroundInterface0400.ets | 41 + .../UIAttributesBackgroundInterface0410.ets | 40 + .../UIAttributesBackgroundInterface0420.ets | 40 + .../UIAttributesBackgroundInterface0430.ets | 40 + .../UIAttributesBackgroundInterface0440.ets | 41 + .../UIAttributesBackgroundInterface0450.ets | 37 + .../UIAttributesBackgroundInterface0460.ets | 35 + .../UIAttributesBackgroundInterface0470.ets | 35 + .../UIAttributesBackgroundInterface0480.ets | 35 + .../UIAttributesBackgroundInterface0490.ets | 35 + .../UIAttributesBackgroundInterface0500.ets | 35 + .../UIAttributesBackgroundInterface0510.ets | 35 + .../UIAttributesBackgroundInterface0520.ets | 35 + .../UIAttributesBackgroundInterface0530.ets | 34 + .../UIAttributesBackgroundInterface0540.ets | 33 + .../UIAttributesBackgroundInterface0550.ets | 34 + .../UIAttributesBackgroundInterface0560.ets | 35 + .../UIAttributesBackgroundInterface0570.ets | 35 + .../UIAttributesBackgroundInterface0580.ets | 35 + .../UIAttributesBackgroundInterface0590.ets | 35 + .../UIAttributesBackgroundInterface0600.ets | 35 + .../UIAttributesBackgroundInterface0610.ets | 35 + .../UIAttributesBackgroundInterface0620.ets | 35 + .../UIAttributesBackgroundInterface0630.ets | 35 + .../UIAttributesBackgroundInterface0660.ets | 31 + .../UIAttributesBackgroundInterface0670.ets | 31 + .../UIAttributesBackgroundInterface0680.ets | 31 + .../UIAttributesBackgroundInterface0690.ets | 31 + .../UIAttributesBackgroundInterface0700.ets | 31 + .../UIAttributesBackgroundInterface071.ets | 31 + .../UIAttributesBackgroundInterface072.ets | 31 + .../UIAttributesBackgroundInterface073.ets | 31 + .../UIAttributesBackgroundInterface074.ets | 31 + .../UIAttributesBackgroundInterface075.ets | 31 + .../UIAttributesBackgroundInterface076.ets | 31 + .../UIAttributesBackgroundInterface077.ets | 31 + .../UIAttributesBackgroundInterface078.ets | 31 + .../UIAttributesBackgroundInterface079.ets | 31 + .../UIAttributesBackgroundInterface080.ets | 31 + .../UIAttributesBackgroundInterface081.ets | 31 + .../UIAttributesBackgroundInterface083.ets | 31 + .../UIAttributesBackgroundInterface085.ets | 31 + .../UIAttributesBackgroundInterface087.ets | 31 + .../UIAttributesBackgroundInterface088.ets | 37 + .../UIAttributesBackgroundInterface089.ets | 31 + .../UIAttributesBackgroundInterface090.ets | 31 + .../UIAttributesBackgroundInterface091.ets | 31 + .../UIAttributesBackgroundInterface092.ets | 31 + .../UIAttributesBackgroundInterface093.ets | 31 + .../UIAttributesBackgroundInterface094.ets | 31 + .../UIAttributesBackgroundInterface095.ets | 31 + .../UIAttributesBackgroundInterface096.ets | 31 + .../UIAttributesBackgroundInterface097.ets | 30 + .../UIAttributesBackgroundInterface098.ets | 30 + .../UIAttributesBackgroundInterface100.ets | 30 + .../UIAttributesBackgroundInterface103.ets | 30 + .../UIAttributesBackgroundInterface104.ets | 30 + .../UIAttributesBackgroundInterface105.ets | 30 + .../UIAttributesBackgroundInterface106.ets | 30 + .../UIAttributesBackgroundInterface107.ets | 30 + .../UIAttributesBackgroundInterface108.ets | 30 + .../UIAttributesBackgroundInterface109.ets | 30 + .../UIAttributesBackgroundInterface110.ets | 30 + .../UIAttributesBackgroundInterface111.ets | 30 + .../UIAttributesBackgroundInterface112.ets | 29 + .../UIAttributesBackgroundInterface113.ets | 30 + .../UIAttributesBackgroundInterface114.ets | 30 + .../UIAttributesBackgroundInterface115.ets | 30 + .../UIAttributesBackgroundInterface116.ets | 30 + .../UIAttributesBackgroundInterface117.ets | 29 + .../UIAttributesBackgroundInterface118.ets | 30 + .../UIAttributesBackgroundInterface119.ets | 30 + .../UIAttributesBackgroundInterface120.ets | 30 + .../UIAttributesBackgroundInterface121.ets | 30 + .../UIAttributesBackgroundInterface122.ets | 30 + .../UIAttributesBackgroundInterface123.ets | 30 + .../UIAttributesBackgroundInterface124.ets | 30 + .../UIAttributesBackgroundInterface125.ets | 30 + .../UIAttributesBackgroundInterface127.ets | 30 + .../UIAttributesBackgroundInterface128.ets | 30 + .../UIAttributesBackgroundInterface130.ets | 31 + .../UIAttributesBackgroundInterface131.ets | 32 + .../UIAttributesBackgroundInterface1320.ets | 32 + .../UIAttributesBackgroundInterface1330.ets | 31 + .../UIAttributesBackgroundInterface1340.ets | 31 + .../UIAttributesBackgroundInterface1350.ets | 32 + .../UIAttributesBackgroundInterface1360.ets | 32 + .../UIAttributesBackgroundInterface1370.ets | 32 + .../UIAttributesBackgroundInterface1380.ets | 32 + .../UIAttributesBackgroundInterface1390.ets | 32 + .../UIAttributesBackgroundInterface1400.ets | 32 + .../UIAttributesBackgroundInterface1410.ets | 33 + .../UIAttributesBackgroundInterface1420.ets | 32 + .../UIAttributesBackgroundInterface1430.ets | 32 + .../UIAttributesBackgroundInterface1440.ets | 32 + .../UIAttributesBackgroundInterface1450.ets | 32 + .../UIAttributesBackgroundInterface1460.ets | 32 + .../UIAttributesBackgroundInterface1470.ets | 32 + .../UIAttributesBackgroundInterface1480.ets | 32 + .../UIAttributesBackgroundInterface1490.ets | 32 + .../UIAttributesBackgroundInterface1500.ets | 32 + .../UIAttributesBackgroundVisual0010.ets | 41 + .../UIAttributesBackgroundVisual0020.ets | 41 + .../UIAttributesBackgroundVisual0030.ets | 41 + .../UIAttributesBackgroundVisual0040.ets | 41 + .../UIAttributesBackgroundVisual0050.ets | 41 + .../UIAttributesBackgroundVisual0060.ets | 41 + .../UIAttributesBackgroundVisual0070.ets | 41 + .../UIAttributesBackgroundVisual0080.ets | 41 + .../UIAttributesBackgroundVisual0090.ets | 41 + .../UIAttributesBackgroundVisual0100.ets | 41 + .../UIAttributesBackgroundVisual0110.ets | 41 + .../UIAttributesBackgroundVisual0120.ets | 41 + .../UIAttributesBackgroundVisual0130.ets | 41 + .../UIAttributesBackgroundVisual0140.ets | 41 + .../UIAttributesBackgroundVisual0150.ets | 41 + .../UIAttributesBackgroundVisual0160.ets | 41 + .../UIAttributesBackgroundVisual0170.ets | 41 + .../UIAttributesBackgroundVisual0180.ets | 41 + .../UIAttributesBackgroundVisual0190.ets | 39 + .../UIAttributesBackgroundVisual0200.ets | 41 + .../UIAttributesBackgroundVisual0210.ets | 41 + .../UIAttributesBackgroundVisual0220.ets | 41 + .../UIAttributesBackgroundVisual0230.ets | 41 + .../UIAttributesBackgroundVisual0240.ets | 41 + .../UIAttributesBackgroundVisual0250.ets | 41 + .../UIAttributesBackgroundVisual0260.ets | 41 + .../UIAttributesBackgroundVisual0270.ets | 41 + .../UIAttributesFloatingLayerOverlay0240.ets | 36 + .../UIAttributesFloatingLayerOverlay0250.ets | 38 + .../UIAttributesFloatingLayerOverlay0260.ets | 41 + .../UIAttributesFloatingLayerOverlay0270.ets | 47 + .../UIAttributesFloatingLayerOverlay0280.ets | 39 + .../UIAttributesFloatingLayerOverlay0290.ets | 57 + .../UIAttributesFloatingLayerOverlay0300.ets | 50 + .../UIAttributesFloatingLayerOverlay0310.ets | 66 + .../UIAttributesFloatingLayerOverlay0320.ets | 66 + .../UIAttributesFloatingLayerOverlay0330.ets | 70 + .../UIAttributesFloatingLayerOverlay0340.ets | 58 + .../UIAttributesFloatingLayerOverlay0350.ets | 47 + .../UIAttributesFloatingLayerOverlay0360.ets | 57 + .../UIAttributesFloatingLayerOverlay0370.ets | 45 + .../UIAttributesFloatingLayerOverlay0380.ets | 45 + .../UIAttributesFloatingLayerOverlay0390.ets | 90 + .../UIAttributesFloatingLayerOverlay0400.ets | 91 + .../UIAttributesFloatingLayerOverlay0410.ets | 102 + .../UIAttributesFloatingLayerOverlay0420.ets | 82 + .../UIAttributesFloatingLayerOverlay0430.ets | 71 + .../UIAttributesFloatingLayerOverlay0440.ets | 69 + .../UIAttributesFloatingLayerOverlay0450.ets | 58 + .../UIAttributesFloatingLayerOverlay0460.ets | 61 + .../UIAttributesFloatingLayerOverlay0470.ets | 61 + .../UIAttributesFloatingLayerOverlay0480.ets | 39 + .../UIAttributesFloatingLayerOverlay0490.ets | 83 + .../UIAttributesFloatingLayerOverlay0500.ets | 83 + .../UIAttributesFloatingLayerOverlay0510.ets | 29 + .../UIAttributesFloatingLayerOverlay0520.ets | 29 + .../UIAttributesFloatingLayerOverlay0530.ets | 29 + .../UIAttributesFloatingLayerOverlay0540.ets | 31 + .../UIAttributesFloatingLayerOverlay0550.ets | 36 + ...UiAttributesFloatingLayerInterface0010.ets | 25 + ...UiAttributesFloatingLayerInterface0020.ets | 25 + ...UiAttributesFloatingLayerInterface0030.ets | 29 + ...UiAttributesFloatingLayerInterface0040.ets | 29 + ...UiAttributesFloatingLayerInterface0050.ets | 25 + ...UiAttributesFloatingLayerInterface0060.ets | 29 + ...UiAttributesFloatingLayerInterface0070.ets | 28 + ...UiAttributesFloatingLayerInterface0080.ets | 28 + ...UiAttributesFloatingLayerInterface0090.ets | 28 + ...UiAttributesFloatingLayerInterface0100.ets | 28 + ...UiAttributesFloatingLayerInterface0110.ets | 28 + ...UiAttributesFloatingLayerInterface0120.ets | 28 + ...UiAttributesFloatingLayerInterface0130.ets | 27 + ...UiAttributesFloatingLayerInterface0140.ets | 27 + ...UiAttributesFloatingLayerInterface0150.ets | 28 + ...UiAttributesFloatingLayerInterface0160.ets | 29 + ...UiAttributesFloatingLayerInterface0170.ets | 29 + ...UiAttributesFloatingLayerInterface0180.ets | 29 + .../UIAttributesBackgroundSelfDrawing0010.ets | 34 + .../UIAttributesBackgroundSelfDrawing0020.ets | 35 + .../UIAttributesBackgroundSelfDrawing0030.ets | 35 + .../UIAttributesBackgroundSelfDrawing0050.ets | 35 + .../UIAttributesBackgroundSelfDrawing0060.ets | 30 + .../UIAttributesBackgroundSelfDrawing0070.ets | 30 + .../UIAttributesBackgroundSelfDrawing0080.ets | 37 + .../UIAttributesBackgroundSelfDrawing0090.ets | 34 + .../UIAttributesBackgroundSelfDrawing0100.ets | 34 + .../UIAttributesBackgroundSelfDrawing0110.ets | 34 + .../UIAttributesBackgroundSelfDrawing0120.ets | 34 + .../UIAttributesBackgroundSelfDrawing0130.ets | 37 + .../UIAttributesBackgroundSelfDrawing0150.ets | 34 + .../UIAttributesBackgroundSelfDrawing0160.ets | 34 + .../UIAttributesBackgroundSelfDrawing0170.ets | 40 + .../UIAttributesBackgroundSelfDrawing0180.ets | 36 + .../UIAttributesFloatingLayerOverlay0010.ets | 34 + .../UIAttributesFloatingLayerOverlay0020.ets | 34 + .../UIAttributesFloatingLayerOverlay0030.ets | 34 + .../UIAttributesFloatingLayerOverlay0040.ets | 128 + .../UIAttributesFloatingLayerOverlay0050.ets | 47 + .../UIAttributesFloatingLayerOverlay0060.ets | 68 + .../UIAttributesFloatingLayerOverlay0070.ets | 36 + .../UIAttributesFloatingLayerOverlay0080.ets | 70 + .../UIAttributesFloatingLayerOverlay0090.ets | 49 + .../UIAttributesFloatingLayerOverlay0100.ets | 62 + .../UIAttributesFloatingLayerOverlay0110.ets | 42 + .../UIAttributesFloatingLayerOverlay0120.ets | 43 + .../UIAttributesFloatingLayerOverlay0130.ets | 42 + .../UIAttributesFloatingLayerOverlay0140.ets | 42 + .../UIAttributesFloatingLayerOverlay0150.ets | 52 + .../UIAttributesFloatingLayerOverlay0160.ets | 49 + .../UIAttributesFloatingLayerOverlay0170.ets | 48 + .../UIAttributesFloatingLayerOverlay0180.ets | 48 + .../UIAttributesFloatingLayerOverlay0190.ets | 37 + .../UIAttributesFloatingLayerOverlay0200.ets | 38 + .../UIAttributesFloatingLayerOverlay0210.ets | 35 + .../UIAttributesFloatingLayerOverlay0220.ets | 81 + .../UIAttributesFloatingLayerOverlay0230.ets | 65 + .../UIAttributesSelectedStyle0010.ets | 30 + .../UIAttributesSelectedStyle0020.ets | 30 + .../UIAttributesSelectedStyle0030.ets | 38 + .../UIAttributesSelectedStyle0040.ets | 65 + .../UIAttributesSelectedStyle0050.ets | 65 + .../UIAttributesSelectedStyle0060.ets | 71 + .../UIAttributesSelectedStyle0070.ets | 32 + .../UIAttributesSelectedStyle0080.ets | 32 + .../UIAttributesSelectedStyle0090.ets | 40 + .../UIAttributesSelectedStyle0100.ets | 29 + .../UIAttributesSelectedStyle0110.ets | 29 + .../UIAttributesSelectedStyle0120.ets | 36 + .../UIAttributesSelectedStyle0130.ets | 45 + .../UIAttributesSelectedStyle0140.ets | 45 + .../UIAttributesSelectedStyle0150.ets | 51 + .../UIAttributesStateStylesInterface0010.ets | 30 + .../UIAttributesStateStylesInterface0020.ets | 25 + .../UIAttributesStateStylesInterface0030.ets | 34 + .../UIAttributesStateStylesInterface0040.ets | 31 + .../UIAttributesStateStylesInterface0050.ets | 31 + .../UIAttributesStateStylesInterface0060.ets | 31 + .../UIAttributesStateStylesInterface0070.ets | 31 + .../UIAttributesStateStylesInterface0080.ets | 32 + .../UIAttributesStateStylesInterface0090.ets | 43 + .../UIAttributesStateStylesInterface0100.ets | 40 + .../UIAttributesStateStylesInterface0110.ets | 39 + .../UIAttributesStateStylesInterface0120.ets | 39 + .../UIAttributesStateStylesInterface0130.ets | 38 + .../UIAttributesStateStylesInterface0140.ets | 39 + .../UIAttributesStateStylesInterface0150.ets | 26 + .../UIAttributesStateStylesInterface0160.ets | 35 + .../UIAttributesStateStylesInterface0170.ets | 32 + .../UIAttributesStateStylesInterface0180.ets | 32 + .../UIAttributesStateStylesInterface0190.ets | 32 + .../UIAttributesStateStylesInterface0200.ets | 31 + .../UIAttributesStateStylesInterface0210.ets | 32 + .../UIComponentMediaImageMask0010.ets | 40 + .../UIComponentMediaImageMask0020.ets | 45 + .../UIComponentMediaImageMask0050.ets | 49 + .../UIComponentMediaImageMask0100.ets | 38 + .../UIComponentMediaImageMask0110.ets | 45 + .../UIComponentMediaImageMask0120.ets | 63 + .../UIComponentMediaImageMask0260.ets | 43 + ...AttributesAttributeUpdaterModifier0010.ets | 46 + ...AttributesAttributeUpdaterModifier0020.ets | 51 + ...AttributesAttributeUpdaterModifier0030.ets | 49 + ...AttributesAttributeUpdaterModifier0040.ets | 50 + ...AttributesAttributeUpdaterModifier0050.ets | 55 + ...AttributesAttributeUpdaterModifier0060.ets | 54 + ...AttributesAttributeUpdaterModifier0070.ets | 74 + ...AttributesAttributeUpdaterModifier0080.ets | 62 + ...AttributesAttributeUpdaterModifier0090.ets | 86 + ...AttributesAttributeUpdaterModifier0100.ets | 89 + ...AttributesAttributeUpdaterModifier0110.ets | 75 + ...AttributesAttributeUpdaterModifier0120.ets | 47 + ...AttributesAttributeUpdaterModifier0130.ets | 56 + ...AttributesAttributeUpdaterModifier0140.ets | 102 + ...AttributesAttributeUpdaterModifier0150.ets | 53 + ...AttributesAttributeUpdaterModifier0160.ets | 45 + ...AttributesAttributeUpdaterModifier0170.ets | 53 + ...AttributesAttributeUpdaterModifier0180.ets | 106 + ...AttributesAttributeUpdaterModifier0190.ets | 151 + ...AttributesAttributeUpdaterModifier0200.ets | 56 + ...AttributesAttributeUpdaterModifier0210.ets | 41 + ...AttributesAttributeUpdaterModifier0220.ets | 36 + ...AttributesAttributeUpdaterModifier0230.ets | 36 + ...AttributesAttributeUpdaterModifier0240.ets | 32 + ...AttributesAttributeUpdaterModifier0250.ets | 38 + ...AttributesAttributeUpdaterModifier0260.ets | 32 + ...AttributesAttributeUpdaterModifier0270.ets | 42 + ...AttributesAttributeUpdaterModifier0280.ets | 36 + ...AttributesAttributeUpdaterModifier0290.ets | 108 + ...AttributesAttributeUpdaterModifier0300.ets | 59 + ...AttributesAttributeUpdaterModifier0310.ets | 89 + ...AttributesAttributeUpdaterModifier0320.ets | 49 + ...AttributesAttributeUpdaterModifier0330.ets | 83 + ...AttributesAttributeUpdaterModifier0340.ets | 57 + ...AttributesAttributeUpdaterModifier0350.ets | 50 + ...AttributesAttributeUpdaterModifier0360.ets | 72 + ...AttributesAttributeUpdaterModifier0370.ets | 46 + ...AttributesAttributeUpdaterModifier0380.ets | 107 + ...AttributesAttributeUpdaterModifier0390.ets | 40 + ...AttributesAttributeUpdaterModifier0400.ets | 64 + ...AttributesAttributeUpdaterModifier0410.ets | 75 + ...AttributesAttributeUpdaterModifier0420.ets | 51 + ...AttributesAttributeUpdaterModifier0430.ets | 101 + ...AttributesAttributeUpdaterModifier0440.ets | 55 + ...AttributesAttributeUpdaterModifier0450.ets | 136 + .../UIComponentAreachange0190.ets | 88 + .../UIComponentAreachange0200.ets | 88 + .../UIComponentAreachange0230.ets | 103 + .../UIComponentAreachange0250.ets | 78 + .../UIComponentAreachange0260.ets | 78 + .../UIComponentAreachange0300.ets | 103 + .../UIComponentAreachange0320.ets | 118 + .../UiComponentAreaChange0120.ets | 129 + .../uicompare/entry/src/ohosTest/module.json5 | 18 + .../resources/base/element/color.json | 4 + .../resources/base/element/string.json | 4 + .../resources/base/profile/test_pages.json | 440 ++- 466 files changed, 32114 insertions(+), 6 deletions(-) create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/gray_icon.png create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/blue_icon.png new file mode 100755 index 0000000000000000000000000000000000000000..7ffc1e042e0d89e68a11f9c4da22a6723fcc4061 GIT binary patch literal 1746 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|G!U;i$lZxy-8q?;3=C{No-U3d z6>)E`9PB+5z~gXm32W5?ORhzhRSQ@HvOXwoy7$KR*87c>&mZ&klSXmVI)GQVjU@&)3&{1G`_*8ms1H%qRrbI?Y4*mNtSXd753UF|9I8^*}Q&(Wf zYjB8gU^sNz+=`L0fSKhG6O%yPzKfh34bln%Vgd~xKK1$~$TS@P{rRv*!vR~S``3%V zNXymM^y)Bt*SS}(S^!jO4Oi*FaEGCBLjyz0^!ySgrUz^^aLlL`M8?`^K#c|zb<2U# z6h-$G)p(mZft7{hji|+UySt}31!iz@90>0jHi6)E`9PDjz;9+n)F(cqaMfi~i$4|W4WxuQN=I!rK`xzS79GE-z&I1;X7^Vjt94)LY z3VUi63kxuqJ1FQVFg$!JJ-2~j2P0D=BO{0Y{TD1O2Y3ZIxH%jue!8hEFyu8jL^v=U zI&E&n$XLM4a)^mZAa379PL2j?1pzUEh7X^5{Sssvo>$gMa0*x`f7ti_g}KeIAJUNw z=XCDXt9}3~w1z8mV7SB3xS@feWqN)I6Vn4W8n|WD3L+zIG@wQUin_(XXo{kHifVk! zxPgg@iO@UvT*pYvLtA|sAlR0(jPzB%smj|z_6@opZW%15iX{G{xT;m6g=SH Y$JVIV@PL&ESUWLzy85}Sb4q9e0RJ~4IsgCw literal 0 HcmV?d00001 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/red_icon.png new file mode 100755 index 0000000000000000000000000000000000000000..c9a1d747c6d6b548914d80450e6aaf1890909c36 GIT binary patch literal 1745 zcmeAS@N?(olHy`uVBq!ia0y~yU<5K5893O0R7}x|G!U;i$lZxy-8q?;3=C}Do-U3d z6>)E`Y@B!~fXBgcw^)$Y5(X`mrD77-7aUkzS-tc5zOYAg+wGZHHZi4_6*UVh6mT>s zD+q`QG<^8f>*v65hoNyp14GO7{1PUn2W%WItSkz9Y8DF%Fqk_i=qNBed@4P+fnf(D zQz9cHhyMK+EG!3j1vt1l94dagsVgw#H8?~#FdRB1r#=fKe+R|L|@$@K}&%l*zvw_1hD+>p8otL%Q7Y=1JN(GjYpZ7HdIv3 d^P`D^`pX|1_1bEU_ { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /** + * @tc.number: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 + * @tc.name: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 + * @tc.desc: 接收方设置allowDrop允许类型与发起方的数据类型不一致 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT_COPY_MOVE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let image = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove_image')); + let list = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove_list')); + await image.dragTo(list); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0050 finish.`); + done(); + }) + + /** + * @tc.number: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 + * @tc.name: SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 + * @tc.desc: 接收方设置allowDrop允许类型与发起方的数据类型一致 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT_COPY_MOVE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let image = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove0030_image')); + let list = await driver.findComponent(ON.id('CommonEventDragRecipientCopyMove0030_list')); + await image.dragTo(list); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_DRAG_RECIPIENT-COPY-MOVE_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets new file mode 100755 index 00000000..4bce61ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test.ets @@ -0,0 +1,258 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' + +export default function ActionEventCommonEventTouchAttribute() { + + describe('ActionEventCommonEventTouchAttribute', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 + * @tc.desc globalPosition:PositionX:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0020_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 + * @tc.desc globalPosition:PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0030_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0030 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 + * @tc.desc globalPosition:PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0040_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0040 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 + * @tc.desc globalPosition:PositionY:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0050_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0050 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 + * @tc.desc globalPosition:PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0060_onTouch')) + let point = await onTouch.getBoundsCenter(); + let rect = await onTouch.getBounds(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0060 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 + * @tc.desc globalPosition:PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0070_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0070 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 + * @tc.desc PositionX:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0160_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0160 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 + * @tc.desc PositionX:Length(number)--右边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0170_onTouch')) + let point = await onTouch.getBoundsCenter(); + let rect = await onTouch.getBounds(); + await Utils.sleep(1000) + await driver.click(rect.right - 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0170 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 + * @tc.desc PositionX:Length(number)--中间 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0180_onTouch')) + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(point.x, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0180 finish.`); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 + * @tc.desc PositionY:Length(number)--左边 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 start.`); + Settings.createWindow("testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190"); + await Utils.sleep(1000); + let driver = Driver.create(); + let onTouch = await driver.findComponent(ON.id('touchEventAttribute0190_onTouch')) + let rect = await onTouch.getBounds(); + let point = await onTouch.getBoundsCenter(); + await Utils.sleep(1000) + await driver.click(rect.left + 1, point.y); + await Utils.sleep(2000) + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_TOUCH_ATTRIBUTE_0190 finish.`); + done(); + }); + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets new file mode 100755 index 00000000..99dd08f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textAreaActionEventCommon.test.ets @@ -0,0 +1,300 @@ +/** + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, afterEach, it } from "@ohos/hypium" +import windowSnap from '../model/snapShot' +import Utils from '../model/Utils'; +import { Driver, ON } from "@kit.TestKit"; +import { KeyCode } from "@kit.InputKit"; +import Settings from "../model/Settings"; +import Logger from "../model/Logger"; + +export default function textAreaActionEventCommon() { + describe('textAreaActionEventCommon', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + let commonPath = "testability/pages/CommoneventUnifyadd/textAreaActionEventCommon"; + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120 + * @tc.desc TextArea组件三击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0120] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(50); + await pAreaText.click(); + await Utils.sleep(50); + await pAreaText.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130 + * @tc.desc TextArea组件光标移动能力"Ctrl+End" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0130] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140 + * @tc.desc TextArea组件光标移动能力"Ctrl+Home" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + getInspectorTree() + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0140] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150 + * @tc.desc TextArea组件光标移动能力"Ctrl+←" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0150] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160 + * @tc.SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160 + * @tc.desc TextArea组件光标移动能力"Ctrl+↑" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_UP) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0160] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170 + * @tc.desc TextArea组件光标移动能力"Ctrl+→ + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0170] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180 + * @tc.desc TextArea组件光标移动能力"Ctrl+↓" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1500) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_DOWN) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0180] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190 + * @tc.desc TextArea组件双击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(100) + await pAreaText.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0190] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200 + * @tc.desc TextArea组件快捷键"Ctrl+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(10) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0200] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210 + * @tc.desc TextArea组件快捷键"Shift+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(10) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0210] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220 + * @tc.desc TextArea组件选词能力"Ctrl+Shift+<- + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0220] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230 + * @tc.desc TextArea组件选词能力"Ctrl+Shift+-> + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pAreaText = await driver.findComponent(ON.id('key_textArea_action_event_common_001')) + await pAreaText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0230] END'); + done(); + }); + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets new file mode 100755 index 00000000..bba5f499 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/CommoneventUnifyadd/textInputActionEventCommon.test.ets @@ -0,0 +1,319 @@ +/** + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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, afterEach, it } from "@ohos/hypium" +import windowSnap from '../model/snapShot' +import Utils from '../model/Utils'; +import { Driver, ON } from "@kit.TestKit"; +import { KeyCode } from "@kit.InputKit"; +import Settings from "../model/Settings"; +import Logger from "../model/Logger"; + +export default function textInputActionEventCommon() { + describe('textInputActionEventCommon', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + let commonPath="testability/pages/CommoneventUnifyadd/textInputActionEventCommon" + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240 + * @tc.desc TextInput组件三击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0240] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(50); + await pInputText.click(); + await Utils.sleep(50); + await pInputText.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250 + * @tc.desc TextInput组件光标移动能力"Ctrl+End" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0250] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260 + * @tc.desc TextInput组件光标移动能力"Ctrl+Home" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + getInspectorTree() + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0260] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270 + * @tc.desc TextInput组件光标移动能力"Ctrl+←" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0270] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280 + * @tc.nameSUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280 + * @tc.desc TextInput组件光标移动能力"Ctrl+↑" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_UP) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0280] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290 + * @tc.desc TextInput组件光标移动能力"Ctrl+→ + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0290] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300 + * @tc.desc TextInput组件光标移动能力"Ctrl+↓" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + await Utils.sleep(1000) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_HOME) + await Utils.sleep(1500) + driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_DPAD_DOWN) + await Utils.sleep(500) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0300] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310 + * @tc.desc TextInput组件双击选词能力 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(100) + await pInputText.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0310] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320 + * @tc.desc TextInput组件快捷键"Ctrl+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(10) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330 + * @tc.desc TextInput组件快捷键"Shift+Ins" + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0330] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(10) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_MOVE_END) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_INSERT) + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0320] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340 + * @tc.desc TextInput组件选词能力"Ctrl+Shift+<- + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_LEFT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0340] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350 + * @tc.desc TextInput组件选词能力"Ctrl+Shift+-> + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350] START'); + Settings.createWindow(commonPath); + await Utils.sleep(2000); + let driver = Driver.create(); + let pInputText = await driver.findComponent(ON.id('key_textInput_action_event_common_001')) + await pInputText.click(); + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT,KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0350] END'); + done(); + }); + + /** + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360 + * @tc.desc TouchObject事件增加屏幕绝对坐标 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360', 0, async (done: Function) => { + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360] START'); + Settings.createWindow("testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon"); + await Utils.sleep(2000); + let driver = Driver.create(); + let touchObject = await driver.findComponent(ON.id('touch_object_button')) + await touchObject.click(); + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0360] END'); + done(); + }); + }) +} \ No newline at end of file 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 0860e123..6bfbaa39 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 @@ -150,6 +150,33 @@ import UIComponentPopupBoxToastStyleInterface001 import UIComponentPopupBoxFullDialogInterface001 from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test'; +import UIAttributesBackgroundInterface from './UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test'; +import UIAttributesFloatingLayerOverlay from './UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test'; +import UIAttributesBackgroundInterface1 from './UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test'; +import SetOnVisibleAreaApproximateChangeTest from './SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test'; +import UIAttributesBackgroundSelfDrawing + from './UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test'; +import UIAttributesStateStylesInterface from './UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test'; +import UIAttributesSelectedStyle from './UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test'; +import ActionEventCommonEventTouchAttribute from './ActionEventCommonEventTouchAttributeTest/ActionEventCommonEventTouchAttribute.test'; +import textAreaActionEventCommon from './CommoneventUnifyadd/textAreaActionEventCommon.test' +import textInputActionEventCommon from './CommoneventUnifyadd/textInputActionEventCommon.test' +import UiAttributesAttributeUpdaterModifier + from './UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test' +import UiComponentAreaChange from './UiComponentAreaChange/UiComponentAreaChange.test' +import SubAceActionGestureJudge from './SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test'; +import SubAceActionEventCommonEventInterface from './SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test'; +import SubAceActionGestureOnChildTouch from './SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test'; + +import TouchEventDockPointerEventReplacement + from './TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test'; +import UIComponentAreachangeTest001 from './UIComponentAreachangeTest/UIComponentAreachangeTest001.test'; +import UIComponentMediaImageMaskTest001 from './UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test'; +import SUBEventShortcutInterActionTest001 from './SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test'; +import ActionEventCommonEventDragRecipientCopyMoveReplacement from './ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement.test'; +import StatusManagerRefresh01 from './StatusManagerRefreshTest/StatusManagerRefresh01.test'; +import StatusManagerRefresh02 from './StatusManagerRefreshTest/StatusManagerRefresh02.test'; + export default function testsuite() { ComponentTextRicheditorFontfeatures(); ComponentTextRicheditorCustomColors(); @@ -239,6 +266,30 @@ export default function testsuite() { UIComponentPopupBoxAttribute(); UIComponentPopupBoxPromptToastSequence(); UIComponentPopupBoxSpecificationsPopup(); + + UIAttributesBackgroundInterface(); + UIAttributesBackgroundInterface1(); + SetOnVisibleAreaApproximateChangeTest(); + UIAttributesBackgroundSelfDrawing(); + UIAttributesFloatingLayerOverlay(); + UIAttributesStateStylesInterface(); + UIAttributesSelectedStyle(); + ActionEventCommonEventTouchAttribute(); + textAreaActionEventCommon(); + textInputActionEventCommon(); + UiAttributesAttributeUpdaterModifier(); + UiComponentAreaChange(); + SubAceActionGestureJudge(); + SubAceActionEventCommonEventInterface(); + SubAceActionGestureOnChildTouch(); + + TouchEventDockPointerEventReplacement(); + UIComponentAreachangeTest001(); + UIComponentMediaImageMaskTest001(); + SUBEventShortcutInterActionTest001(); + ActionEventCommonEventDragRecipientCopyMoveReplacement(); + StatusManagerRefresh01(); + StatusManagerRefresh02(); } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets new file mode 100755 index 00000000..53de33f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SUBEventShortcutInterAction/SUBEventShortcutInterActionTest001.test.ets @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +/* + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function SUBEventShortcutInterActionTest001() { + + describe('SUBEventShortcutInterActionTest001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 start.`); + Settings.createWindow("testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0170 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 start.`); + Settings.createWindow("testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('SUBEventShortcutInterAction0180_button_01')); + await Utils.sleep(500); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2002) + await Utils.sleep(1000); + await button.click() + await Utils.sleep(1000); + await driver.triggerCombineKeys(2072, 2001) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_SHORTCUT_INTERACTION_0180 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets new file mode 100755 index 00000000..ef0d7463 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SetOnVisibleAreaApproximateChangeTest/SetOnVisibleAreaApproximateChange.test.ets @@ -0,0 +1,315 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' + +export default function SetOnVisibleAreaApproximateChangeTest() { + + describe('SetOnVisibleAreaApproximateChangeTest', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0210 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0210 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + + let button1 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button1')); + await button1.click(); + await Utils.sleep(1000); + + let button2 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button2')); + await button2.click(); + await Utils.sleep(1000); + + let button3 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0210_button3')); + await button3.click(); + await Utils.sleep(1000); + + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0210 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0190 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0190 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0190_button')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(500) + await driver.drag(400, 100, 50, 100, 500) + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0190 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0200 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0200 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0200_button')); + let tab1 = await driver.findComponent(ON.text('tab1')); + let tab2 = await driver.findComponent(ON.text('tab2')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(500) + await tab2.click() + await Utils.sleep(500) + await tab1.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0200 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0140 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0140 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + + let button3 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button3')); + await button3.click(); + await Utils.sleep(1000); + + let button1 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button1')); + await button1.click(); + await Utils.sleep(1000); + + let button2 = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0140_button2')); + await button2.click(); + await Utils.sleep(1000); + + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0250 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0250 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let textInput = await driver.findComponent(ON.id('textInput_node0250')); + await Utils.sleep(1000) + await textInput.click() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0250 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0260 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0260 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let textInput = await driver.findComponent(ON.id('textInput_node0260')); + await Utils.sleep(1000) + await textInput.click() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(500) + await driver.pressBack() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0260 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0230 + * @tc.desc frameNode textInput + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0230 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.id('SetOnVisibleAreaApproximateChange0230_button')); + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0320 + * @tc.desc frameNode scroll + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0320 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0320 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0300 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0300 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0300 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0330 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0330 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button = await driver.findComponent(ON.text('scroll')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0330 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0090 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0090 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000) + await Utils.homeAndBack(driver) + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0090 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0100 + * @tc.desc frameNode text + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0100 start.`); + Settings.createWindow("testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000) + await Utils.lockAndUnlock(driver) + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0100 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.ets new file mode 100755 index 00000000..31a74c53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh01.test.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. + */ + +import { afterEach, describe, it } 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 } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' + +export default function StatusManagerRefresh01() { + + describe('StatusManagerRefresh01', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD 0080 start.`); + Settings.createWindow("testability/pages/StatusManagerRefresh/StatusManagerRefresh01"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_F5); + await Utils.sleep(1000); + let text1 = await driver.findComponent(ON.id('Refresh1')); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080] text1', text1); + let textContentStr = await text1.getText(); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080] textContentStr', textContentStr); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0080 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.ets new file mode 100755 index 00000000..8acad102 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerRefreshTest/StatusManagerRefresh02.test.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. + */ + +import { afterEach, describe, it } 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 } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' + +export default function StatusManagerRefresh02() { + + describe('StatusManagerRefresh02', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070 start.`); + Settings.createWindow("testability/pages/StatusManagerRefresh/StatusManagerRefresh02"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_R); + let text1 = await driver.findComponent(ON.id('Refresh2')); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070] text1', text1); + let textContentStr = await text1.getText(); + console.info('[SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070] textContentStr', textContentStr); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_UNIFYADD_0070 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets new file mode 100755 index 00000000..953bb84c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionEventCommonEventInterfaceTest/SubAceActionEventCommonEventInterface.test.ets @@ -0,0 +1,276 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 } from '@ohos.UiTest' + +export default function SubAceActionEventCommonEventInterface() { + + describe('SubAceActionEventCommonEventInterface', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 + * @tc.desc ETS侧接口设置父组件的拦截结果为NONE(3),子组件的拦截结果为NONE + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 + * @tc.desc ETS侧接口设置父组件的拦截结果为NONE(3),子组件的拦截结果为NONE + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Block + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Default + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 + * @tc.name SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 + * @tc.desc ETS侧接口设置一个子组件的拦截结果为NONE,另一个子子组件的拦截结果为Default + */ + it('SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let stack1: Component = await driver.findComponent(ON.id('stack1')); + await Utils.sleep(300) + let bounds1=await stack1.getBounds() + await Utils.sleep(200); + await driver.click(bounds1.left+10,bounds1.top+10) + await Utils.sleep(500); + let stack2: Component = await driver.findComponent(ON.id('stack2')); + await Utils.sleep(300); + let bounds2=await stack2.getBounds() + await Utils.sleep(200); + await driver.click(bounds2.left+10,bounds2.top+10) + await Utils.sleep(500); + let stack3: Component = await driver.findComponent(ON.id('stack3')); + await Utils.sleep(300); + let bounds3=await stack3.getBounds() + await Utils.sleep(200); + await driver.click(bounds3.left+10,bounds3.top+10) + await Utils.sleep(500); + let button: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(200); + await button.click() + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(15000); + Logger.info('TEST', `SUB_ACE_ACTION_EVENT_COMMONEVENT_EVENT_INTERFACE_0190 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets new file mode 100755 index 00000000..c858abf6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureJudgeTest/SubAceActionGestureJudge.test.ets @@ -0,0 +1,134 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +export default function SubAceActionGestureJudge() { + + describe('SubAceActionGestureJudge', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0240 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0240 + * @tc.desc 事件自定义手势判定能力,组件绑定手势互斥组合 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0240 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('column')); + await Utils.sleep(300) + await column.click() + await Utils.sleep(50) + await column.click() + await Utils.sleep(1000) + await column.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0250 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0250 + * @tc.desc 事件自定义手势判定能力,组件绑定手势并行组合 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0250 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('column')); + await Utils.sleep(300) + await column.click() + await Utils.sleep(50) + await column.click() + await Utils.sleep(1000) + await column.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0100 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0100 + * @tc.desc 事件自定义手势判定能力,判定点击事件是否为系统手势 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0100 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(300) + await column.click() + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0100 finish.`); + done(); + }) + + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_JUDGE_0260 + * @tc.name SUB_ACE_ACTION_GESTURE_JUDGE_0260 + * @tc.desc 事件自定义手势判定能力,button设置onclick事件,判定点击事件成功后响应事件 + */ + it('SUB_ACE_ACTION_GESTURE_JUDGE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0260 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let column: Component = await driver.findComponent(ON.id('button')); + await Utils.sleep(300) + await column.click() + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_JUDGE_0260 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets new file mode 100755 index 00000000..7de8640a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/SubAceActionGestureOnChildTouchTest/SubAceActionGestureOnChildTouch.test.ets @@ -0,0 +1,126 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 } from '@ohos.UiTest' + +export default function SubAceActionGestureOnChildTouch() { + + describe('SubAceActionGestureOnChildTouch', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +150, bounds1.left + 10, bounds1.top + 20, 2000) + + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +100, bounds1.left + 10, bounds1.top + 20, 2000) + + let MyList: Component = await driver.findComponent(ON.id('MyList')); + await Utils.sleep(300) + await MyList.scrollToBottom(3000) + await Utils.sleep(2000) + + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.name SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 + * @tc.desc ETS侧接口设置父组件的拦截结果为Transparent + */ + it('SUB_ACE_ACTION_GESTURE_ON_CHILD_TOUCH_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 start.`); + Settings.createWindow("testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let root: Component = await driver.findComponent(ON.id('root')); + await Utils.sleep(300) + let bounds1 = await root.getBounds() + await Utils.sleep(200); + await driver.swipe(bounds1.left + 10, bounds1.top +100, bounds1.left + 10, bounds1.top + 20, 2000) + + let MyList: Component = await driver.findComponent(ON.id('MyList')); + await Utils.sleep(300) + await MyList.scrollToBottom(3000) + await Utils.sleep(1000) + + let text: Component = await driver.findComponent(ON.id('text')); + await Utils.sleep(200) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_ACTION_GESTURE_ON-CHILD-TOUCH_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets new file mode 100755 index 00000000..7a2df74f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement.test.ets @@ -0,0 +1,456 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' + +export default function TouchEventDockPointerEventReplacement() { + + describe('TouchEventDockPointerEventReplacement', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0010 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let show = await driver.findComponent(ON.id('change')); + await show.doubleClick(); + await Utils.sleep(500); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0020 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let show = await driver.findComponent(ON.id('change')); + await show.click(); + await Utils.sleep(500); + let tapClick = await driver.findComponent(ON.id('tapClick')); + await tapClick.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let pinchOut = await driver.findComponent(ON.id('pinchOut')); + await Utils.sleep(500); + await pinchOut.pinchOut(1.5); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0150 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let pinchOut = await driver.findComponent(ON.id('pinchOut')); + await Utils.sleep(500); + await pinchOut.pinchOut(1.5); + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0160 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0040 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.click(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0050 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await Utils.sleep(500); + await longPress.click(); + await Utils.sleep(500); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0060 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 + * @tc.name : SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 + * @tc.desc : Gesture + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let longPress = await driver.findComponent(ON.id('longPress')); + await longPress.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070 + * @tc.desc PanDirection.All + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ EVENT_DOCK_POINTER_EVENT_ANDROID_0070 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_all')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0070_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ EVENT_DOCK_POINTER_EVENT_ANDROID_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 + * @tc.desc PanDirection.Left + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_left')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0100_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right - 50, pointer.y); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 + * @tc.desc PanDirection.Horizontal + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_horizontal')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0080_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 + * @tc.desc PanDirection.Vertical + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_vertical')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0090_text')) + let pointer = await text.getBoundsCenter(); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 + * @tc.desc PanDirection.None + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_none')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0140_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 200, pointer.y); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 + * @tc.desc PanDirection.Right + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_right')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0110_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(rect.right - 1, pointer.y, rect.right + 50, pointer.y); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 + * @tc.desc PanDirection.Up + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_up')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0120_text')) + let pointer = await text.getBoundsCenter(); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y - 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 + * @tc.desc PanDirection.Down + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('TouchEventDockPointerEvent_down')) + await button.click(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TouchEventDockPointerEvent0130_text')) + let rect = await text.getBounds(); + let pointer = await text.getBoundsCenter(); + Logger.info('qjq', `left: ${rect.left}, top: ${rect.top}, right: ${rect.right}, bottom: ${rect.bottom},`); + await driver.drag(pointer.x, pointer.y, pointer.x, pointer.y + 50); + await Utils.sleep(2000) + await windowSnap.snapShot(); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0130 finish.`); + done(); + }) + + + /** + * @tc.number SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 + * @tc.name SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 + * @tc.desc list中加入拖动测试 + */ + it('SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 start.`); + Settings.createWindow("testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210"); + await Utils.sleep(1000); + let driver = Driver.create(); + let swiper = await driver.findComponent(ON.id('TouchEventDockPointerEvent0210_swiper')) + let list = await driver.findComponent(ON.id('TouchEventDockPointerEvent0210_list')) + let pointer = await list.getBoundsCenter(); + let swiperPointer = await swiper.getBoundsCenter(); + let rect = await swiper.getBounds(); + await list.scrollToBottom(1000); + await driver.fling({ + x: rect.right, y: swiperPointer.y + }, { + x: 0, y: swiperPointer.y + }, 5, 600); + await driver.swipe(pointer.x, pointer.y, pointer.x - 200, pointer.y); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_TOUCH_ SUB_ACE_TOUCH_EVENT_DOCK_POINTER_EVENT_ANDROID_0210 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets new file mode 100755 index 00000000..828261ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundInterfaceTest/UIAttributesBackgroundInterface.test.ets @@ -0,0 +1,2575 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON,Component,MouseButton } from '@ohos.UiTest' + +export default function UIAttributesBackgroundInterfce() { + + describe('UIAttributesBackgroundInterface', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0270 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0280 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0290 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0300 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0310 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0320 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0330 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0340 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0350 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0380 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0390 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0400 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0410 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0420 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0430 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0440 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0450 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0460 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0470 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0480 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0490 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0500 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0510 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0520 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0540 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0550 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0560 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0580 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0590 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0600 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0610 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0630 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0660 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0670 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0680 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0690 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 + * @tc.desc set backgroundImagePosition start + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0710 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 + * @tc.desc set backgroundImagePosition top + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0720 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 + * @tc.desc set backgroundImagePosition topEnd + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0730 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 + * @tc.desc set backgroundImagePosition topStart + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0740 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 + * @tc.desc set backgroundImagePosition {x:280px, y:280px} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0750 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 + * @tc.desc set backgroundImagePosition {x:280px, y:90%} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0760 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 + * @tc.desc set backgroundImagePosition {x:200, y:100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0770 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 + * @tc.desc set backgroundImagePosition {x:33fp} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0780 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 + * @tc.desc set backgroundImagePosition {x: $r("app.integer.integer_1"), y: 100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0790 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 + * @tc.desc set backgroundImagePosition {x:200, y:-100} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0800 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 + * @tc.desc set backgroundImagePosition {} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0810 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 + * @tc.desc set background image position exception parameter(11112) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0830 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 + * @tc.desc set backgroundImageSize exception parameter(11112) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0850 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 + * @tc.desc set backgroundImageSize { width: -434, height: "280px" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0870 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 + * @tc.desc set backgroundImageSize greater than the parent layout + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0880 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 + * @tc.desc set backgroundImageSize { width: "280px", height: "280px" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0890 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 + * @tc.desc set backgroundImageSize { width: "280px", height: "90%" } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0900 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 + * @tc.desc set backgroundImageSize { width: 200, height: 100 } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0910 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 + * @tc.desc set backgroundImageSize { width: 333 } + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0920 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 + * @tc.desc set backgroundImageSize {} + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0930 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 + * @tc.desc set backgroundImageSize ImageSize.Auto + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0940 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 + * @tc.desc set backgroundImageSize ImageSize.Contain + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0950 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 + * @tc.desc set backgroundImageSize ImageSize.Cover + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0960 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 + * @tc.desc set backgroundImageSize ImageSize.Cover + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0970 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 + * @tc.desc not set backgroundImagePosition + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0980 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 + * @tc.desc set not exit resource + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1000 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 + * @tc.desc default no repeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1030 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 + * @tc.desc set ImageRepeat.NoRepeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1040 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 + * @tc.desc set ImageRepeat.X + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1050 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 + * @tc.desc set ImageRepeat.XY + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1060 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 + * @tc.desc set ImageRepeat.Y + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1070 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 + * @tc.desc no repeat + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1080 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 + * @tc.desc set svg image + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1090 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 + * @tc.desc set backgroundColor Color.Black + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1100 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 + * @tc.desc set backgroundColor Color.Black + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1110 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 + * @tc.desc set backgroundColor Color.Brown + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1120 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 + * @tc.desc set backgroundColor Color.Gray + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1130 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 + * @tc.desc set backgroundColor Color.Green + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1140 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 + * @tc.desc set backgroundColor Color.Grey + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1150 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 + * @tc.desc set backgroundColor Color.Orange + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1160 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 + * @tc.desc set backgroundColor Color.Pink + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1170 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 + * @tc.desc set backgroundColor Color.Red + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1180 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 + * @tc.desc set backgroundColor Color.Transparent + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1190 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 + * @tc.desc set backgroundColor Color.White + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1200 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 + * @tc.desc set backgroundColor Color.Yellow + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1210 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 + * @tc.desc set backgroundColor 0x0000ff + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1220 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 + * @tc.desc set backgroundColor $r("app.color.blue“) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1230 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 + * @tc.desc set backgroundColor rgba(0,0,255,1.000) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1240 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 + * @tc.desc set backgroundColor rgb(0,0,255) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1250 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 + * @tc.desc set backgroundColor $r("app.string.module_desc") + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1270 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 + * @tc.desc set backgroundColor "dsfsdfsf" + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1280 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 + * @tc.desc set linearGradient + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1300 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 + * @tc.desc set linearGradient and repeating:true + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131"); + + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1310 finish.`); + done() + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0120 finish.`); + done(); + }) + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0140 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0150 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_BACKBLURR_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0130 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0120 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0150 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0110 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0140 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0180 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0170 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0200 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0160 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0190 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0230 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0220 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0250 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0210 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0240 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0260 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_VISUAL_0270 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0010 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0020 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0030 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0040 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0050 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0060 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0070 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0080 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0090 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0100 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0010', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010") + + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0020', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0030', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0040', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0050', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0060', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0070', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0080', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0090', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0100', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0110', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0120', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0130', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0140', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0150', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0160', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0180', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0240', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0250', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0260', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260") + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('CalendarPicker')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0270', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0280', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeButton')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0290', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeImagePath')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0300', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextGroundColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0310', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('overlayButton')); + let text: Component = await driver.findComponent(ON.id('ceshitext')); + await button.dragTo(text); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0320', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('nieheButton')); + await button.pinchOut(3.0); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0330', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('xuanzhuanButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0340', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('huadongButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0350', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('dianjiButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0360', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(200); + let button: Component = await driver.findComponent(ON.id('changanButton')); + await Utils.sleep(200); + await button.longClick() + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0370', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('shouzhiButton')); + button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0380', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + driver.mouseClick({x:249,y:300},MouseButton.MOUSE_BUTTON_LEFT) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0390', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + let fatherButton:Component = await driver.findComponent(ON.id('fatherButton')); + await Utils.sleep(500); + let moveText:Component=await driver.findComponent(ON.id('moveText')); + let moveText1:Component=await driver.findComponent(ON.id('moveText1')); + // await Utils.sleep(500); + // await sonButton.dragTo(moveText); + // await Utils.sleep(500); + // await fatherButton.dragTo(moveText) + await Utils.sleep(500); + await sonButton.dragTo(moveText1); + await Utils.sleep(500); + await fatherButton.dragTo(moveText1) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0400', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + await Utils.sleep(100); + let fatherButton:Component = await driver.findComponent(ON.id('fatherButton')); + await Utils.sleep(100); + await sonButton.pinchOut(1.5) + await fatherButton.pinchOut(2.0) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0410', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0420', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0430', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + sonButton.click() + await Utils.sleep(1000); + let fatherButton: Component = await driver.findComponent(ON.id('fatherButton')); + fatherButton.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0440', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440") + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let sonButton: Component = await driver.findComponent(ON.id('sonButton')); + let fatherButton: Component = await driver.findComponent(ON.id('fatherButton')); + sonButton.longClick() + await Utils.sleep(3000); + fatherButton.longClick() + await Utils.sleep(3000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0450', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0460', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor0460')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0470', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0480', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480") + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0490', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('changeTextColor')); + await button.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0500', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0510', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0520', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0530', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0550', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0530 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0570 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_0620 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0540', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + it('UB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_INTERFACE_0170', 0, async (done: Function) => { + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170") + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets new file mode 100755 index 00000000..6e3aad00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing.test.ets @@ -0,0 +1,313 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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, DisplayRotation, Driver ,ON } from '@ohos.UiTest' + +/* + * UIAttributesBackgroundSelfDrawing + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIAttributesBackgroundSelfDrawing() { + + describe('UIAttributesBackgroundSelfDrawing', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 + * @tc.desc 在background自绘制组件中不设置背景图在组件中显示位置,使用默认值 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 + * @tc.desc 在background自绘制组件中不设置背景图在组件中显示位置,使用默认值 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 + * @tc.desc 在background自绘制组件中宿主尺寸超出组件大小 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判断,根组件button作为背景色 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 + * @tc.desc 在background自绘制组件中自定义builder使用外部状态变量作为条件判断,根组件progress作为背景色 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 + * @tc.desc 在background自绘制组件中自定义背景设置响应事件 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080"); + await Utils.sleep(1000); + let driver = Driver.create(); + let button = await driver.findComponent(ON.id('UIAttributesBackgroundSelfDrawing0080')); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 + * @tc.desc 在background自绘制组件中设置背景图在根组件与子组件同时设置背景图 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 + * @tc.desc 在background自绘制组件中设置背景图片为本地图片,图片类型为jpg + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 + * @tc.desc 在background自绘制组件中设置背景图片为本地图片,图片类型为svg,加 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 + * @tc.desc 在background自绘制组件中设置背景图片为网络图片,图片类型为png + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 + * @tc.desc 在background自绘制组件中设置背景图,根组件设置对齐方式,子组件没有 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 + * @tc.desc 在background自绘制能力中CustomBuider填写,Alignment不填写 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 + * @tc.desc 在background自绘制能力中CustomBuider填写,Alignment填写 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 + * @tc.desc 在background自绘制能力中,背景颜色、背景图片、渐变背景同时进行设置 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 + * @tc.desc 在background自绘制组件中进行横竖屏切换 + */ + it('SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180"); + await Utils.sleep(1000); + let driver = Driver.create(); + await driver.setDisplayRotationEnabled(true); + await Utils.sleep(1000); + await driver.setDisplayRotation(DisplayRotation.ROTATION_90); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.setDisplayRotation(DisplayRotation.ROTATION_0); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BACKGROUND_SELFDRAWING_0180 finish.`); + done(); + }) + + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets new file mode 100755 index 00000000..fe91d44e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesBcakgroundInterface/UIAttributesBackgroundInterface.test.ets @@ -0,0 +1,345 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 } from '@ohos.UiTest' + +/* + * UIAttributesBackgroundInterface + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIAttributesBackgroundInterface1() { + + describe('UIAttributesBackgroundInterface1', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.3],[0xFCD1D1,0.6]],设置线性渐变颜色重复着色repeating(默认值false) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Pink,0.3],[$r("app.color.pink),0.4],["rgb(255,200,255)",0.6]],color设置string类型、枚举类型 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Pink,0.3],[0xD3EODC,0.4],[Color.Red,0.6]],color设置number类型、枚举 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变效果渐变起始角度angle + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向Left以及线性渐变角度90 + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Bottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型LeftBottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型LeftTop) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Left) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型None) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1460 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 + * @tc.desc 背景设置backgroumd,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型RightBottom) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1470 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型RightTop) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Right) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1490 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 + * @tc.name SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 + * @tc.desc 背景设置background,组件Text配置linearGradient,设置渐变的颜色为colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]],为组件设置线性渐变方向(枚举类型Top) + */ + it('SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 start.`); + Settings.createWindow("testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_BCAKGROUND_INTERFACE_1500 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets new file mode 100755 index 00000000..ebf70df2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay.test.ets @@ -0,0 +1,464 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 } from '@ohos.UiTest' + +/* + * UIAttributesFloatingLayerOverlay + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIAttributesFloatingLayerOverlay() { + + describe('UIAttributesFloatingLayerOverlay', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 + * @tc.desc 设置主控件的遮罩浮层overlay的align值为:上述值手机横屏效果一致 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 + * @tc.desc 设置主控件的遮罩浮层overlay的offset值为:[0,0} + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 + * @tc.desc 设置主控件的遮罩浮层overlay的offset值为:偏移至超出主控件的范围 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:10层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:2层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:4层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:nenu + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:popup + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:prompt + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0090_001')); + await button.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:promptAction + */ + it('SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0100_001')); + await button.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FL0ATINGLAYER_OVERLAY_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:一个白色背景色的文本悬浮在黑色背景色的文本上(子控件文本可以拖拽且小于主控件) + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0110_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:一个白色背景色的文本悬浮在黑色背景色的文本上(子控件文本可以拖拽且小于主控件) + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0120_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为text文本,子控件也为text文本、拖拽子控件 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0130_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为text文本,子控件也为text文本、拖拽子控件2 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0140_001')); + const point = await button.getBoundsCenter(); + await driver.drag(point.x,point.y,point.x+100,point.y+100); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:主控件为图片,子控件为2个button + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0150_001')); + await button.click(); + await Utils.sleep(1000); + let button2: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0150_002')); + await button2.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第一、二层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIAttributesFloatingLayerOverlay0160_001')); + await driver.mouseMoveTo(await button.getBoundsCenter()) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第一层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170"); + await Utils.sleep(1000); + ON.id('UIAttributesFloatingLayerOverlay0170_001').focused(true) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:关于Stack容器、overlay位于第二层 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180"); + await Utils.sleep(1000); + ON.id('UIAttributesFloatingLayerOverlay0180_001').focused(true) + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:列表选择弹窗 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:同一页面中,2个不同的主控件各有1层overlay + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:图片上悬浮一段文本 + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210"); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_0VERLAY_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:多层overlay-第一层为button(绑定弹窗popup),第二层为文本showinsobwindow-false + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220"); + await Utils.sleep(500); + let driver: Driver = Driver.create() + await Utils.sleep(500); + let button1: Component = await driver.findComponent(ON.id('overlay0220_button_01')); + let button2: Component = await driver.findComponent(ON.id('overlay0220_button_02')); + await Utils.sleep(1000); + await button2.click(); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 + * @tc.desc 设置主控件的遮罩浮层overlay的value值为:CustomBuilder:多层overlay-第一层为button(绑定弹窗popup),第二层为文本showinsobwindow-true + */ + it('SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 start.`); + Settings.createWindow("testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230"); + await Utils.sleep(500); + let driver: Driver = Driver.create() + await Utils.sleep(500); + let button1: Component = await driver.findComponent(ON.id('overlay0230_button_01')); + await Utils.sleep(1000); + await button1.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FLOATINGLAYER_OVERLAY_0230 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets new file mode 100755 index 00000000..a38ecd0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesSelectedStyleTest/UIAttributesSelectedStyle.test.ets @@ -0,0 +1,394 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +/* + * UIAttributesSelectedStyle + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIAttributesSelectedStyle() { + + describe('UIAttributesSelectedStyle', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 + * @tc.desc : checkbox设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 + * @tc.desc : checkbox设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030 + * @tc.desc : checkbox按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0030')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0030_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 + * @tc.desc : checkboxgroup设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 + * @tc.desc : checkboxgroup设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060 + * @tc.desc : checkboxgroup按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0060')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0060_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 + * @tc.desc : radio设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 + * @tc.desc : radio设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090 + * @tc.desc : radio按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0090')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0090_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 + * @tc.desc : toggle设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 + * @tc.desc : toggle设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120 + * @tc.desc : toggle按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0120')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0120_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 + * @tc.desc : menuitem设置select为true + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0130')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 + * @tc.desc : menuitem设置select为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0140')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0140 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150 + * @tc.desc : menuitem按钮动态将select的值设置为true后改为false + */ + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0150_1')); + await driver.delayMs(100); + await text.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_1 finish.`); + done(); + }) + + it('SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2 start.`); + Settings.createWindow("testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0150_2')); + await driver.delayMs(100); + await button.click(); + await driver.delayMs(600); + let text: Component = await driver.findComponent(ON.id('UIAttributesSelectedStyle0150_1')); + await driver.delayMs(100); + await text.click(); + await driver.delayMs(600); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_SELECTEDSTYLE_0150_2 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets new file mode 100755 index 00000000..f0b6ff8a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceTest/UIAttributesStateStylesInterface.test.ets @@ -0,0 +1,446 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +/* + * UIAttributesStateStylesInterface + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UIAttributesStateStylesInterface() { + + describe('UIAttributesStateStylesInterface', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 + * @tc.desc : button组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 + * @tc.desc : button组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 + * @tc.desc : button组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0030')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0030 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 + * @tc.desc : button组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0040')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 + * @tc.desc : button组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 + * @tc.desc : button组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060"); + await Utils.sleep(1000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 + * @tc.desc : button组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0070')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 + * @tc.desc : list组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 + * @tc.desc : list组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0090')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0090 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 + * @tc.desc : list组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0100')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 + * @tc.desc : list组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 + * @tc.desc : list组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120"); + await Utils.sleep(1000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0120 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 + * @tc.desc : list组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 + * @tc.desc : list组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0140')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0140 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 + * @tc.desc : text组件不设置StateStyles + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0150 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 + * @tc.desc : text组件先设置StateStyles为clicked,后设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0160')); + await driver.delayMs(100); + await button.click(); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0160 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 + * @tc.desc : text组件设置StateStyles为clicked + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0170')); + await driver.delayMs(100); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0170 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 + * @tc.desc : text组件设置StateStyles为disabled + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0180 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 + * @tc.desc : text组件设置StateStyles为focused + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190"); + await Utils.sleep(2000); + ON.focused(true); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0190 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 + * @tc.desc : text组件设置StateStyles为normal + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0200 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 + * @tc.desc : text组件设置StateStyles为pressed + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let button: Component = await driver.findComponent(ON.id('UIAttributesStateStylesInterface0210')); + await driver.delayMs(100); + await button.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_0210 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.ets new file mode 100755 index 00000000..e90cf4da --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAreachangeTest/UIComponentAreachangeTest001.test.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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +export default function UIComponentAreachangeTest001() { + + describe('UIComponentAreachangeTest001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets new file mode 100755 index 00000000..a4f7541d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentMediaImageMaskTest/UIComponentMediaImageMaskTest001.test.ets @@ -0,0 +1,188 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +export default function UIComponentMediaImageMaskTest001() { + + describe('UIComponentMediaImageMaskTest001', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0010_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0010 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0020_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0020 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0050_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(4000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0050 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + await driver.triggerKey(2049) + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0100 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0110_button_01')); + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0110 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0120_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0120 finish.`); + done(); + }) + /** + * @tc.number SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 + * @tc.name SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 + * @tc.desc ObscuredReasons.PLACEHOLDER + */ + it('SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 start.`); + Settings.createWindow("testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(500) + let button: Component = await driver.findComponent(ON.id('mask0260_button_01')); + await Utils.sleep(500) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(1000) + await button.click() + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_MEDIA_IMAGE_MASK_0260 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets new file mode 100755 index 00000000..2061ccb1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiAttributesAttributeUpdaterModifierTest/UiAttributesAttributeUpdaterModifier.test.ets @@ -0,0 +1,3278 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +/* + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UiAttributesAttributeUpdaterModifier() { + + describe('UiAttributesAttributeUpdaterModifier', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0010')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + await buttonModifier.longClick(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020_4 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonSetColor.click(); + await driver.delayMs(600); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0020')); + await Utils.sleep(1000); + await driver.delayMs(100); + await buttonModifier.longClick(); + await Utils.sleep(1000); + let buttonAgainColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(600); + await buttonAgainColor.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0030')); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0030')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0040')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0040')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050_3 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0050')); + await driver.delayMs(100); + await buttonModifier.doubleClick(); + await driver.delayMs(600); + await Utils.sleep(1000); + await buttonSetColor.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + setTimeout(() => { + windowSnap.snapShot(); + }, 1000) + await buttonModifier.longClick(); + await driver.delayMs(1000); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonSetColor: Component = await driver.findComponent(ON.id('set color direct to green')); + await driver.delayMs(100); + await buttonSetColor.click(); + await Utils.sleep(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0060')); + await driver.delayMs(100); + await buttonModifier.longClick(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await buttonSetColor.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUT_UPDATER_MODIFIER_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(1000); + let driver: Driver =Driver.create(); + await driver.triggerKey(2049); + await Utils.sleep(1000); + await driver.triggerKey(2054); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(1000); + await driver.triggerKey(2054); + await driver.delayMs(600); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(2049); + await driver.delayMs(1000); + await driver.triggerKey(2054); + await driver.delayMs(600); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120"); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0120')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(1000); + await driver.delayMs(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(2000); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(100); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(1000); + await driver.delayMs(2000); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(100); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(100); + await driver.delayMs(600); + let textInputButton: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0150')); + await driver.delayMs(100); + await textInputButton.click(); + await Utils.sleep(100); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(1000); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0180 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_4 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_5 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_6 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_7 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_8 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_9 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button10: Component = await driver.findComponent(ON.id('10')); + await driver.delayMs(100); + await button10.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190_10 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(100); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(600); + let button5: Component = await driver.findComponent(ON.id('5')); + await driver.delayMs(100); + await button5.click(); + await driver.delayMs(600); + let button6: Component = await driver.findComponent(ON.id('6')); + await driver.delayMs(100); + await button6.click(); + await driver.delayMs(600); + let button7: Component = await driver.findComponent(ON.id('7')); + await driver.delayMs(100); + await button7.click(); + await driver.delayMs(600); + let button8: Component = await driver.findComponent(ON.id('8')); + await driver.delayMs(100); + await button8.click(); + await driver.delayMs(600); + let button9: Component = await driver.findComponent(ON.id('9')); + await driver.delayMs(100); + await button9.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button10: Component = await driver.findComponent(ON.id('10')); + await driver.delayMs(100); + await button10.click(); + await driver.delayMs(600); + let button11: Component = await driver.findComponent(ON.id('11')); + await driver.delayMs(100); + await button11.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0190 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.delayMs(100); + await driver.triggerKey(2049) + await driver.delayMs(1000); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0210')); + await driver.delayMs(100); + await buttonModifier.click(); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0220')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.triggerKey(2049); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0230 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.mouseMoveTo({ + x: 30, y: 100 + }) + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.triggerKey(2049); + await driver.delayMs(600); + await driver.triggerKey(3101); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0250 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + await driver.mouseMoveTo({ + x: 30, y: 100 + }) + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0260 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0270')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0280')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(100); + await Utils.sleep(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0290 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0300_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await Utils.sleep(600); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 120 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 130 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 + * @tc.name SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 + */ + it('SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 100 + }) + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await driver.mouseMoveTo({ + x: 100, y: 120 + }) + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_U_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0320_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0330')); + await driver.delayMs(100); + let Column: Component = await driver.findComponent(ON.id('Column')); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0330')); + await driver.delayMs(100); + let Column: Component = await driver.findComponent(ON.id('Column')); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await buttonModifier.dragTo(Column); + await Utils.sleep(600); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0330_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(1000); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(100); + await button4.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(100); + await button3.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0340_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0350_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0370')); + await driver.delayMs(100); + await buttonModifier.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(100); + await button2.click(); + await driver.delayMs(600); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(500); + await buttonModifier.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0370')); + setTimeout(() => { + windowSnap.snapShot(); + }, 250) + await buttonModifier.click(); + await driver.delayMs(600); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0370_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049) + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(1000); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(1000); + await button2.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0380')); + await driver.delayMs(1000); + await buttonModifier.longClick(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380"); + await Utils.sleep(600); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + await driver.triggerKey(2049) + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(1000); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0380_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let buttonModifier: Component = await driver.findComponent(ON.id('UiAttributesAttributeUpdaterModifier0390')); + await driver.delayMs(600); + await buttonModifier.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0400_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0410_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0430_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + let button4: Component = await driver.findComponent(ON.id('4')); + await driver.delayMs(600); + await button4.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_2 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(600); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(600); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(600); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0440_3 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(1000); + let button3: Component = await driver.findComponent(ON.id('3')); + await driver.delayMs(600); + await button3.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_1 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 + * @tc.name SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 + */ + it('SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 start.`); + Settings.createWindow("testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(600); + let button1: Component = await driver.findComponent(ON.id('1')); + await driver.delayMs(100); + await button1.click(); + await driver.delayMs(1000); + let button2: Component = await driver.findComponent(ON.id('2')); + await driver.delayMs(600); + await button2.click(); + await driver.delayMs(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_ATTRIBUTE_UPDATER_MODIFIER_0450_2 finish.`); + done(); + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets new file mode 100755 index 00000000..a9628914 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentAreaChange/UiComponentAreaChange.test.ets @@ -0,0 +1,95 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { afterEach, describe, it } 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 } from '@ohos.UiTest' + +/* + * + * Settings.createWindow(config.url): + * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 + * + * windowSnap.snapShot(globalThis.context): + * 窗口截屏&图片文件保存,存储在设备端 + * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 + * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 + * + * Logger日志使用方法: + * import Logger form './model/Logger' + * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) + * */ + +export default function UiComponentAreaChange() { + + describe('UiComponentAreaChange', () => { + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_AREACHANGE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_AREACHANGE_0120 + */ + it('SUB_ACE_UI_COMPONENT_AREACHANGE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0120 start.`); + Settings.createWindow("testability/pages/UiComponentAreaChange/UiComponentAreaChange0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(1000); + let buttonUiAreaChange: Component = await driver.findComponent(ON.id('UiComponentAreaChange0120')); + await driver.delayMs(600); + await buttonUiAreaChange.click(); + await driver.delayMs(600); + await Utils.sleep(600); + let setOnVisibleAreaApproximateChange: Component = await driver.findComponent(ON.id('setOnVisibleAreaApproximateChange')); + await driver.delayMs(600); + await setOnVisibleAreaApproximateChange.click(); + await driver.delayMs(600); + await Utils.sleep(600); + let deleteButton: Component = await driver.findComponent(ON.id('delete')); + await driver.delayMs(600); + await deleteButton.click(); + await driver.delayMs(1000); + await Utils.sleep(600); + let addButton: Component = await driver.findComponent(ON.id('add')); + await driver.delayMs(600); + await addButton.click(); + await driver.delayMs(300); + await Utils.sleep(300); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_AREACHANGE_0120 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets index c74ae272..07d1bbd8 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Settings.ets @@ -36,14 +36,14 @@ async function sleep(time: number): Promise { } class Settings { - isPhone: boolean = true; + isPhone: boolean = false; windowClass: window.Window | undefined = undefined windowCreateType: string = "changeWindow"; private static DEFAULT_WIDTH: number = 720; - private static DEFAULT_HEIGHT: number = 1280; + private static DEFAULT_HEIGHT: number = 1412; private static DEFAULT_DPI: number = 240; - private static DEFAULT_OFFSET_X: number = 0; - private static DEFAULT_OFFSET_Y: number = 60; + private static DEFAULT_OFFSET_X: number = 100; + private static DEFAULT_OFFSET_Y: number = 132; private portrait: boolean = true changeWindowPosition(windowClass: window.Window, X: number | undefined, Y: number | undefined) { diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets index 7f06aa4d..a8d81700 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/Utils.ets @@ -13,7 +13,10 @@ * limitations under the License. */ -import {Driver , ON} from '@ohos.UiTest' +import { Driver, ON } from '@ohos.UiTest'; +import { BusinessError, screenLock } from '@kit.BasicServicesKit'; +import Settings from './Settings'; +import { KeyCode } from '@kit.InputKit'; export default class Utils { @@ -40,6 +43,44 @@ export default class Utils { } + /** + * The app breathes and then lights up the screen + * + * @param driver + */ + static async lockAndUnlock(driver: Driver) { + await screenLock.lock((err: BusinessError, data: Boolean) => { + if (err) { + console.error(`Failed to lock the screen, Code: ${err.code}, message: ${err.message}`); + return; + } + console.info(`Succeeded in locking the screen. result: ${data}`); + }); + await Utils.sleep(2000); + await screenLock.unlock((err: BusinessError) => { + if (err) { + console.error(`Failed to unlock the screen, Code: ${err.code}, message: ${err.message}`); + return; + } + console.info(`Succeeded unlocking the screen.`); + }); + await driver.drag(100, 900, 100, 1, 1000); + } + + /** + * The application switches to the desktop and back to the application + * + * @param driver + */ + static async homeAndBack(driver: Driver) { + let currentWindow = await Settings.windowClass; + if (currentWindow) { + await currentWindow.hide(); + await driver.triggerKey(KeyCode.KEYCODE_HOME); + await Utils.sleep(2000); + await currentWindow.showWindow(); + } + } } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets new file mode 100755 index 00000000..0b0359cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030.ets @@ -0,0 +1,119 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { unifiedDataChannel, uniformTypeDescriptor } from '@kit.ArkData'; + +@Entry +@Component +struct ActionEventCommonEventDragRecipientCopyMoveReplacement0030 { + @State uri: string = "" + @State blockArr: string[] = [] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('cat.jpg') + .id('CommonEventDragRecipientCopyMove0030_image') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string) => { + console.info(`onDragStart enter`) + let image1: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + image1.imageUri = '/resources/base/media/icon.png'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(image1); + let image2: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + image2.imageUri = '/resources/base/media/cat.jpg'; + let data2: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(image2); + event.setData(data) + event.setData(data2) + console.info(`onDragStart enter`) + }) + .onDragEnd((event: DragEvent) => { + console.info(`onDragEnd enter`) + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 }) + + Column() { + Text('释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.blockArr, (item: string, index) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 }) + }, (item: string) => item) + } + .id('CommonEventDragRecipientCopyMove0030_list') + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragEnter((event: DragEvent, extraParams?: string) => { + console.info(`onDragEnter enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.info(`onDragMove enter`) + event.dragBehavior = DragBehavior.MOVE; + }) + .onDrop((event: DragEvent, extraParams?: string) => { + console.log("onDrop enter") + event.dragBehavior = DragBehavior.COPY; + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.blockArr.splice(JSON.parse(extraParams as string).insertIndex, 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("100%") + .border({ width: 1 }) + .margin({ left: 12 }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets new file mode 100755 index 00000000..07695589 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050.ets @@ -0,0 +1,110 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { unifiedDataChannel, uniformTypeDescriptor } from '@kit.ArkData'; + +@Entry +@Component +struct ActionEventCommonEventDragRecipientCopyMoveReplacement0050 { + @State uri: string = "" + @State blockArr: string[] = [] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('cat.jpg') + .id('CommonEventDragRecipientCopyMove_image') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string) => { + console.info(`onDragStart enter`) + }) + .onDragEnd((event: DragEvent) => { + console.info(`onDragEnd enter`) + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 }) + + Column() { + Text('释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.blockArr, (item: string, index) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 }) + }, (item: string) => item) + } + .id('CommonEventDragRecipientCopyMove_list') + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDragEnter((event: DragEvent, extraParams?: string) => { + console.info(`onDragEnter enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.info(`onDragMove enter`) + event.dragBehavior = DragBehavior.COPY; + }) + .onDrop((event: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + event.dragBehavior = DragBehavior.COPY; + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.blockArr.splice(JSON.parse(extraParams as string).insertIndex, 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("100%") + .border({ width: 1 }) + .margin({ left: 12 }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets new file mode 100755 index 00000000..f92394c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.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 ActionEventCommonEventTouchAttribute0020 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0020_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0020_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets new file mode 100755 index 00000000..41df47af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.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 ActionEventCommonEventTouchAttribute0030 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0030_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0030_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets new file mode 100755 index 00000000..5b57332a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.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 ActionEventCommonEventTouchAttribute0040 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0040_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0040_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets new file mode 100755 index 00000000..2f7cb8e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.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 ActionEventCommonEventTouchAttribute0050 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0050_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0050_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets new file mode 100755 index 00000000..86548f61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.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 ActionEventCommonEventTouchAttribute0060 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0060_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0060_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets new file mode 100755 index 00000000..0df7076e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.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 ActionEventCommonEventTouchAttribute0070 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0070_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0070_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets new file mode 100755 index 00000000..1ea88632 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.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 ActionEventCommonEventTouchAttribute0160 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0160_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0160_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets new file mode 100755 index 00000000..942ebabf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.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 ActionEventCommonEventTouchAttribute0170 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0170_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0170_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets new file mode 100755 index 00000000..045d5310 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.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 ActionEventCommonEventTouchAttribute0180 { + @State x: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0180_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0180_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets new file mode 100755 index 00000000..5d187cad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.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 ActionEventCommonEventTouchAttribute0190 { + @State y: Length | undefined = ''; + + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0190_txt') + .fontSize(50) + + Button('onTouch') + .id('touchEventAttribute0190_onTouch') + .margin({ top: 20 }) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.position.x; + this.y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${x}, positionY: ${this.y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets new file mode 100755 index 00000000..970bc9ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.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 textAreaActionEventCommon { + @State screenPostion :string= '' + build() { + Column() { + TextArea({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .key('key_textArea_action_event_common_001') + .onTouch((event: TouchEvent) => { + let touchIndex = event.touches[0]; + this.screenPostion = 'screenX:' + touchIndex.screenX + ';screenY:' + touchIndex.screenY + }) + Text(this.screenPostion ) + .width('100%') + }.height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets new file mode 100755 index 00000000..ad629ee4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets @@ -0,0 +1,28 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct textInputActionEventCommon { + + build() { + Column() { + TextInput({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .defaultFocus(true) + .key('key_textInput_action_event_common_001') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets new file mode 100755 index 00000000..66183752 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.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 touchObjectActionEventCommon { + @State positionStr: string = 'x:0,y:0' + + build() { + Column() { + Text(this.positionStr) + Button('touchObject') + .id('touch_object_button') + .onTouch((event: TouchEvent) => { + this.positionStr = 'x:' + event.touches[0].displayX + ',y:' + event.touches[0].displayY; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.ets new file mode 100755 index 00000000..7f255442 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170.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 SUBEventShortcutInterAction0170 { + @State message: string = 'Hello World' + + build() { + Row() { + Column({ space: 5 }) { + Text(this.message) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 1"; + console.log("I clicked 2"); + }).keyboardShortcut('1', [ModifierKey.CTRL]) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 2"; + console.log("I clicked 2"); + }).keyboardShortcut('1', [ModifierKey.CTRL]) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.ets new file mode 100755 index 00000000..58c79a30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180.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 SUBEventShortcutInterAction0180 { + @State message: string = 'Hello World'; + @State keyValue: string = '1'; + @State keyValue1: string = '2'; + + build() { + Row() { + Column({ space: 5 }) { + Text(this.message) + Button("Test short cut 1 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 1"; + console.log("I clicked 2"); + }).keyboardShortcut(this.keyValue, [ModifierKey.CTRL]) + Button("Test short cut 2 + ctrl").onClick((event: ClickEvent) => { + this.message = "I clicked Button 2"; + console.log("I clicked 2"); + }).keyboardShortcut(this.keyValue1, [ModifierKey.CTRL]) + + Button('cancel shortcut').onClick(()=>{ + this.keyValue = ''; + this.keyValue1 = ''; + }).id('SUBEventShortcutInterAction0180_button_01') + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets new file mode 100755 index 00000000..54e8fd40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140.ets @@ -0,0 +1,153 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { BuilderNode, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0140 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0140) { + Stack() { + Text('上层').backgroundColor(Color.Blue).fontSize(24).width(150).height(150) + .id('SetOnVisibleAreaApproximateChange0140_text1') + Text('下层').backgroundColor(Color.Pink).fontSize(24).width(80).height(80) + .id('SetOnVisibleAreaApproximateChange0140_text2') + .zIndex(params.zIndexVal) + } + .id('SetOnVisibleAreaApproximateChange0140_stack') + .alignContent(Alignment.BottomEnd) +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0140]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0140]>(stackBuilder), + new ParamsAreaApproximateChange0140(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(1)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0140(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0140 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'button3'; + @State text1: string = 'test'; + @State text2: string = 'test'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('60%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Text(this.text2).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Button(this.button1) + .id('SetOnVisibleAreaApproximateChange0140_button1') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.zIndexVal = 1; + this.myNodeController.update(this.zIndexVal); + }) + Button(this.button2) + .id('SetOnVisibleAreaApproximateChange0140_button2') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.zIndexVal = -1; + this.myNodeController.update(this.zIndexVal); + }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0140_button3') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0140_text1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('上层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '上层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + + this.text2Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0140_text2'); + this.text2Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('下层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text2 = '下层Text setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets new file mode 100755 index 00000000..04238657 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190.ets @@ -0,0 +1,122 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { BuilderNode, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0190 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0190) { + Swiper() { + Image('blue_icon.png').height(200).width('100%').id('SetOnVisibleAreaApproximateChange0190_image1') + Image('red_icon.png').height(200).width('100%') + Image('gary_icon.png').height(200).width('100%') + } +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0190]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0190]>(stackBuilder), + new ParamsAreaApproximateChange0190(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(1)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0190(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0190 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'button3'; + @State text1: string = 'test'; + @State text2: string = 'test'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0190_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0190_image1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 image setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '第一个 image setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets new file mode 100755 index 00000000..91172e70 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200.ets @@ -0,0 +1,131 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { BuilderNode, FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class ParamsAreaApproximateChange0200 { + public zIndexVal: number = -1; + + constructor(zIndexVal: number) { + this.zIndexVal = zIndexVal; + } +} + +@Builder +function stackBuilder(params: ParamsAreaApproximateChange0200) { + Tabs({ barPosition: BarPosition.End }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab1")).id('SetOnVisibleAreaApproximateChange0200_tab1') + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Green) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab2")) + + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Blue) + }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "tab3")) + } + .width('350vp') + .animationDuration(300) + .height('60%') +} + +class MyNodeController extends NodeController { + private rootNode: FrameNode | null = null; + private builderNode: BuilderNode<[ParamsAreaApproximateChange0200]> | null = null; + private zIndexVal: number = -1; + public text: string = ''; + + constructor(zIndexVal: number) { + super(); + this.zIndexVal = zIndexVal; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.builderNode = new BuilderNode(uiContext, { selfIdealSize: { width: 300, height: 300 } }); + this.builderNode.build(wrapBuilder<[ParamsAreaApproximateChange0200]>(stackBuilder), + new ParamsAreaApproximateChange0200(this.zIndexVal)); + this.addCommonEvent(this.builderNode!.getFrameNode()!.getChild(0)?.getChild(0)!); + return this.builderNode.getFrameNode(); + } + + addCommonEvent(frameNode: FrameNode) { + if (frameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + } + + update(zIndexVal: number) { + if (this.builderNode !== null) { + this.builderNode.update(new ParamsAreaApproximateChange0200(zIndexVal)); + } + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0200 { + @State index: number = 0; + @State button1: string = '使下层按钮上浮'; + @State button2: string = '恢复'; + @State button3: string = 'get log'; + @State text1: string = 'log'; + @State zIndexVal: number = -1; + @State uiContext: UIContext = this.getUIContext(); + @State text1Node: FrameNode | null = null; + @State text2Node: FrameNode | null = null; + private myNodeController: MyNodeController = new MyNodeController(this.zIndexVal); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text1).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0200_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0200_tab1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 tab setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text1 = '第一个 tab setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets new file mode 100755 index 00000000..11f58172 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210.ets @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + + let scroll = typeNode.createNode(uiContext, 'Scroll'); + scroll.initialize(this.scroller) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onScroll((xOffset: number, yOffset: number) => { + console.info('Test Row ' + xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge) => { + console.info('Test Row To the edge') + }) + .onScrollStop(() => { + console.info('Test Row Scroll Stop') + }) + .id('SetOnVisibleAreaApproximateChange0210_scroll1') + this.rootNode.appendChild(scroll); + + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('200%') + scroll.appendChild(col); + + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize('Hello') + .fontColor(Color.Blue) + .fontSize(14) + .width(100) + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0210_text1') + col.appendChild(text); + + // 设置限制回调间隔的onVisibleAreaChange事件的回调 + this.addCommonEvent(text); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0210 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('60%') + + Column() { + Text(this.text).fontColor(Color.Red).fontSize(24).margin({ bottom: 10 }) + Button(this.button1) + .id('SetOnVisibleAreaApproximateChange0210_button1') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后下滑指定距离150.0vp + this.scroller.scrollBy(0, 150); + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 150) { + this.button1 = 'text组件完全滚动出屏幕'; + this.text = this.myNodeController.getText(); + } + }) + Button(this.button2) + .id('SetOnVisibleAreaApproximateChange0210_button2') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, -75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 75) { + this.button2 = 'text组件滑动回屏幕一半'; + this.text = this.myNodeController.getText(); + } + }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0210_button3') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, -75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 0) { + this.button3 = 'text组件完全滑动回屏幕'; + this.text = this.myNodeController.getText(); + } + }) + } + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets new file mode 100755 index 00000000..0cb75acf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230.ets @@ -0,0 +1,142 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + + let scroll = typeNode.createNode(uiContext, 'Scroll'); + scroll.initialize(this.scroller) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + .scrollBarColor(Color.Transparent) + .id('SetOnVisibleAreaApproximateChange0230_scroll1') + this.rootNode.appendChild(scroll); + + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('200%') + scroll.appendChild(col); + + let text = typeNode.createNode(uiContext, 'TextInput'); + text.initialize({ placeholder: '请输入 textInput111' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text1') + col.appendChild(text); + let text2 = typeNode.createNode(uiContext, 'TextInput'); + text2.initialize({ placeholder: '请输入 textInput222' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text2') + col.appendChild(text2); + let text3 = typeNode.createNode(uiContext, 'TextInput'); + text3.initialize({ placeholder: '请输入 textInput333' }) + .fontColor(Color.Blue) + .fontSize(14) + .width('100%') + .height(100) + .backgroundColor(Color.Pink) + .id('SetOnVisibleAreaApproximateChange0230_text3') + col.appendChild(text3); + + // 设置限制回调间隔的onVisibleAreaChange事件的回调 + this.addCommonEvent(text); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0230 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + + Column() { + Text(this.text).fontColor(Color.Red).fontSize(15).margin({ bottom: 10 }) + Button(this.button3) + .id('SetOnVisibleAreaApproximateChange0230_button') + .height(30) + .margin({ bottom: 10 }) + .onClick(() => { // 点击后上滑指定距离75.0vp + this.scroller.scrollBy(0, 75) + console.log('Test Row currentOffset x : ' + this.scroller.currentOffset().xOffset) + console.log('Test Row currentOffset y : ' + this.scroller.currentOffset().yOffset) + if (this.scroller.currentOffset().yOffset == 0) { + this.button3 = 'text组件完全滑动回屏幕'; + } + this.text1Node = this.uiContext.getFrameNodeById('SetOnVisibleAreaApproximateChange0230_text1'); + this.text1Node?.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('第一个 textInput setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio); + this.text = '第一个 textInput setOnVisibleAreaApproximateChange isVisible:' + isVisible + ', currentRatio:' + + currentRatio; + }); + }) + } + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets new file mode 100755 index 00000000..bd0f7e59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250.ets @@ -0,0 +1,97 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.text = `Node ${col?.getUniqueId()}:${col?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.text).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: '100%', height: '100%' }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0250') + col.appendChild(textInput) + this.rootNode.appendChild(rootCol); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0250 { + @State index: number = 0; + @State button1: string = 'button1'; + @State button2: string = 'button2'; + @State button3: string = 'button3'; + @State text: string = 'test'; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('70%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets new file mode 100755 index 00000000..612e34dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260.ets @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + public scroller: Scroller | null = null; + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: '100%', height: '100%' }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0260') + col.appendChild(textInput) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.text = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.text).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.rootNode.appendChild(rootCol); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0260 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('70%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets new file mode 100755 index 00000000..6fd19b36 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300.ets @@ -0,0 +1,120 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + text?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.rootNode.appendChild(col); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0300 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets new file mode 100755 index 00000000..d59a1ea1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320.ets @@ -0,0 +1,135 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { FrameNode, NodeController, typeNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public rootNode: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + public text: string = ''; + + constructor(scroller: Scroller) { + super(); + this.scroller = scroller; + } + + makeNode(uiContext: UIContext): FrameNode | null { + this.rootNode = new FrameNode(uiContext); + this.rootNode.commonAttribute + .width('100%') + .height('100%') + .backgroundColor(Color.White) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + // this.node.appendChild(col); + + let stack = typeNode.createNode(uiContext, 'Stack'); + stack.initialize({ alignContent: Alignment.TopStart }) + .width('100%') + .height('100%') + col.appendChild(stack) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + stack.appendChild(scrollNode) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + row?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + stack?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${stack?.getUniqueId()}:${stack?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + this.rootNode.appendChild(col); + + return this.rootNode; + } + + addCommonEvent(frameNode: FrameNode) { + frameNode.commonEvent.setOnVisibleAreaApproximateChange({ + ratios: [0.0, 0.5, 1.0] + }, (isVisible: boolean, currentRatio: number) => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio); + this.text = 'Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio; + }) + } + + getText() { + return this.text; + } +} + +@Entry +@Component +struct SetOnVisibleAreaApproximateChange0320 { + @State index: number = 0; + @State uiContext: UIContext = this.getUIContext(); + public scroller: Scroller = new Scroller(); + private myNodeController: MyNodeController = new MyNodeController(this.scroller); + @State text1Node: FrameNode | null = null; + + build() { + Column() { + NodeContainer(this.myNodeController) + .width('100%') + .height('40%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets new file mode 100755 index 00000000..c37aad79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh01.ets @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct StatusManagerRefresh01 { + @State isRefreshing: boolean = false + + build() { + Column() { + Refresh({ refreshing: this.isRefreshing, offset: 120, friction: 100 }) { + Button('Refresh1').onClick(() => { + }).width(260) + .height(70) + .fontColor(Color.Black) + .keyboardShortcut(FunctionKey.F5, []) + .onKeyEvent((event: KeyEvent) => { + console.log("Refresh1 event.keyCode: " + JSON.stringify(event)); + }) + } + .id('Refresh1') + .onStateChange((refreshStatus: RefreshStatus) => { + console.info('Refresh onStateChange state is ' + refreshStatus); + }) + .onRefreshing(() => { + console.log('onRefreshing test') + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets new file mode 100755 index 00000000..d6970867 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerRefresh/StatusManagerRefresh02.ets @@ -0,0 +1,40 @@ +/** + * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct StatusManagerRefresh02 { + @State isRefreshing: boolean = false + + build() { + Column() { + Refresh({ refreshing: this.isRefreshing, offset: 120, friction: 100 }) { + Button('Refresh2').onClick(() => { + }).width(260) + .height(70) + .fontColor(Color.Black) + .onKeyEvent((event: KeyEvent) => { + console.log("Refresh2 event.keyCode: " + JSON.stringify(event)); + }) + } + .id('Refresh2') + .onStateChange((refreshStatus: RefreshStatus) => { + console.info('Refresh2 onStateChange state is ' + refreshStatus); + }) + .onRefreshing(() => { + console.log('Refresh2 test') + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.ets new file mode 100755 index 00000000..963f13a8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010.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. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0010 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + // .onTouchIntercept((event: TouchEvent) => { + // console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + // return HitTestMode.None + // }) + + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + // .onTouchIntercept((event: TouchEvent) => { + // console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + // return HitTestMode.None + // }) + } + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack1 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.ets new file mode 100755 index 00000000..0628a387 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050.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 SubAceActionEventCommonEventInterface0050 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .onClick(() => { + console.log("event--> stack2 click "); + this.log += 'stack2 click\r\n' + }) + .backgroundColor(Color.Green) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onClick(() => { + console.log("event--> stack3 click "); + this.log += 'stack3 click\r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack1 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets new file mode 100755 index 00000000..5c587fcd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090.ets @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0090 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + return HitTestMode.Transparent + }) + + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + return HitTestMode.Transparent + }) + } + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.ets new file mode 100755 index 00000000..55e6474c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140.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 SubAceActionEventCommonEventInterface0140 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + return HitTestMode.Transparent + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Block + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + return HitTestMode.Transparent + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + return HitTestMode.Transparent + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.ets new file mode 100755 index 00000000..8763b700 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160.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 SubAceActionEventCommonEventInterface0160 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Default + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets new file mode 100755 index 00000000..21d483d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190.ets @@ -0,0 +1,80 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionEventCommonEventInterface0190 { + @State x: Length | undefined = ''; + @State log: string = '' + + build() { + Column() { + Stack() { + Stack() + .id('stack2') + .width(230) + .height(100) + .backgroundColor(Color.Green) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack2 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.None + }) + .onClick(() => { + console.log("event--> stack2 click"); + this.log += 'stack2 click \r\n' + }) + Stack() { + Button("button") + .width(100) + .height(80) + .id('button').onClick(() => { + console.log("event--> button click "); + this.log += 'button click\r\n' + }) + } + .id('stack3') + .width(150) + .height(150) + .backgroundColor(Color.Yellow) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Transparent + }) + .onClick(() => { + console.log("event--> stack3 click"); + this.log += 'stack3 click \r\n' + }) + } + .onClick(() => { + console.log("event--> stack1 click"); + this.log += 'stack1 click \r\n' + }) + .onTouchIntercept((event: TouchEvent) => { + console.log("event--> stack3 OnTouchIntercept + " + JSON.stringify(event)); + return HitTestMode.Block + }) + .width(300) + .height(300) + .backgroundColor(Color.Blue) + .id('stack1') + .margin({ top: 100 }) + + Text(this.log) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.ets new file mode 100755 index 00000000..fbc87f11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100.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 SubAceActionGestureJudge0100 { + @State text: string = '' + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('Click').width(100).height(40) + .onClick((event?: ClickEvent) => { + if(event){ + this.text = 'Click Point:' + '\n windowX:' + event.windowX + '\n windowY:' + event.windowY + + '\n x:' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\n width:' + + event.target.area.width + '\n height:' + event.target.area.height + '\ntimestamp' + event.timestamp; + } + }) + .id('button') + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + if (gestureInfo.type == GestureControl.GestureType.CLICK) { + this.DragText = 'GestureControl.GestureType.CLICK is true' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.CLICK is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + // Text(this.text).margin(15) + // Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.ets new file mode 100755 index 00000000..daa2aaee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110.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. + */ + +import UDC from '@ohos.data.unifiedDataChannel'; +import json from '@ohos.util.json'; + +@Entry +@Component +struct SubAceActionGestureJudge0110 { + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('DragStart').margin({left: 40, top: 20}) + .width('100%') + .height(100) + .id('dragStart') + .onDragStart((event)=>{ + let data: UDC.PlainText = new UDC.PlainText(); + data.abstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + + }) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + console.log(json.stringify(gestureInfo)) + console.log(json.stringify(event)) + if (gestureInfo.type == GestureControl.GestureType.DRAG) { + this.DragText = 'GestureControl.GestureType.DRAG is true ' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.DRAG is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + // Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets new file mode 100755 index 00000000..ea6e7471 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240.ets @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct SubAceActionGestureJudge0240 { + @State count: number = 0 + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + @State borderStyles: BorderStyle = BorderStyle.Solid + @State text: string = '' + + build() { + Column() { + Column() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + } + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .id('column') + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .gesture( + // 以下组合手势为顺序识别,当长按手势事件未正常触发时则不会触发拖动手势事件 + GestureGroup(GestureMode.Parallel, + LongPressGesture({ repeat: true }) + .tag("longPress1") + .onAction((event?: GestureEvent) => { + console.info('LongPress onAction') + this.text += 'LongPress onAction\r\n' + }) + .onActionEnd((event?: GestureEvent) => { + console.info('LongPress onActionEnd') + this.text += 'LongPress onActionEnd\r\n' + }), + TapGesture({ count: 2 }) + .tag("tag1") + .onAction((event?: GestureEvent) => { + if (event) { + console.log('TapGesture onAction') + this.text += 'TapGesture onAction\r\n' + } + }) + ) + + ) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 若该手势类型为长按手势,转换为长按手势事件 + if (gestureInfo.type == GestureControl.GestureType.LONG_PRESS_GESTURE) { + let longPressEvent = event as LongPressGestureEvent; + console.log("repeat " + longPressEvent.repeat) + } + // 若该手势类型为拖动手势,转换为拖动手势事件 + if (gestureInfo.type == GestureControl.GestureType.TAP_GESTURE) { + } + // 自定义判定标准 + if (gestureInfo.tag == 'tag1') { + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else if (gestureInfo.tag == 'longPress1') { + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.CONTINUE; + } + return GestureJudgeResult.REJECT; + }) + + Text(this.text) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets new file mode 100755 index 00000000..df8bd59b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250.ets @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct SubAceActionGestureJudge0250 { + @State count: number = 0 + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + @State borderStyles: BorderStyle = BorderStyle.Solid + @State text: string = '' + + build() { + Column() { + Column() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nTapGesture offset:\nX: ' + this.offsetX + + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + } + .id('column') + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .gesture( + // 以下组合手势为顺序识别,当长按手势事件未正常触发时则不会触发拖动手势事件 + GestureGroup(GestureMode.Exclusive, + LongPressGesture({ repeat: true }) + .tag("longPress1") + .onAction((event?: GestureEvent) => { + console.info('LongPress onAction') + this.text += 'LongPress onAction\r\n' + }) + .onActionEnd((event?: GestureEvent) => { + console.info('LongPress onActionEnd') + this.text += 'LongPress onActionEnd\r\n' + }), + TapGesture({ count: 1 }) + .tag("tap1") + .onAction((event?: GestureEvent) => { + if (event) { + console.log('TapGesture onAction') + this.text += 'TapGesture onAction\r\n' + } + }) + ) + ) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 若该手势类型为长按手势,转换为长按手势事件 + if (gestureInfo.type == GestureControl.GestureType.LONG_PRESS_GESTURE) { + let longPressEvent = event as LongPressGestureEvent; + console.log("repeat " + longPressEvent.repeat) + } + // 若该手势类型为拖动手势,转换为拖动手势事件 + if (gestureInfo.type == GestureControl.GestureType.TAP_GESTURE) { + let TapEvent = event as TapGestureEvent; + console.log("velocity " + TapEvent.target) + } + // 自定义判定标准 + if (gestureInfo.tag == 'tap1') { + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else if (gestureInfo.tag == 'longPress1') { + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.CONTINUE; + } + return GestureJudgeResult.REJECT; + }) + + Text(this.text) + .width('100%') + .margin({ top: 50 }) + .fontSize(18) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.ets new file mode 100755 index 00000000..31a387c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260.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 SubAceActionGestureJudge0260 { + @State text: string = '' + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('Click').width(100).height(40) + .onClick((event?: ClickEvent) => { + if(event){ + this.text = 'Click Point:' + '\n windowX:' + event.windowX + '\n windowY:' + event.windowY + + '\n x:' + event.x + '\n y:' + event.y + '\ntarget:' + '\n component globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\n width:' + + event.target.area.width + '\n height:' + event.target.area.height + '\ntimestamp' + event.timestamp; + } + }) + .id('button') + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + if (gestureInfo.type == GestureControl.GestureType.CLICK) { + this.DragText = 'GestureControl.GestureType.CLICK is true' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.CLICK is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + Text(this.text).margin(15) + Text(this.DragText) + Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.ets new file mode 100755 index 00000000..a8f136d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280.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. + */ + +import UDC from '@ohos.data.unifiedDataChannel'; +import json from '@ohos.util.json'; + +@Entry +@Component +struct SubAceActionGestureJudge0280 { + @State DragText: string = '' + @State ISsYSTEM: string = '' + @State changeValue: string = '' + @State submitValue: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } + controller: SearchController = new SearchController() + + + build() { + Column() { + Button('DragStart').margin({left: 40, top: 20}) + .width('100%') + .height(100) + .id('dragStart') + .onDragStart((event)=>{ + let data: UDC.PlainText = new UDC.PlainText(); + data.abstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + + }) + .onGestureJudgeBegin((gestureInfo: GestureInfo, event: BaseGestureEvent) => { + // 自定义判定标准 + console.log(json.stringify(gestureInfo)) + console.log(json.stringify(event)) + if (gestureInfo.type == GestureControl.GestureType.DRAG) { + this.DragText = 'GestureControl.GestureType.DRAG is true ' + this.ISsYSTEM = 'isystem is true' + // 返回 REJECT 会使拖动手势失败 + return GestureJudgeResult.CONTINUE; + } else { + this.DragText = 'GestureControl.GestureType.DRAG is false' + // 返回 CONTINUE 将保持系统判定。 + return GestureJudgeResult.REJECT; + } + }) + Text(this.DragText) + // Text(this.ISsYSTEM) + }.width('100%').height('100%').backgroundColor('#F1F3F5') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.ets new file mode 100755 index 00000000..0166e371 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct SubAceActionGestureOnChildTouch0030 { + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] + @State text: string = 'hello word' + + build() { + Column() { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('Item ' + item) + .width('100%') + .height(56) + .fontSize(16) + .textAlign(TextAlign.Start) + }.borderRadius(24) + .backgroundColor(Color.White) + .padding({ left: 12, right: 12 }) + }, (item: string) => item) + } + .listDirection(Axis.Vertical) + .scrollBar(BarState.Off) + .backgroundColor(Color.Blue) + .edgeEffect(EdgeEffect.Spring) + .onScrollIndex((start: number, end: number) => { + console.info('first' + start) + console.info('last' + end) + }) + .onScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(`onScroll scrollState = ScrollState` + scrollState + `, scrollOffset = ` + scrollOffset) + }) + .width('80%') + .height('60%') + .id('MyList') + + Text(this.text ) + .width(312) + .height(80) + .id('text') + .backgroundColor(Color.Yellow) + .fontSize(18) + .fontWeight(FontWeight.Medium) + .margin({ top: 20 }) + .onClick(() => { + this.text = 'click the Text' + promptAction.showToast({ message: 'you click the Text.', duration: 3000 }) + }) + } + .width('100%') + .height('100%') + .id('root') + .backgroundColor(Color.Orange) + .justifyContent(FlexAlign.End) + .padding({ left: 12, right: 12, bottom: 24 }) + .onChildTouchTest((touchinfo) => { + for (let info of touchinfo) { + if (info.id == 'MyList') { + return { id: info.id, strategy: TouchTestStrategy.FORWARD_COMPETITION } + } + } + return { strategy: TouchTestStrategy.DEFAULT } + }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets new file mode 100755 index 00000000..5e707f25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070.ets @@ -0,0 +1,140 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0070 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + promptAction.showToast({ + message: '拖动方向:All', + duration: 3000, + }); + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0, 2) + '\n' + 'Y: ' + + this.offsetY.toString().substring(0, 2)) + .id('TouchEventDockPointerEvent0070_text') + .margin({ top: 5 }) + .fontSize(12) + .padding(6) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = this.positionX + event.offsetX; + // this.offsetY = this.positionY + event.offsetY; + this.offsetX = 30; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + (this.positionX + event.offsetX) + '\n' + 'Y: ' + + (this.positionY + event.offsetY)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets new file mode 100755 index 00000000..39970d19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080.ets @@ -0,0 +1,140 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0080 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + promptAction.showToast({ + message: '拖动方向:Horizontal', + duration: 3000, + }); + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0, 2) + '\n' + 'Y: ' + + this.offsetY.toString().substring(0, 2)) + .id('TouchEventDockPointerEvent0080_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX + this.positionX; + this.offsetX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX + this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets new file mode 100755 index 00000000..5002ee71 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090.ets @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0090 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Vertical }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + promptAction.showToast({ + message: '拖动方向:Vertical', + duration: 3000, + }); + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0090_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetY = this.positionY + event.offsetY; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (this.positionY + event.offsetY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets new file mode 100755 index 00000000..712df8c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0100 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Left }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + promptAction.showToast({ + message: '拖动方向:Left', + duration: 3000, + }); + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0100_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX - this.positionX; + this.offsetX = -30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX - this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.End) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets new file mode 100755 index 00000000..dc75fa80 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0110 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Right }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + promptAction.showToast({ + message: '拖动方向:Right', + duration: 3000, + }); + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0110_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: 0, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetX = event.offsetX + this.positionX; + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetX + this.positionX)) + } + }) + .onActionEnd(() => { + this.positionX = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets new file mode 100755 index 00000000..7f2bc2cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0120 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + promptAction.showToast({ + message: '拖动方向:Up', + duration: 3000, + }); + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0120_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + // this.offsetY = event.offsetY - this.positionY; + this.offsetY = -30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetY - this.positionY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets new file mode 100755 index 00000000..881c2337 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130.ets @@ -0,0 +1,138 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0130 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + promptAction.showToast({ + message: '拖动方向:Down', + duration: 3000, + }); + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX.toString().substring(0,2) + '\n' + 'Y: ' + this.offsetY.toString().substring(0,2)) + .id('TouchEventDockPointerEvent0130_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .translate({ x: 0, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + (event.offsetY + this.positionY)) + } + }) + .onActionEnd(() => { + this.positionY = 30; + console.log('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + }) + ) + } + .alignItems(HorizontalAlign.Start) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets new file mode 100755 index 00000000..4f5e0cff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140.ets @@ -0,0 +1,132 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEvent0140 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.None }) + + build() { + Column() { + Row() { + Button('All') + .id('TouchEventDockPointerEvent_all') + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.All) + }) + + Button('Left') + .id('TouchEventDockPointerEvent_left') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Left) + }) + + Button('Right') + .id('TouchEventDockPointerEvent_right') + .width(100) + .height(50) + .margin({ top: 5 }) + .onClick(event => { + this.panOption.setDirection(PanDirection.Right) + }) + + Button('None') + .id('TouchEventDockPointerEvent_none') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.None) + promptAction.showToast({ + message: '拖动方向:None', + duration: 3000, + }); + }) + } + + Row() { + Button('Vertical') + .id('TouchEventDockPointerEvent_vertical') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Vertical) + }) + + Button('Horizontal') + .id('TouchEventDockPointerEvent_horizontal') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Horizontal) + }) + + Button('Down') + .id('TouchEventDockPointerEvent_down') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Down) + }) + Button('Up') + .id('TouchEventDockPointerEvent_up') + .margin({ top: 5 }) + .width(100) + .height(50) + .onClick(event => { + this.panOption.setDirection(PanDirection.Up) + }) + } + + Text('PanGesture Offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + .id('TouchEventDockPointerEvent0140_text') + .margin({ top: 5 }) + .fontSize(28) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 })// 在组件上绑定布局位置信息 + .gesture( + // 绑定拖动手势 + PanGesture(this.panOption) + .onActionStart((event: GestureEvent | undefined) => { + console.info('Pan start'); + })// 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent | undefined) => { + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + .height(200) + .width(250) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets new file mode 100755 index 00000000..1d60194d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210.ets @@ -0,0 +1,141 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 MyDataSourceEvent0210 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 TouchEventDockPointerEvent0210 { + @State arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7] + @State enterEndDeleteAreaString: string = "not enterEndDeleteArea" + @State exitEndDeleteAreaString: string = "not exitEndDeleteArea" + private scroller: ListScroller = new ListScroller() + private swiperController: SwiperController = new SwiperController() + private data: MyDataSourceEvent0210 = new MyDataSourceEvent0210([]) + + aboutToAppear(): void { + let list: number[] = [] + for (let i = 1; i <= 5; i++) { + list.push(i); + } + this.data = new MyDataSourceEvent0210(list) + } + + @Builder + itemEnd() { + Row() { + Button('Delete').margin('4vp') + Button('Set').margin('4vp').onClick(() => { + this.scroller.closeAllSwipeActions() + }) + }.padding(4).justifyContent(FlexAlign.SpaceEvenly) + } + + build() { + Column() { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text(item.toString()) + .width('100%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, (item: string) => item) + } + .id('TouchEventDockPointerEvent0210_swiper') + .cachedCount(2) + .index(0) + .autoPlay(false) + .interval(4000) + .indicator(Indicator.digit()// 设置数字导航点样式 + .top(200) + .fontColor(Color.Gray) + .selectedFontColor(Color.Gray) + .digitFont({ size: 20, weight: FontWeight.Bold }) + .selectedDigitFont({ size: 20, weight: FontWeight.Normal })) + .loop(true) + .duration(1000) + .itemSpace(0) + .displayArrow(true, false) + + Column() { + List({ space: 10, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('ListItem' + item) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + } + .transition({ type: TransitionType.Delete, opacity: 0 }) + .swipeAction({ + end: { + builder: () => { + this.itemEnd() + }, + onAction: () => { + animateTo({ duration: 1000 }, () => { + let index = this.arr.indexOf(item) + this.arr.splice(index, 1) + }) + }, + actionAreaDistance: 56, + onEnterActionArea: () => { + this.enterEndDeleteAreaString = "enterEndDeleteArea" + this.exitEndDeleteAreaString = "not exitEndDeleteArea" + }, + onExitActionArea: () => { + this.enterEndDeleteAreaString = "not enterEndDeleteArea" + this.exitEndDeleteAreaString = "exitEndDeleteArea" + } + } + }) + }, (item: string) => item) + } + .id('TouchEventDockPointerEvent0210_list') + .margin({ top: 10 }) + .height(400) + } + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.ets new file mode 100755 index 00000000..3ec854a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0010 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 1,fingers:1 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.ets new file mode 100755 index 00000000..c3e7ca60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020.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. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0020 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('连点数切换:' + this.count).fontSize(20) + .id('change') + .gesture( + TapGesture({ count: 2,fingers:1}) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '触发点击的手指数:' + this.count, + duration: 3000, + }); + } + })) + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 2 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.ets new file mode 100755 index 00000000..ca68851d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030.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. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0030 { + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Text('多指:' + this.count).fontSize(20) + .id('change') + .gesture( + TapGesture({ count: 1,fingers:2}) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '触发点击的手指数:' + this.count, + duration: 3000, + }); + } + })) + Text('tap Click').fontSize(20) + .id('tapClick') + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]); + } + })) + Text(this.value) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.ets new file mode 100755 index 00000000..c787d211 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040.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 TouchEventDockPointerEventAndroidReplacement0040 { + @State count: number = 0; + + build() { + Column() { + Text('LongPress onAction:' + this.count).fontSize(28) + .id('longPress') + .gesture( + LongPressGesture() + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.count++; + } + }) + .onActionEnd(() => { + }) + ) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.ets new file mode 100755 index 00000000..6263e0c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050.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 TouchEventDockPointerEventAndroidReplacement0050 { + @State count: number = 0; + @State repeat: boolean = false; + + build() { + Column() { + Text('是否连续触发回调:' + this.repeat).fontSize(28) + .id('longPress') + .onClick(() => { + this.repeat = true; + }) + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count++; + } + }) + .onActionEnd(() => { + }) + ) + Text('LongPress onAction:' + this.count).fontSize(28) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.ets new file mode 100755 index 00000000..7e8ed2ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060.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 TouchEventDockPointerEventAndroidReplacement0060 { + @State count: number = 0; + @State repeat: boolean = false; + @State show: Visibility = Visibility.Visible; + + build() { + Column() { + Text('longPress').fontSize(28) + .id('longPress') + .onClick(() => { + this.repeat = true; + }) + .visibility(this.show) + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + this.count++; + this.show = Visibility.Hidden; + } + }) + .onActionEnd(() => { + }) + ) + Text('是否连续触发回调:' + this.repeat).fontSize(28) + Text('LongPress onAction:' + this.count).fontSize(28) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.ets new file mode 100755 index 00000000..d45af03e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150.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 TouchEventDockPointerEventAndroidReplacement0150 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Button('pingch') + .id('pinchOut') + .fontSize(10) + .height(50) + .width(100) + .margin({ top: 100,bottom:50 }) + .align(Alignment.Center) + .alignSelf(ItemAlign.Center) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture() + .onActionStart((event: GestureEvent | undefined) => { + this.pinchValue = event?.fingerList.length; + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + }) + ) + Text('PinchGesture scale:' + this.pinchValue) + } + .border({ width: 3 }) + .height("100%") + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.ets new file mode 100755 index 00000000..ae124526 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160.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. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0150 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @State value: string = ""; + @State count: number = 1; + + build() { + Column() { + Button('pingch') + .id('pinchOut') + .fontSize(10) + .height(50) + .width(100) + .margin({ top: 100,bottom:50 }) + .align(Alignment.Center) + .alignSelf(ItemAlign.Center) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture() + .onActionStart((event: GestureEvent | undefined) => { + this.pinchValue = event?.fingerList.length; + if (event) { + this.count = this.count + event.fingerList.length; + promptAction.showToast({ + message: '捏和手指数:' + this.count, + duration: 3000, + }); + } + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + }) + ) + Text('PinchGesture scale:'+ this.pinchValue) + } + .border({ width: 3 }) + .height("100%") + .width("100%") + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.ets new file mode 100755 index 00000000..e9ea5a4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct TouchEventDockPointerEventAndroidReplacement0200 { + @State count: number = 0; + @State repeat: boolean = false; + + build() { + Column() { + Text('tap Click').fontSize(28) + .id('longPress') + .gesture( + LongPressGesture({ repeat: this.repeat }) + .onAction((event: GestureEvent | undefined) => { + if (event) { + promptAction.showToast({ + message: '长按手势开始', + duration: 3000, + }); + } + }) + .onActionEnd(() => { + }) + ) + } + .height(200) + .width(250) + .padding(20) + .border({ width: 3 }) + .margin(30) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.ets new file mode 100755 index 00000000..99ab752b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/ResourceHelper.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. + */ + +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +async function getPixmapFromMedia(context: Context, resource: Resource) { + let unit8Array = await context?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap +} + +/** + * 返回图片Base64格式 + * + * @param context + */ +export async function getBase64(context: Context): Promise { + let pixelMap = await getPixmapFromMedia(context, $r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + let arrayBufferData = await imagePackerApi.packing(pixelMap, packOpts); + let buf: buffer.Buffer = buffer.from(arrayBufferData); + let imageStr = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + return imageStr; +} + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.ets new file mode 100755 index 00000000..33a13868 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0010 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0010') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 0, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.ets new file mode 100755 index 00000000..ad1467c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0020 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0020') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.ets new file mode 100755 index 00000000..b3c89bb7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0030 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0030') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 100, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.ets new file mode 100755 index 00000000..a012ffbd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0040 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0040') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 1000, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.ets new file mode 100755 index 00000000..ba12d6f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0050 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0050') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: Number.NaN, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.ets new file mode 100755 index 00000000..93286e92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0060 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0060') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.ets new file mode 100755 index 00000000..7b69bfcc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0070 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0070') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.ets new file mode 100755 index 00000000..0c3165fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0080 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0080') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 0.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.ets new file mode 100755 index 00000000..cdf64c35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0090 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0090') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: 1.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.ets new file mode 100755 index 00000000..b2e54b7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0100 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0100') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + saturation: -1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.ets new file mode 100755 index 00000000..90eab79b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0110 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0110') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.ets new file mode 100755 index 00000000..50daa94a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0120 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0120') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.ets new file mode 100755 index 00000000..a27b60db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0130 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0130') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 0.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.ets new file mode 100755 index 00000000..6ef0c188 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0140 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0140') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: 1.5 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.ets new file mode 100755 index 00000000..1c96de53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0150 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0150') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + radius: 10, + brightness: -1 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.ets new file mode 100755 index 00000000..f82eb6a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0160 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0160') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: Color.Red, + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.ets new file mode 100755 index 00000000..4ba69448 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0170 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0170') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: getContext().resourceManager.getColorSync($r('app.color.color_0xffff')), + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.ets new file mode 100755 index 00000000..088bdea6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0180 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0180') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: 'rgba(255, 100, 255,0.5)', + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.ets new file mode 100755 index 00000000..c760d0ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190.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 { getBase64 } from './ResourceHelper'; + +//这个颜色有负值,记得检查下 +@Entry +@Component +struct UIAttributesBackgroundBackBlur0190 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0190') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: -(Color.Red), + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.ets new file mode 100755 index 00000000..e612123d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0200 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0200') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: (-1 * (getContext().resourceManager.getColorSync($r('app.color.color_0xffff')))), + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.ets new file mode 100755 index 00000000..fcf721e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210.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 { getBase64 } from './ResourceHelper'; + +//这里的负数颜色需要确认下 + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0210 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0210') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + color: '-rgba(255, 100, 255,0.5)', + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.ets new file mode 100755 index 00000000..b463ceda --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0220 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0220') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: AdaptiveColor.DEFAULT, + radius: 10, + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.ets new file mode 100755 index 00000000..92eeeb08 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0230 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0230') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: AdaptiveColor.AVERAGE, + color: Color.Red, + radius: 10 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.ets new file mode 100755 index 00000000..396bad0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0240 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('UIAttributesBackgroundBackBlur0240') + .backgroundColor(Color.Blue) + } + .width('100%') + .height('100%') + .backgroundEffect({ + adaptiveColor: 3, + color: Color.Red, + radius: 10, + brightness: 1.0, + saturation: 1.0 + }) + .backgroundImage(this.image) + .backgroundImageSize(ImageSize.Cover) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.ets new file mode 100755 index 00000000..800f2e53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0250 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .shadow({ + radius: 50, + }) + .backgroundColor(Color.Red) + .backgroundEffect({ + color: Color.Green, + radius: 50 + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets new file mode 100755 index 00000000..5b13eb4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260.ets @@ -0,0 +1,132 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundBackBlur0260 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Button('Button') + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Text('Text') + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Slider() + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + TextInput({ + placeholder: 'TextInput' + }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Progress({ value: 45, total: 100, type: ProgressType.Capsule }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + TimePicker({ selected: new Date() }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + DatePicker({ start: new Date('2023-1-1'), end: new Date('2024-11-1') }) + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Column() { + Text("Column") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Row() { + Text("Row") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + Flex({direction: FlexDirection.Row}) { + Text("Flex") + } + .width(300) + .height(100) + .backgroundEffect({ + radius: 100, + saturation: 0.5, + brightness: 0.8 + }) + + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets new file mode 100755 index 00000000..55a6933c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0010 { + build() { + Row() { + } + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets new file mode 100755 index 00000000..827ea51f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0020 { + build() { + Row() { + } + .backgroundBlurStyle( + //BlurStyle.Thin-->BlurStyle.ddd Property 'ddd' does not exist on type 'typeof BlurStyle'. + BlurStyle.Thin, + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets new file mode 100755 index 00000000..32c8a175 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0030 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets new file mode 100755 index 00000000..5a2ed58c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0040 { + build() { + Row() { + + } + .backgroundBlurStyle( + //colorMode: ThemeColorMode.ddd Property 'ddd' does not exist on type 'typeof ThemeColorMode'. + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets new file mode 100755 index 00000000..bbc021c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0050 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets new file mode 100755 index 00000000..72ddb28a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0060 { + build() { + Row() { + + } + .backgroundBlurStyle( + //adaptiveColor: AdaptiveColor.AVERAGE--->AdaptiveColor.ddd Property 'ddd' does not exist on type 'typeof AdaptiveColor'. + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets new file mode 100755 index 00000000..9e6a3509 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0070 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets new file mode 100755 index 00000000..7b172e67 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0080 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets new file mode 100755 index 00000000..76fa33e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0090 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets new file mode 100755 index 00000000..af4108d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface0100 { + build() { + Row() { + + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets new file mode 100755 index 00000000..d1350ffb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.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 UIAttributesBackgroundInterface0110 { + build() { + Column() { + Row() { + Text("DARK") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.DARK}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets new file mode 100755 index 00000000..2616ff8c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.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 UIAttributesBackgroundInterface0120 { + build() { + Column() { + Row() { + Text("SYSTEM") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.SYSTEM}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets new file mode 100755 index 00000000..07dfc843 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.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 UIAttributesBackgroundInterface0130 { + build() { + Column() { + Row() { + Text("LIGHT") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.LIGHT}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets new file mode 100755 index 00000000..46557caa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.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 UIAttributesBackgroundInterface0160 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets new file mode 100755 index 00000000..2b9da486 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.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 UIAttributesBackgroundInterface0170 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets new file mode 100755 index 00000000..6ad1a10d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.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 UIAttributesBackgroundInterface0180 { + build() { + Column() { + Row() { + Text("BACKGROUND_THIN") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets new file mode 100755 index 00000000..0d9f842e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.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 UIAttributesBackgroundInterface0190 { + build() { + Column() { + Row() { + Text("BACKGROUND_ULTRA_THICK") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets new file mode 100755 index 00000000..b7e7006b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.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 UIAttributesBackgroundInterface0200 { + build() { + Column() { + Row() { + Text("Regular") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Regular) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets new file mode 100755 index 00000000..18aec7c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.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 UIAttributesBackgroundInterface0210 { + build() { + Column() { + Row() { + Text("Thick") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thick) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets new file mode 100755 index 00000000..be74cf59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.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 UIAttributesBackgroundInterface0220 { + build() { + Column() { + Row() { + Text("Thin") + } + .position({ x: 100, y: 100 }) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thin) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.ets new file mode 100755 index 00000000..858e4389 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230.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 UIAttributesBackgroundInterface0230 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: 20, + colors: [[Color.Pink,0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.4], ['rgb(255,255,255)', 0.6]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.ets new file mode 100755 index 00000000..f13258e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240.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 UIAttributesBackgroundInterface0240 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: 20, + colors: [[Color.Pink,0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.4], ['rgb(255,255,255)', 0.6]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets new file mode 100755 index 00000000..859805ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.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 UIAttributesBackgroundInterface0250 { + build() { + Column({ space: 5 }) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: -10, + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets new file mode 100755 index 00000000..8a91fd28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.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 UIAttributesBackgroundInterface0260 { + build() { + Column({ space: 5 }) { + + Row(){ + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 0, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets new file mode 100755 index 00000000..4a57f445 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.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 UIAttributesBackgroundInterface0270 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为20vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets new file mode 100755 index 00000000..899cc83f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.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 UIAttributesBackgroundInterface0280 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为20%发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: "20%", + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets new file mode 100755 index 00000000..1434e945 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.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 UIAttributesBackgroundInterface0290 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[0xAEE1E1,0.0],[0xD3E0DC,0.3], [0xFCD1D1,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets new file mode 100755 index 00000000..0b97f4be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.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 UIAttributesBackgroundInterface0300 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[0xD3E0DC,0.4], [Color.Red,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.ets new file mode 100755 index 00000000..abe3e2f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310.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 UIAttributesBackgroundInterface0310 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[getContext().resourceManager.getColorSync($r("app.color.Pink")),0.4], ['rgb(255,255,255)',0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets new file mode 100755 index 00000000..c1ab4b74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.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 UIAttributesBackgroundInterface0320 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为60vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 60, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets new file mode 100755 index 00000000..48e286b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.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 UIAttributesBackgroundInterface0330 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,渐变半径为100vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-10, -10], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 100, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets new file mode 100755 index 00000000..8ae1749d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.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 UIAttributesBackgroundInterface0340 { + build() { + Column({ space: 5 }) { + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-50, -50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 40, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets new file mode 100755 index 00000000..fad1b7c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.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 UIAttributesBackgroundInterface0350 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets new file mode 100755 index 00000000..1d720562 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.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 UIAttributesBackgroundInterface0380 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: false + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets new file mode 100755 index 00000000..074762fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.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 UIAttributesBackgroundInterface0390 { + build() { + Column({ space: 5 }) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets new file mode 100755 index 00000000..1f72c001 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.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 UIAttributesBackgroundInterface0400 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "0.5turn", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets new file mode 100755 index 00000000..8fd94106 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.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 UIAttributesBackgroundInterface0410 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: '3.14rad', + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets new file mode 100755 index 00000000..a15f6484 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.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 UIAttributesBackgroundInterface0420 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: 90, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets new file mode 100755 index 00000000..9b9bbecb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.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 UIAttributesBackgroundInterface0430 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets new file mode 100755 index 00000000..70c65f9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.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 UIAttributesBackgroundInterface0440 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets new file mode 100755 index 00000000..04b17010 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.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 UIAttributesBackgroundInterface0450 { + build() { + Column({ space: 5 }) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets new file mode 100755 index 00000000..7a790c33 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.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 UIAttributesBackgroundInterface0460 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets new file mode 100755 index 00000000..ac9478fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.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 UIAttributesBackgroundInterface0470 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets new file mode 100755 index 00000000..1bd14243 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.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 UIAttributesBackgroundInterface0480 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets new file mode 100755 index 00000000..fb49a134 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.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 UIAttributesBackgroundInterface0490 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets new file mode 100755 index 00000000..a6e22068 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.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 UIAttributesBackgroundInterface0500 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.0], [0xD3E0DC, 0.3], [Color.Red, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.ets new file mode 100755 index 00000000..35e24fb5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510.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 UIAttributesBackgroundInterface0510 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.3], [getContext().resourceManager.getColorSync($r("app.color.Pink")), 0.3], ["rgb(255,200,255)", 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets new file mode 100755 index 00000000..83cb32dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.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 UIAttributesBackgroundInterface0520 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets new file mode 100755 index 00000000..2d77b14a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.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 UIAttributesBackgroundInterface0530 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets new file mode 100755 index 00000000..6e0fe339 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.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 UIAttributesBackgroundInterface0540 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets new file mode 100755 index 00000000..7801e8b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.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 UIAttributesBackgroundInterface0550 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets new file mode 100755 index 00000000..aa021c85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.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 UIAttributesBackgroundInterface0560 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: -90, + end: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets new file mode 100755 index 00000000..23bfde40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.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 UIAttributesBackgroundInterface0570 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "0.5trun", + end: "1turn", + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets new file mode 100755 index 00000000..3e3091f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.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 UIAttributesBackgroundInterface0580 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 480, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets new file mode 100755 index 00000000..4b2f2835 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.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 UIAttributesBackgroundInterface0590 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "200grad", + end: "400grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets new file mode 100755 index 00000000..f9fdfd1c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.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 UIAttributesBackgroundInterface0600 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "3.14rad", + end: "6.28rad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets new file mode 100755 index 00000000..da3380ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.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 UIAttributesBackgroundInterface0610 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "90deg", + end: "270deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets new file mode 100755 index 00000000..66ec1e29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.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 UIAttributesBackgroundInterface0620 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets new file mode 100755 index 00000000..195f13f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.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 UIAttributesBackgroundInterface0630 { + build() { + Column({ space: 5 }) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets new file mode 100755 index 00000000..efba40d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.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 UIAttributesBackgroundInterface0660 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Bottom) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets new file mode 100755 index 00000000..776c8cb0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.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 UIAttributesBackgroundInterface0670 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomEnd) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets new file mode 100755 index 00000000..3d045b94 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.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 UIAttributesBackgroundInterface0680 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomStart) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets new file mode 100755 index 00000000..a52cd80f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.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 UIAttributesBackgroundInterface0690 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Center) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets new file mode 100755 index 00000000..4a255e15 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.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 UIAttributesBackgroundInterface0700 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.End) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets new file mode 100755 index 00000000..d76f7df9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.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 UIAttributesBackgroundInterface071 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Start) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets new file mode 100755 index 00000000..ef1a0a49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.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 UIAttributesBackgroundInterface072 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Top) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets new file mode 100755 index 00000000..539b1d42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.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 UIAttributesBackgroundInterface073 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopEnd) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets new file mode 100755 index 00000000..99616852 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.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 UIAttributesBackgroundInterface074 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopStart) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets new file mode 100755 index 00000000..9d4e4540 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.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 UIAttributesBackgroundInterface075 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets new file mode 100755 index 00000000..79df6506 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.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 UIAttributesBackgroundInterface076 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "90%" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets new file mode 100755 index 00000000..767583e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.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 UIAttributesBackgroundInterface077 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets new file mode 100755 index 00000000..bf626d1b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.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 UIAttributesBackgroundInterface078 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "33fp" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets new file mode 100755 index 00000000..0599a609 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.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 UIAttributesBackgroundInterface079 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: $r("app.integer.100"), y: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets new file mode 100755 index 00000000..f97ba901 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.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 UIAttributesBackgroundInterface080 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: -100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets new file mode 100755 index 00000000..2ac2e6e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.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 UIAttributesBackgroundInterface081 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({}) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets new file mode 100755 index 00000000..f8c33147 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.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 UIAttributesBackgroundInterface083 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(11112) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets new file mode 100755 index 00000000..57973782 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.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 UIAttributesBackgroundInterface085 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(11112) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets new file mode 100755 index 00000000..506c42bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.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 UIAttributesBackgroundInterface087 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: -434, height: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets new file mode 100755 index 00000000..217a5f72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.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 UIAttributesBackgroundInterface088 { + build() { + Column() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 850, height: 1100 }) + .width(600) + .height(400) + } + .width(800) + .height(1000) + .backgroundColor(Color.Gray) + .alignItems(HorizontalAlign.Center) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets new file mode 100755 index 00000000..7ab9abd6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.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 UIAttributesBackgroundInterface089 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "280px" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets new file mode 100755 index 00000000..5916f829 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.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 UIAttributesBackgroundInterface090 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "90%" }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets new file mode 100755 index 00000000..c06a5b02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.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 UIAttributesBackgroundInterface091 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 200, height: 100 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets new file mode 100755 index 00000000..f0ddc60b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.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 UIAttributesBackgroundInterface092 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 333 }) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets new file mode 100755 index 00000000..bd8051e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.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 UIAttributesBackgroundInterface093 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({}) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets new file mode 100755 index 00000000..c79a4e9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.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 UIAttributesBackgroundInterface094 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Auto) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets new file mode 100755 index 00000000..a9f64955 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.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 UIAttributesBackgroundInterface095 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Contain) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets new file mode 100755 index 00000000..f5e84fab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.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 UIAttributesBackgroundInterface096 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets new file mode 100755 index 00000000..ac1a7b02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface097 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets new file mode 100755 index 00000000..16c2abd8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface098 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets new file mode 100755 index 00000000..76744951 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface100 { + build() { + Column() { + Row() + .backgroundImage('/comment/bddg.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets new file mode 100755 index 00000000..a83c3d72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface103 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets new file mode 100755 index 00000000..6a33f487 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface104 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.NoRepeat) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets new file mode 100755 index 00000000..7aa5fc78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface105 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.X) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets new file mode 100755 index 00000000..4df58ae4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface106 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.XY) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets new file mode 100755 index 00000000..676e89b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface107 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.Y) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets new file mode 100755 index 00000000..9b02c7ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface108 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets new file mode 100755 index 00000000..87ce887b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface109 { + build() { + Column() { + Row() + .backgroundImage('fly.svg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets new file mode 100755 index 00000000..d5506816 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface110 { + build() { + Column() { + Row() + .backgroundColor(Color.Black) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets new file mode 100755 index 00000000..4445fb6c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface111 { + build() { + Column() { + Row() + .backgroundColor(Color.Blue) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets new file mode 100755 index 00000000..1031be5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface112 { + build() { + Column() { + Row() + .backgroundColor(Color.Brown) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets new file mode 100755 index 00000000..cb43e2a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface113 { + build() { + Column() { + Row() + .backgroundColor(Color.Gray) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets new file mode 100755 index 00000000..aaf927ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface114 { + build() { + Column() { + Row() + .backgroundColor(Color.Green) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets new file mode 100755 index 00000000..73300842 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface115 { + build() { + Column() { + Row() + .backgroundColor(Color.Grey) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets new file mode 100755 index 00000000..b76f3a1f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface116 { + build() { + Column() { + Row() + .backgroundColor(Color.Orange) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets new file mode 100755 index 00000000..c5a7685c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface117 { + build() { + Column() { + Row() + .backgroundColor(Color.Pink) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets new file mode 100755 index 00000000..690f1ba4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface118 { + build() { + Column() { + Row() + .backgroundColor(Color.Red) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets new file mode 100755 index 00000000..dc7857f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface119 { + build() { + Column() { + Row() + .backgroundColor(Color.Transparent) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets new file mode 100755 index 00000000..54b56ae1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface120 { + build() { + Column() { + Row() + .backgroundColor(Color.White) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets new file mode 100755 index 00000000..bf500bd2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface121 { + build() { + Column() { + Row() + .backgroundColor(Color.Yellow) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets new file mode 100755 index 00000000..8cbef6a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface122 { + build() { + Column() { + Row() + .backgroundColor(0x0000ff) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets new file mode 100755 index 00000000..5c8b831e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface123 { + build() { + Column() { + Row() + .backgroundColor($r('app.color.blue')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets new file mode 100755 index 00000000..cbffb3c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface124 { + build() { + Column() { + Row() + .backgroundColor('rgba(0,0,255,1.000)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets new file mode 100755 index 00000000..c14d9642 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface125 { + build() { + Column() { + Row() + .backgroundColor('rgb(0,0,255)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets new file mode 100755 index 00000000..51f8ac83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface127 { + build() { + Column() { + Row() + .backgroundColor($r("app.string.module_desc")) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets new file mode 100755 index 00000000..9cfe8b93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundInterface128 { + build() { + Column() { + Row() + .backgroundColor("dsfsdfsf") + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets new file mode 100755 index 00000000..777dc5cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.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 UIAttributesBackgroundInterface130 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]] + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets new file mode 100755 index 00000000..82d95f63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.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 UIAttributesBackgroundInterface131 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + repeating: true + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets new file mode 100755 index 00000000..190c6533 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.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 UIAttributesBackgroundInterface1320 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.2],[0xFCD1D1, 0.6]], + repeating:false, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets new file mode 100755 index 00000000..da12ac7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.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 UIAttributesBackgroundInterface1330 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[$r("app.color.Pink"),0.4],["rgb(255,200,255)",0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets new file mode 100755 index 00000000..f2ef7175 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.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 UIAttributesBackgroundInterface1340 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[0xD3E0DC,0.4],[Color.Red,0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets new file mode 100755 index 00000000..eeb6c80d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.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 UIAttributesBackgroundInterface1350 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:-90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets new file mode 100755 index 00000000..81a12228 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.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 UIAttributesBackgroundInterface1360 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets new file mode 100755 index 00000000..2c2f0940 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.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 UIAttributesBackgroundInterface1370 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets new file mode 100755 index 00000000..2cf3e985 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.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 UIAttributesBackgroundInterface1380 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'10px', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets new file mode 100755 index 00000000..d6883149 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.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 UIAttributesBackgroundInterface1390 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0.5, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets new file mode 100755 index 00000000..68e550e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.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 UIAttributesBackgroundInterface1400 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'AAA', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets new file mode 100755 index 00000000..d16f2717 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.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 UIAttributesBackgroundInterface1410 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets new file mode 100755 index 00000000..ba941285 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.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 UIAttributesBackgroundInterface1420 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Bottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets new file mode 100755 index 00000000..d2129d17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.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 UIAttributesBackgroundInterface1430 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets new file mode 100755 index 00000000..60765df8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.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 UIAttributesBackgroundInterface1440 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets new file mode 100755 index 00000000..fe7f5cf2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.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 UIAttributesBackgroundInterface1450 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets new file mode 100755 index 00000000..ee081b87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.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 UIAttributesBackgroundInterface1460 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.None, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets new file mode 100755 index 00000000..9f6eb539 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.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 UIAttributesBackgroundInterface1470 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets new file mode 100755 index 00000000..d6f3bbcc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.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 UIAttributesBackgroundInterface1480 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets new file mode 100755 index 00000000..2179d603 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.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 UIAttributesBackgroundInterface1490 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Right, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets new file mode 100755 index 00000000..c84c4871 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.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 UIAttributesBackgroundInterface1500 { + + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Top, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.ets new file mode 100755 index 00000000..72fbea96 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0010 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.ets new file mode 100755 index 00000000..99d6ba11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0020 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.ets new file mode 100755 index 00000000..f19124cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0030 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.ets new file mode 100755 index 00000000..3b73d2c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0040 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.ets new file mode 100755 index 00000000..0b11c536 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0050 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.ets new file mode 100755 index 00000000..b23672ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0060 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.ets new file mode 100755 index 00000000..55f4b01a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0070 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.ets new file mode 100755 index 00000000..1d6d46eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0080 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.ets new file mode 100755 index 00000000..b9b38f17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0090 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.ets new file mode 100755 index 00000000..0374ccb9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0100 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THIN, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.ets new file mode 100755 index 00000000..81f301ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0110 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.ets new file mode 100755 index 00000000..ecc7fd6a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0120 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.ets new file mode 100755 index 00000000..b45517f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0130 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.ets new file mode 100755 index 00000000..044ba637 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0140 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.Thin + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.ets new file mode 100755 index 00000000..81bc9f8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0150 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.ets new file mode 100755 index 00000000..4ee840ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0160 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.ets new file mode 100755 index 00000000..3428ca5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0170 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.ets new file mode 100755 index 00000000..bfedd2c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0180 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.ets new file mode 100755 index 00000000..e0761f12 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0190 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle(BlurStyle.COMPONENT_THICK) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.ets new file mode 100755 index 00000000..3bcd4c98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0200 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.ets new file mode 100755 index 00000000..0e4f2fee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0210 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.SYSTEM, scale: 1 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.ets new file mode 100755 index 00000000..cff330bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0220 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 0.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.ets new file mode 100755 index 00000000..1d0eb95e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0230 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.DARK, scale: 0 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.ets new file mode 100755 index 00000000..bce08946 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0240 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.ets new file mode 100755 index 00000000..0e0cea2f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0250 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.ets new file mode 100755 index 00000000..05dfe2ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0260 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.NONE, { colorMode: ThemeColorMode.LIGHT, scale: 1.5 } + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.ets new file mode 100755 index 00000000..d53bf4d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270.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 { getBase64 } from './ResourceHelper'; + +@Entry +@Component +struct UIAttributesBackgroundVisual0270 { + @State image: string | null = null; + + aboutToAppear(): void { + getBase64(getContext(this)).then((imageStr: string) => { + this.image = imageStr; + }); + } + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Image(this.image) + .width(300) + .height(300) + .backgroundBlurStyle( + BlurStyle.COMPONENT_REGULAR + ) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets new file mode 100755 index 00000000..ba230bfa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.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 UIAttributesFloatingLayerOverlay0240 { + @State message: string = 'Hello' + @Builder privateBuilder() { + Menu().overlay(this.privateBuilderTwo()).height(600).width("100%").margin({top:100}) + } + @Builder privateBuilderTwo() { + Image("2.png").height(300).margin({top:100}) + } + build() { + Row() { + Column() {} + .width('100%') + .height('100%') + .backgroundColor(Color.Green) + + }.overlay(this.privateBuilder()) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets new file mode 100755 index 00000000..d7e77c51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.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. + */ + +class bottom { + bottom:number = 50 +} +let bott:bottom = new bottom() +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0250 { + private apfruits: string[] = ['apple1', 'apple2', 'apple3', 'apple4'] + private orfruits: string[] = ['orange1', 'orange2', 'orange3', 'orange4'] + private pefruits: string[] = ['peach1', 'peach2', 'peach3', 'peach4'] + private multi: string[][] = [this.apfruits, this.orfruits, this.pefruits] + @Builder + privateBuilder() { + TextPicker({ range: this.multi }) + .onChange((value: string | string[], index: number | number[]) => { + console.info('TextPicker 多列:onChange ' + JSON.stringify(value) + ', ' + 'index: ' + JSON.stringify(index)) + }).margin(bott).width(550).height(400).margin({top:50}).backgroundColor(Color.Orange) + } + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets new file mode 100755 index 00000000..8264dea5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.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 UIAttributesFloatingLayerOverlay0260 { + private selectedDate: Date = new Date('2024-03-05') + @Builder + privateBuilder() { + CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) + .id("CalendarPicker") + .edgeAlign(CalendarAlign.END) + .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) + .margin(10) + .onChange((value) => { + console.info("CalendarPicker onChange:" + JSON.stringify(value)) + }) + .width(565) + } + + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets new file mode 100755 index 00000000..694696b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.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 UIAttributesFloatingLayerOverlay0270 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @Builder + privateBuilder() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult) => { + if(value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({color: Color.Red, font: {size: 15, weight: FontWeight.Lighter}}) + .textStyle({color: Color.Black, font: {size: 20, weight: FontWeight.Normal}}) + .selectedTextStyle({color: Color.Blue, font: {size: 30, weight: FontWeight.Bolder}}) + .width(565) + } + + build() { + Column() { + }.overlay(this.privateBuilder()).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets new file mode 100755 index 00000000..6e1194f8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.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 UIAttributesFloatingLayerOverlay0280 { + @State mainColor:Color=Color.Orange; + @Builder + privateBuilder() { + Column(){ + Button("点击改变主控件背景色").onClick(()=>{ + this.mainColor=Color.Pink + }).height(30).width(150).margin({top:30,right:60}) + }.height(100).width("100%").backgroundColor("#F26BED").id("changeButton") + } + build() { + Column() { + Text('主控件文字背景').backgroundColor(this.mainColor).fontSize(50).margin({top:300,right:60}); + }.overlay(this.privateBuilder(),{offset:{x:0,y:80}}).height(500).width(500).backgroundColor("#ff6bf2b8") + } +} + + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets new file mode 100755 index 00000000..991a97da --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0290 { + @State imagePath:string="2.png"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder) + } + @Builder + privateBuilder() { + Column(){ + Image(this.imagePath).height(500).margin({top:70}) + .overlay(this.privateBuilderTwo(),{align:Alignment.Center}) + Button("点击改变图片") + .margin({top:30}) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .id("changeImagePath") + .onClick(()=>{ + this.imagePath="openeye.png" + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + + + + + + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets new file mode 100755 index 00000000..0087e646 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.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 UIAttributesFloatingLayerOverlay0300 { + @State mainColor:string="#C9F26B"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder).backgroundColor(this.mainColor).height(40) + } + @Builder + privateBuilder() { + Column(){ + Image('2.png').height(500).margin({top:70}) + .overlay(this.privateBuilderTwo(),{align:Alignment.Center}) + Button("点击改变文本背景色") + .id("changeTextGroundColor") + .margin({top:30}) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .onClick(()=>{ + this.mainColor="#F26BD2" + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets new file mode 100755 index 00000000..a3f50d17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.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 UIAttributesFloatingLayerOverlay0310 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("overlayButton") + .fontSize(28) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + // 在组件上绑定布局位置信息 + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500); + Text("测试").fontSize(1).id("ceshitext") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets new file mode 100755 index 00000000..1acae939 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.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 UIAttributesFloatingLayerOverlay0320 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("nieheButton") + .fontSize(30) + .height(50) + .width(100) + .border({ width: 3 }) + .margin({ top: 100 }) + // 在组件上绑定缩放比例,可以通过修改缩放比例来实现组件的缩小或者放大 + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets new file mode 100755 index 00000000..c80081e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.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. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0330 { + @State angle: number = 0; + @State rotateValue: number = 0; + + @Builder + overlayBuilder(){ + Button("按键") + .id("xuanzhuanButton") + .fontSize(100) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick(()=>{ + this.angle=75 + }) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets new file mode 100755 index 00000000..dbdc23b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.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 UIAttributesFloatingLayerOverlay0340 { + @State rotateAngle: number = 0; + @State speed: number = 1; + + @Builder + overlayBuilder(){ + Button("按键") + .onClick(()=>{ + this.rotateAngle=80 + }) + .id("huadongButton") + .fontSize(100) + .border({ width: 3 }) + .width(300) + .height(200) + .margin(100) + // 在Column组件上绑定旋转,通过滑动手势的滑动速度和角度修改旋转的角度 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.All }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + } + build() { + Column() { + Image("2.png").overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets new file mode 100755 index 00000000..799f7b85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.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 UIAttributesFloatingLayerOverlay0350 { + @State value: string = "初始值"; + + @Builder + overlayBuilder(){ + Button("按键") + .id("dianjiButton") + .fontSize(30) + .size({ width:100,height:40} ) + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.value = JSON.stringify(event.fingerList[0]); + } + })) + } + build() { + Column() { + Text(this.value).fontSize(40) + Image("2.png").overlay(this.overlayBuilder(),{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets new file mode 100755 index 00000000..981d8705 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0360 { + @State count: number = 0; + + @Builder + overlayBuilder(){ + Button("长按数字变化") + .id("changanButton") + .fontSize(25) + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + if (event.repeat) { + this.count++; + } + } + }) + .onActionEnd(() => { + this.count = 0; + }) + ) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count.toString()).fontSize(40) + Image("2.png").overlay(this.overlayBuilder(),{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets new file mode 100755 index 00000000..1bd9446c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.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 UIAttributesFloatingLayerOverlay0370 { + @State count: string = "点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("手指点击") + .id("shouzhiButton") + .fontSize(30) + .onClick(()=>{ + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets new file mode 100755 index 00000000..1e62a42b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.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 UIAttributesFloatingLayerOverlay0380 { + @State count: string = "鼠标点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("鼠标点击") + .id("shubiaoButton") + .fontSize(30) + .onClick(()=>{ + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay(this.overlayBuilder()).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets new file mode 100755 index 00000000..38c80db8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets @@ -0,0 +1,90 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { Driver } from '@kit.TestKit'; + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0390 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Text() + .id("sonButton") + .fontSize(20) + .width('100%') + .height(50) + .backgroundColor(Color.Red) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + + build() { + Column() { + Text("2").margin({top:0}).fontSize(1).id("moveText1") + Text() + .id("fatherButton") + .fontSize(40) + .width('100%') + .height(150) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .backgroundColor(Color.Green) + .gesture( + // 绑定拖动手势 + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + // 当触发拖动手势时,根据回调函数修改组件的布局位置信息 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ).overlay(this.overlayBuilder(),{offset:{x:0,y:0}}) + + Text("1").margin({top:50}).fontSize(1).id("moveText") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets new file mode 100755 index 00000000..eac0ba7d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { Driver } from '@kit.TestKit'; + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0400 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(20) + .border({ width: 3 }) + .width(100) + .height(50) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(40) + .width(200) + .height(100) + .backgroundColor(Color.Green) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + // 在组件上绑定三指触发的捏合手势 + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + // 当捏合手势触发时,可以通过回调函数获取缩放比例,从而修改组件的缩放比例 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ).overlay(this.overlayBuilder()) + .margin({top:150}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets new file mode 100755 index 00000000..8b101f95 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0410 { + @State angle: number = 0; + @State rotateValue: number = 0; + + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick(()=>{ + this.angle=this.angle+60 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + // 当旋转手势生效时,通过旋转手势的回调函数获取旋转角度,从而修改组件的旋转角度 + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + // 当旋转结束抬手时,固定组件在旋转结束时的角度 + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets new file mode 100755 index 00000000..58c75d49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets @@ -0,0 +1,82 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0420 { + @State rotateAngle: number = 0; + @State speed: number = 1; + + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.Vertical }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .onClick(()=>{ + this.rotateAngle=this.rotateAngle+120 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .rotate({ angle: this.rotateAngle }) + .gesture( + // 绑定滑动手势且限制仅在竖直方向滑动时触发 + SwipeGesture({ direction: SwipeDirection.Vertical }) + // 当滑动手势触发时,获取滑动的速度和角度,实现对组件的布局参数的修改 + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets new file mode 100755 index 00000000..8225a7db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0430 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1}) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.sonValue = "子按键触发"; + } + })) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定count为2的TapGesture + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.fatherValue = "父按键触发"; + } + })) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder(),{offset:{x:50,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets new file mode 100755 index 00000000..2a0caceb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0440 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子长按键") + .id("sonButton") + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.sonValue="子长按键触发"; + }) + ) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + + build() { + + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父长按键") + .id("fatherButton") + .fontSize(50) + // 在组件上绑定旋转布局,可以通过修改旋转角度来实现组件的旋转 + .gesture( + // 绑定可以重复触发的LongPressGesture + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.fatherValue="父长按键触发"; + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay(this.overlayBuilder(),{offset:{x:0,y:120}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets new file mode 100755 index 00000000..f8a53f9d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.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 UIAttributesFloatingLayerOverlay0450 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(40).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Text("二级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + } + @Builder + privateBuilder() { + Column() { + Text("一级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + Button("点击改变") + .id("changeTextColor") + .margin({ top: 200 }) + .fontColor("#ff6bf2de") + .onClick(() => { + this.fontColor = Color.Yellow + }) + } + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets new file mode 100755 index 00000000..cb828dbf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0460 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button") + .id("changeTextColor0460") + .onClick(() => { + this.fontColor = Color.Yellow + }) + .margin({top:30}) + }.height(300) + .backgroundColor(Color.Orange) + + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets new file mode 100755 index 00000000..bc469afa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0470 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderThree(), { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button点击改变图片") + .id("changeTextColor") + .onClick(() => { + this.fontColor = Color.Yellow + }) + .margin({top:30}) + }.height(300) + .backgroundColor(Color.Orange) + + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay(this.privateBuilderTwo(), { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay(this.privateBuilder()) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets new file mode 100755 index 00000000..143a2f3a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.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 UIAttributesFloatingLayerOverlay0480 { + @Builder + overlayBuilder(){ + Image('icon.png') + .height("50%") + .width("50%") + } + + build() { + Column() { + Image("2.png") + .height("100vp") + .width("100vp") + .overlay(this.overlayBuilder()) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets new file mode 100755 index 00000000..b4902c28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0490 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick(() => { + AlertDialog.show( + { + title: 'title', + message: 'text', + autoCancel: true, + width:550, + alignment: DialogAlignment.Bottom, + offset: { dx: 0, dy: -20 }, + gridCount: 3, + confirm: { + value: 'button', + action: () => { + console.info('Button-clicking callback') + } + }, + cancel: () => { + console.info('Closed callbacks') + }, + onWillDismiss:(dismissDialogAction: DismissDialogAction)=> { + console.info("reason=" + JSON.stringify(dismissDialogAction.reason)) + console.log("dialog onWillDismiss") + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + } + } + ) + }) + } + + } + + build() { + Column() { + }.overlay(this.privateBuilder(),{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets new file mode 100755 index 00000000..2b31fcae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under 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, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0500 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick(() => { + AlertDialog.show( + { + title: 'title', + message: 'text', + autoCancel: true, + width:550, + alignment: DialogAlignment.Bottom, + offset: { dx: 0, dy: -20 }, + gridCount: 3, + confirm: { + value: 'button', + action: () => { + console.info('Button-clicking callback') + } + }, + cancel: () => { + console.info('Closed callbacks') + }, + onWillDismiss:(dismissDialogAction: DismissDialogAction)=> { + console.info("reason=" + JSON.stringify(dismissDialogAction.reason)) + console.log("dialog onWillDismiss") + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + } + } + ) + }) + } + + } + + build() { + Column() { + }.overlay(this.privateBuilder(),{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets new file mode 100755 index 00000000..5e7e06e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0510 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("string:“!@#3%^&*()_+”",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets new file mode 100755 index 00000000..544eb848 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0520 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("“1234567890",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets new file mode 100755 index 00000000..ba2a15e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0530 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("\"qwerfdsazxcvbgtyhn'",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets new file mode 100755 index 00000000..f829f0b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.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 UIAttributesFloatingLayerOverlay0540 { + build() { + Row() { + Column() { + Image("2.png") + } + .width(300) + .height(300) + .backgroundColor(Color.Pink) + .margin({top:100}) + }.overlay("13216549546519849646518946515616516165161616165161656195415915919",{align:Alignment.Center}) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets new file mode 100755 index 00000000..453d8b51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.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 UIAttributesFloatingLayerOverlay0550 { + @Builder + overlayBuilder(){ + Image('2.png').height(300).width(300) + } + + build() { + Column() { + Text("父控件为文本") + .fontSize(40) + .overlay(this.overlayBuilder(),{offset:{x:-30,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets new file mode 100755 index 00000000..5ac12cb8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0010 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", {}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets new file mode 100755 index 00000000..1d5ed877 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0020 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.") + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets new file mode 100755 index 00000000..21cd2325 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0030 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:50,y:-50}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets new file mode 100755 index 00000000..46bcf01b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0040 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:0}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets new file mode 100755 index 00000000..fc66ca14 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0050 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", { align: Alignment.BottomEnd }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets new file mode 100755 index 00000000..84caa978 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0060 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:-50}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets new file mode 100755 index 00000000..3f0bd41c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0070 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{offset:{x:-50,y:100}}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets new file mode 100755 index 00000000..8156b323 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0080 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets new file mode 100755 index 00000000..440cd419 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0090 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.End}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets new file mode 100755 index 00000000..760a1db5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0100 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Start}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets new file mode 100755 index 00000000..e88403b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0110 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.BottomStart}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets new file mode 100755 index 00000000..6e137f6b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0120 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Bottom}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets new file mode 100755 index 00000000..070e2737 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0130 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets new file mode 100755 index 00000000..da8e8efa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0140 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.TopStart}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets new file mode 100755 index 00000000..36fe5dfb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0150 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.TopEnd}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets new file mode 100755 index 00000000..99a51141 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0160 { + build() { + Column() { + Image('2.png') + .width(300) + .height(240) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets new file mode 100755 index 00000000..69ca40cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0170 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets new file mode 100755 index 00000000..2ce63f22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UiAttributesFloatingLayerInterface0180 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100}) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets new file mode 100755 index 00000000..d83d6982 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.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 UIAttributesBackgroundSelfDrawing0010 { + + @Builder BackgroundBuilder() { + RelativeContainer(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.width(400).height(400).backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets new file mode 100755 index 00000000..302458cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.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 UIAttributesBackgroundSelfDrawing0020 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets new file mode 100755 index 00000000..7f9c4e5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.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 UIAttributesBackgroundSelfDrawing0030 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets new file mode 100755 index 00000000..6d19d321 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.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 UIAttributesBackgroundSelfDrawing0050 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets new file mode 100755 index 00000000..ba41cc85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0060 { + + @Builder BackgroundBuilder() { + Button() { + }.width(400).height(400) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets new file mode 100755 index 00000000..e7138212 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesBackgroundSelfDrawing0070 { + + + @Builder BackgroundBuilder() { + Progress({value:0}).width(400).height(400).backgroundColor(Color.Green) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets new file mode 100755 index 00000000..bfea97a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.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 UIAttributesBackgroundSelfDrawing0080 { + @State text: string = '点击'; + + @Builder BackgroundBuilder() { + Column(){ + Button(this.text) + .onClick(()=>{ + this.text = '已点击'; + }) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + .id('UIAttributesBackgroundSelfDrawing0080') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets new file mode 100755 index 00000000..da5c19d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.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 UIAttributesBackgroundSelfDrawing0090 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets new file mode 100755 index 00000000..d273a6c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.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 UIAttributesBackgroundSelfDrawing0100 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeyej')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets new file mode 100755 index 00000000..dbac9d91 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.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 UIAttributesBackgroundSelfDrawing0110 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.fly')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets new file mode 100755 index 00000000..a39981ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.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 UIAttributesBackgroundSelfDrawing0120 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets new file mode 100755 index 00000000..43472abd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.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 UIAttributesBackgroundSelfDrawing0130 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + Text("hello world").width(150).height(150) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomEnd}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets new file mode 100755 index 00000000..648f7233 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.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 UIAttributesBackgroundSelfDrawing0150 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets new file mode 100755 index 00000000..f4f78a65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.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 UIAttributesBackgroundSelfDrawing0160 { + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets new file mode 100755 index 00000000..44067e0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.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 UIAttributesBackgroundSelfDrawing0170 { + + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .linearGradient({ + angle: 90, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + }) + .backgroundImage($r('app.media.img')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets new file mode 100755 index 00000000..b5eb1662 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.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 UIAttributesBackgroundSelfDrawing0180 { + + + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.openeye')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .backgroundImage($r('app.media.img')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets new file mode 100755 index 00000000..28f64aca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.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 UIAttributesFloatingLayerOverlay0010 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets new file mode 100755 index 00000000..4fd0bbf2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.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 UIAttributesFloatingLayerOverlay0020 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets new file mode 100755 index 00000000..6850d6d8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.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 UIAttributesFloatingLayerOverlay0030 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { offset:{x:0,y:-20}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets new file mode 100755 index 00000000..327608ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets @@ -0,0 +1,128 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0040 { + + @Builder OverlayNode() { + Column() { + Image($r('app.media.openeye')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode2(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode2() { + Column() { + Image($r('app.media.openeye')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode3(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode3() { + Column() { + Image($r('app.media.openeye')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode4(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode4() { + Column() { + Image($r('app.media.openeye')) + .width(270) + .height(270) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode5(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(270).height(270).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode5() { + Column() { + Image($r('app.media.openeye')) + .width(250) + .height(250) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode6(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(250).height(250).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode6() { + Column() { + Image($r('app.media.openeye')) + .width(230) + .height(230) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode7(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(230).height(230).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode7() { + Column() { + Image($r('app.media.openeye')) + .width(210) + .height(210) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode8(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(210).height(210).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode8() { + Column() { + Image($r('app.media.openeye')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode9(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode9() { + Column() { + Image($r('app.media.openeye')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets new file mode 100755 index 00000000..28629b0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.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 UIAttributesFloatingLayerOverlay0050 { + + @Builder OverlayNode() { + Column() { + Text('overlay 1') + .width(300) + .height(300) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(300).height(300).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(150) + .height(150) + .objectFit(ImageFit.Fill) + }.width(150).height(150).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets new file mode 100755 index 00000000..f74849fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.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 UIAttributesFloatingLayerOverlay0060 { + + @Builder OverlayNode() { + Column() { + Image($r('app.media.openeye')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode1(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + + @Builder OverlayNode1() { + Column() { + Image($r('app.media.openeye')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode2(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode2() { + Column() { + Image($r('app.media.openeye')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode3(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + @Builder OverlayNode3() { + Column() { + Image($r('app.media.openeye')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets new file mode 100755 index 00000000..265fbf23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.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 UIAttributesFloatingLayerOverlay0070 { + @Builder OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) + }.width(400).height(400).backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets new file mode 100755 index 00000000..ec6a4bd0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.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 { Popup, PopupIconOptions, PopupTextOptions } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0080 { + @Builder OverlayNode() { + Column() { + // popup 自定义高级组件 + Popup({ + //PopupIconOptions 类型设置图标内容 + direction: Direction.Ltr, + icon: { + image: $r('app.media.openeye'), + width: 32, + height: 32, + fillColor: Color.White, + borderRadius: 16, + } as PopupIconOptions, + // PopupTextOptions 类型设置文字内容 + title: { + text: 'This is a popup with PopupOptions', + fontSize: 20, + fontColor: Color.Black, + fontWeight: FontWeight.Normal, + + } as PopupTextOptions, + //PopupTextOptions 类型设置文字内容 + message: { + text: 'This is the message', + fontSize: 15, + fontColor: Color.Black, + } as PopupTextOptions, + showClose: true, + onClose: () => { + console.info('close Button click') + }, + }) + + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + .backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets new file mode 100755 index 00000000..4b34b579 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.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. + */ +import { Popup, PopupIconOptions, PopupTextOptions, prompt } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0090 { + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0090_001') + .onClick(()=>{ + prompt.showDialog({ + title: 'Title Info', + message: 'Message Info', + buttons: [ + { + text: 'button', + color: '#666666' + }, + ], + }); + }) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets new file mode 100755 index 00000000..930d898b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.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. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0100 { + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0100_001') + .onClick(()=>{ + try { + promptAction.showDialog({ + title: 'Title Info', + message: 'Message Info', + buttons: [ + { + text: 'button1', + color: '#000000' + }, + { + text: 'button2', + color: '#000000' + } + ], + }) + .then(data => { + console.info('showDialog success, click button: ' + data.index); + }) + .catch((err:Error) => { + console.info('showDialog error: ' + err); + }) + } catch (error) { + }; + }) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets new file mode 100755 index 00000000..b3a35f14 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0110 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0110_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets new file mode 100755 index 00000000..4a217528 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0120 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .backgroundColor(Color.White) + .width(180).height(180) + + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + .id('UIAttributesFloatingLayerOverlay0120_001') + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets new file mode 100755 index 00000000..d6d12c82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0130 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0130_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets new file mode 100755 index 00000000..cb096bd6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0140 { + @Builder OverlayNode() { + Column() { + Text("overlayNode").fontSize(20).fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0140_001') + .backgroundColor(Color.White) + .width(180).height(180) + .draggable(true) + .dragPreviewOptions({ mode: [ DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS ] }) + .onDragStart(()=>{}) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets new file mode 100755 index 00000000..5b372236 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.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. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0150 { + @State color1: Color = Color.Red; + @State color2: Color = Color.Red; + @Builder OverlayNode() { + Column() { + Button('1').margin({top:20}).backgroundColor(this.color1).onClick(()=>{ + if (this.color1 == Color.Red) { + this.color1 = Color.Blue; + } else { + this.color1 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_001') + Button('1').margin({top:20}).backgroundColor(this.color2).onClick(()=>{ + if (this.color2 == Color.Red) { + this.color2 = Color.Blue; + } else { + this.color2 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_002') + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets new file mode 100755 index 00000000..14f05cb1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.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. + */ +import { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0160 { + @State color: Color = Color.Blue; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .defaultFocus(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0160_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets new file mode 100755 index 00000000..b669fc0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0170 { + @State color: Color = Color.Red; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0170_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets new file mode 100755 index 00000000..307eff64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.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 { promptAction } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0180 { + @State color: Color = Color.Red; + @Builder OverlayNode() { + Stack() { + Button('1') + .margin({top:20}) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0180_001') + }.width(180).height(180).backgroundColor(Color.White) + + } + + + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets new file mode 100755 index 00000000..699446e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.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. + */ +import { Popup, PopupIconOptions, PopupTextOptions } from '@kit.ArkUI' + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0190 { + @Builder OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) + }.width(400).height(400).backgroundColor(Color.Red) + } + + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets new file mode 100755 index 00000000..4ed70f1b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.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 UIAttributesFloatingLayerOverlay0200 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Text('This is Main').fontSize(20) + .width(360).height(360).margin({bottom:10}) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + Text('This is Main').fontSize(20) + .width(360).height(360) + .backgroundColor(Color.Yellow) + .overlay(this.OverlayNode(), { align: Alignment.Center }).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets new file mode 100755 index 00000000..964e2230 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.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 UIAttributesFloatingLayerOverlay0210 { + + @Builder OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + + build() { + Column() { + Image($r('app.media.openeye')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay(this.OverlayNode(), { offset:{x:0,y:0}}).backgroundColor(Color.Black) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets new file mode 100755 index 00000000..e62684e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.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. + */ + +@Entry +@Component +struct UIAttributesFloatingLayerOverlay0220 { + @State handlePopup: boolean = false; + @State handlePopup1: boolean = false; + + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 }) + .id('overlay0220_button_02') + .onClick(() => { + this.handlePopup1 = !this.handlePopup1; + }) + .fontSize(20) + .fontColor(Color.Black) + .bindPopup(this.handlePopup1, { + message: 'Options2', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup1 = !this.handlePopup1 + console.info('confirm Button click') + } + } + }) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 }) + } + + build() { + Column() { + Button('show dialog') + .id('overlay0220_button_01') + .onClick(() => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }, + // 第二个按钮 + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }, + onStateChange: (e) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } + }).overlay(this.OverlayNode(), { align: Alignment.Start }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets new file mode 100755 index 00000000..046fbf74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.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 UIAttributesFloatingLayerOverlay0230 { + @State handlePopup: boolean = false; + + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 }) + .fontSize(20) + .fontColor(Color.Black) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 }) + } + + build() { + Column() { + Button('show dialog') + .id('overlay0230_button_01') + .onClick(() => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: true, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }, + // 第二个按钮 + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }, + onStateChange: (e) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } + }).overlay(this.OverlayNode(), { align: Alignment.Start }) + }.width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets new file mode 100755 index 00000000..69ba518c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0010 { + build() { + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(true) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets new file mode 100755 index 00000000..e875eda9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0020 { + build() { + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(false) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.ets new file mode 100755 index 00000000..944bc3f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030.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 UIAttributesSelectedStyle0030 { + @State isSelect: boolean = true; + + build() { + Column() { + Checkbox({ name: 'checkbox', group: 'checkboxGroup' }) + .select(false) + .selectedColor(0xed6f21) + .shape(CheckBoxShape.CIRCLE) + .onChange((value: boolean) => { + console.info('Checkbox change is' + value) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0030') + .onClick(() => { + this.isSelect = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.ets new file mode 100755 index 00000000..fbf20e30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040.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 UIAttributesSelectedStyle0040 { + build() { + Scroll() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(true) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.ets new file mode 100755 index 00000000..781ab373 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050.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 UIAttributesSelectedStyle0050 { + build() { + Scroll() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(false) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets new file mode 100755 index 00000000..2335a340 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060.ets @@ -0,0 +1,71 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0060 { + @State isSelectAll: boolean = true; + + build() { + Column() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + CheckboxGroup({ group: 'checkboxGroup' }) + .checkboxShape(CheckBoxShape.ROUNDED_SQUARE) + .selectedColor('#007DFF') + .selectAll(this.isSelectAll) + .onChange((itemName: CheckboxGroupResult) => { + console.info("checkbox group content" + JSON.stringify(itemName)) + }) + Text('Select All').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + } + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox1', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox1 change is' + value) + }) + Text('Checkbox1').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox2', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox2 change is' + value) + }) + Text('Checkbox2').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Checkbox({ name: 'checkbox3', group: 'checkboxGroup' }) + .selectedColor('#007DFF') + .shape(CheckBoxShape.ROUNDED_SQUARE) + .onChange((value: boolean) => { + console.info('Checkbox3 change is' + value) + }) + Text('Checkbox3').fontSize(14).lineHeight(20).fontColor('#182431').fontWeight(500) + }.margin({ left: 36 }) + + Button('Click') + .id('UIAttributesSelectedStyle0060') + .onClick(() => { + this.isSelectAll = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets new file mode 100755 index 00000000..21944f24 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.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 UIAttributesSelectedStyle0070 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets new file mode 100755 index 00000000..fc474df5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.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 UIAttributesSelectedStyle0080 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets new file mode 100755 index 00000000..453be80e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.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 UIAttributesSelectedStyle0090 { + @State isChecked: boolean = true; + + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(this.isChecked) + .height(50) + .width(50) + .onChange((isChecked: boolean) => { + console.log('Radio status is ' + isChecked) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0090') + .onClick(() => { + this.isChecked = false; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets new file mode 100755 index 00000000..d73d6fdd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0100 { + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets new file mode 100755 index 00000000..ff086f11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesSelectedStyle0110 { + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: false }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets new file mode 100755 index 00000000..f7144706 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.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 UIAttributesSelectedStyle0120 { + @State isOn: boolean = true; + build() { + Column({ space: 10 }) { + Toggle({ type: ToggleType.Switch, isOn: this.isOn }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean) => { + console.info('Component status:' + isOn) + }) + + Button('Click') + .id('UIAttributesSelectedStyle0120') + .onClick(() => { + this.isOn = false; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets new file mode 100755 index 00000000..332b4294 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.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 UIAttributesSelectedStyle0130 { + @State select: boolean = true; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0130') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets new file mode 100755 index 00000000..ad100a77 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.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 UIAttributesSelectedStyle0140 { + @State select: boolean = false; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0140') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets new file mode 100755 index 00000000..b2fb4bac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.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 UIAttributesSelectedStyle0150 { + @State select: boolean = true; + + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }) + .selected(this.select) + .selectIcon(this.select) + } + } + + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0150_1') + + Button('Click') + .id('UIAttributesSelectedStyle0150_2') + .onClick(() => { + this.select = false; + }) + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets new file mode 100755 index 00000000..fa6e9417 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010.ets @@ -0,0 +1,30 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0010 { + build() { + Column() { + Button('Button') + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets new file mode 100755 index 00000000..2a23fac4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020.ets @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0020 { + build() { + Column() { + Button('Button') + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.ets new file mode 100755 index 00000000..7e12678a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030.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 UIAttributesStateStylesInterface0030 { + build() { + Column() { + Button('Button') + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + .id('UIAttributesStateStylesInterface0030') + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.ets new file mode 100755 index 00000000..53ea0a44 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040.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 UIAttributesStateStylesInterface0040 { + build() { + Column() { + Button('Button') + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + } + }) + .margin(20) + .id('UIAttributesStateStylesInterface0040') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.ets new file mode 100755 index 00000000..c3884595 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050.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 UIAttributesStateStylesInterface0050 { + build() { + Column() { + Button('Button') + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + .enabled(false) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.ets new file mode 100755 index 00000000..60c7c6e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060.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 UIAttributesStateStylesInterface0060 { + build() { + Column() { + Button('Button') + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.ets new file mode 100755 index 00000000..9725fbee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070.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 UIAttributesStateStylesInterface0070 { + build() { + Column() { + Button('Button') + .id('UIAttributesStateStylesInterface0070') + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + .margin(20) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.ets new file mode 100755 index 00000000..b99d83fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080.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 UIAttributesStateStylesInterface0080 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .width('80%') + .height(500) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.ets new file mode 100755 index 00000000..6126e1c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090.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 UIAttributesStateStylesInterface0090 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0090') + .enabled(false) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.ets new file mode 100755 index 00000000..3a8bc82c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100.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 UIAttributesStateStylesInterface0100 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0100') + .enabled(false) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.ets new file mode 100755 index 00000000..927c0c59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110.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 UIAttributesStateStylesInterface0110 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .enabled(false) + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.ets new file mode 100755 index 00000000..d4c0e9af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120.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 UIAttributesStateStylesInterface0120 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.ets new file mode 100755 index 00000000..c48f0bc9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130.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 UIAttributesStateStylesInterface0130 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.ets new file mode 100755 index 00000000..0188a53f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140.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 UIAttributesStateStylesInterface0140 { + build() { + List() { + ForEach([1, 2, 3, 4, 5], (item: number) => { + ListItem() { + Text('' + item) + .width('100%').height(200).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) + } + }, (item: string) => item) + } + .id('UIAttributesStateStylesInterface0140') + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + .width('80%') + .height(500) + .friction(0.7) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets new file mode 100755 index 00000000..906f8bd5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150.ets @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIAttributesStateStylesInterface0150 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.ets new file mode 100755 index 00000000..7861c841 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160.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 UIAttributesStateStylesInterface0160 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0160') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + clicked: { + .backgroundColor('#ff27d954') + }, + focused: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.ets new file mode 100755 index 00000000..afcd125f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170.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 UIAttributesStateStylesInterface0170 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0170') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + disabled: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.ets new file mode 100755 index 00000000..7c2f7af3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180.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 UIAttributesStateStylesInterface0180 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .enabled(false) + .stateStyles({ + disabled: { + .backgroundColor('#4b8a8686') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.ets new file mode 100755 index 00000000..07092809 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190.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 UIAttributesStateStylesInterface0190 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .defaultFocus(true) + .stateStyles({ + focused: { + .backgroundColor('#ffffeef0') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.ets new file mode 100755 index 00000000..008b9d07 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200.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 UIAttributesStateStylesInterface0200 { + build() { + Column() { + Text('Text') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + normal: { + .backgroundColor('#ff2787d9') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.ets new file mode 100755 index 00000000..4ad28149 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210.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 UIAttributesStateStylesInterface0210 { + build() { + Column() { + Text('Text') + .id('UIAttributesStateStylesInterface0210') + .fontSize(50) + .fontColor(Color.White) + .stateStyles({ + pressed: { + .backgroundColor('#ff707070') + } + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets new file mode 100755 index 00000000..26c544ff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.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 UIComponentMediaImageMask0010 { + @State borderW: number = 1; + @State borderC: number = Color.White; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('change border').onClick(() => { + this.borderW = 2; + this.borderC = Color.Pink; + }).id('mask0010_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets new file mode 100755 index 00000000..b48b62d3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.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 UIComponentMediaImageMask0020 { + @State isShow: boolean = true + @State borderW: number = 1; + @State borderC: number = Color.White; + @State changeAppear: string = '点我卸载挂载组件' + + build() { + Row() { + Column() { + if (this.isShow) { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + Button(this.changeAppear).onClick(() => { + this.borderW = 2; + this.borderC = Color.Pink; + this.isShow = !this.isShow + }).id('mask0020_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets new file mode 100755 index 00000000..3012e1a8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.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 UIComponentMediaImageMask0050 { + @State widthSize: number = 200 + @State heightSize: number = 200 + @State flag: boolean = true + + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 }) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .animation({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal + }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('start Animation').onClick(() => { + if (this.flag) { + this.widthSize = 150 + this.heightSize = 60 + } else { + this.widthSize = 250 + this.heightSize = 100 + } + this.flag = !this.flag + }).id('mask0050_button_01').margin(5) + }.width('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets new file mode 100755 index 00000000..3c4dd7b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.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 UIComponentMediaImageMask00100 { + @State widthSize: number = 100; + @State heightSize: number = 100; + + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 }) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .defaultFocus(true) + .obscured([ObscuredReasons.PLACEHOLDER]) + Image($r('app.media.app_icon')) + .width(this.widthSize) + .height(this.heightSize) + .margin(10) + .obscured([ObscuredReasons.PLACEHOLDER]) + }.width('100%') + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets new file mode 100755 index 00000000..44d89000 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.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 UIComponentMediaImageMask0110 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | null = [ObscuredReasons.PLACEHOLDER]; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick(() => { + this.widthSize = this.widthSize + 50; + this.heightSize = this.heightSize + 50; + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = null; + } + }).id('mask0110_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets new file mode 100755 index 00000000..0d8476e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.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 UIComponentMediaImageMask0120 { + private arr: number[] = [0, 1, 2, 3, 4, 5, 6]; + private scroller: Scroller = new Scroller(); + + build() { + Column() { + List({ space: 20, initialIndex: 0, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { + Text('item is ' + item) + Image('icon.png') + .width(100) + .height(150) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + } + }, (item: string) => item) + } + .listDirection(Axis.Vertical) // 排列方向 + .scrollBar(BarState.Off) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: 0xFFFFFF, + startMargin: 20, + endMargin: 20 + }) // 每行之间的分界线 + .edgeEffect(EdgeEffect.Spring) // 边缘效果设置为Spring + .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => { + console.info('first' + firstIndex) + console.info('last' + lastIndex) + console.info('center' + centerIndex) + }) + .width('90%') + .height('60%') + + Button('scroll Bottom').onClick(() => { + this.scroller.scrollToIndex(ScrollAlign.END); + }).id('mask0120_button_01').margin(10) + } + .width('100%') + .height('100%') + .padding({ top: 5 }) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets new file mode 100755 index 00000000..0804bdda --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.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 UIComponentMediaImageMask0260 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | null = [ObscuredReasons.PLACEHOLDER]; + + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick(() => { + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = null; + } + }).id('mask0260_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.ets new file mode 100755 index 00000000..342d161b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010.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 { CommonModifier } from '@kit.ArkUI' + +class MyModifier extends CommonModifier { + applyNormalAttribute(instance: CommonAttribute): void { + super.applyNormalAttribute?.(instance); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0010 { + @State myModifier: CommonModifier = new MyModifier().width('100vp').height('200vp').backgroundColor(Color.Green).margin(20) + build() { + Column() { + Button('Change') + .id('UiAttributesAttributeUpdaterModifier0010') + .onClick(()=>{ + this.myModifier = new MyModifier().width('50vp').height('50vp').backgroundColor(Color.Orange).margin(10) + }) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + Column().attributeModifier(this.myModifier) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.ets new file mode 100755 index 00000000..18e2a50c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020.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. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier extends AttributeUpdater { + Modifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.Modifier) { + instance.backgroundColor(Color.Red); + } + } + + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0020 { + @State myModifier: MyButtonModifier = new MyButtonModifier() + + build() { + Column() { + Button('Button') + .id('UiAttributesAttributeUpdaterModifier0020') + .attributeModifier(this.myModifier) + .onClick(() => { + this.myModifier.Modifier = true; + }) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.myModifier.attribute?.backgroundColor(Color.Green) + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.ets new file mode 100755 index 00000000..e58482c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030.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. + */ + +class MyButtonModifier implements AttributeModifier { + isPress: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isPress) { + instance.backgroundColor(Color.Red); + } else { + instance.backgroundColor(null); + } + } + + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange); + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0030 { + @State modifier: MyButtonModifier = new MyButtonModifier(); + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0030') + .attributeModifier(this.modifier) + .onClick(()=>{this.modifier.isPress = true}) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.ets new file mode 100755 index 00000000..2423e5d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040.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. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier:boolean = false; + + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Black).width('100vp') + } + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Red).width('200vp'); + } else { + instance.backgroundColor(Color.Red).width('100vp'); + } + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0040 { + @State modifier: ButtonModifier = new ButtonModifier() + + build() { + Row() { + Column() { + Button("StateManagement update color to red") + .id('UiAttributesAttributeUpdaterModifier0040') + .attributeModifier(this.modifier) + .onClick(()=>{this.modifier.isModifier = !this.modifier.isModifier}) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.ets new file mode 100755 index 00000000..6533cf62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050.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. + */ +import { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Red); + } else { + instance.backgroundColor(Color.Yellow); + } + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0050 { + @State modifier: ButtonModifier = new ButtonModifier() + @State color: Color | null = null; + + build() { + Row() { + Column() { + Button("StateManagement update color to red or yellow") + .margin(20) + .id('UiAttributesAttributeUpdaterModifier0050') + .attributeModifier(this.modifier) + .onClick(() => { + this.modifier.isModifier = !this.modifier.isModifier + }) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.modifier.attribute?.backgroundColor(Color.Green) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.ets new file mode 100755 index 00000000..2b0ae382 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060.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 { AttributeUpdater } from '@kit.ArkUI' + +class ButtonModifier extends AttributeUpdater { + isModifier: boolean = false; + + applyNormalAttribute(instance: ButtonAttribute): void { + if (this.isModifier) { + instance.backgroundColor(Color.Orange); + } + } + applyPressedAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Orange) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0060 { + @State modifier: ButtonModifier = new ButtonModifier() + @State color: Color | null = null; + + build() { + Row() { + Column() { + Button("StateManagement update color to red or yellow") + .margin(20) + .id('UiAttributesAttributeUpdaterModifier0060') + .attributeModifier(this.modifier) + .onClick(() => {this.modifier.isModifier = true}) + Button('set color direct to green') + .id('set color direct to green') + .onClick(() => { + this.modifier.attribute?.backgroundColor(Color.Green) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.ets new file mode 100755 index 00000000..82a9df44 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070.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 UiAttributesAttributeUpdaterModifier0070 { + @State type: ButtonType = ButtonType.Normal; + @State buttonStyle: ButtonStyleMode = ButtonStyleMode.NORMAL; + @State role: ButtonRole = ButtonRole.NORMAL; + @State labelStyle: LabelStyle|null = null; + + build() { + Row() { + Column() { + Button('hello world') + .width(200) + .height(200) + .padding(20) + .margin(20) + .type(this.type) + .buttonStyle(this.buttonStyle) + .controlSize(ControlSize.NORMAL) + .role(this.role) + .labelStyle(this.labelStyle) + .id('UiAttributesAttributeUpdaterModifier0070') + Button('1') + .id('1') + .onClick(() => { + this.type = ButtonType.Circle; + }) + Button('2') + .id('2') + .onClick(() => { + this.buttonStyle = ButtonStyleMode.TEXTUAL; + }) + Button('3') + .id('3') + .onClick(() => { + this.role = ButtonRole.ERROR + }) + Button('4') + .id('4') + .onClick(() => { + this.labelStyle = { + overflow:TextOverflow.Clip, + maxLines:1, + minFontSize:20, + maxFontSize:20, + font:{ + size:20, + weight:FontWeight.Bolder, + family:'cursive', + style:FontStyle.Italic + } + } + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.ets new file mode 100755 index 00000000..088e290e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080.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 UiAttributesAttributeUpdaterModifier0080 { + @State flexBase: string | number = 'auto'; + @State flexGrows: number = 0; + @State flexShrinks: number = 0; + @State alignSel: ItemAlign = ItemAlign.Auto; + + build() { + Row() { + Column() { + Flex() + .width(100) + .height(100) + .backgroundColor(Color.Red) + .flexBasis(this.flexBase) + .flexGrow(this.flexGrows) + .flexShrink(this.flexShrinks) + .alignSelf(this.alignSel) + Button('1') + .id('1') + .onClick(() => { + this.flexBase = 200; + }) + Button('2') + .id('2') + .onClick(() => { + this.flexGrows = 2; + }) + Button('3') + .id('3') + .onClick(() => { + this.flexShrinks = 2; + }) + Button('4') + .id('4') + .onClick(() => { + this.alignSel = ItemAlign.Start + }) + } + .width(400) + .height(400) + .backgroundColor(Color.Green) + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.ets new file mode 100755 index 00000000..7288ea96 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090.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. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0090 { + @State data: number[] = []; + @State items: number[] = []; + @State rowsTemplate: string = '1fr 1fr 1fr 1fr 1fr 1fr'; + @State columnsGap: number = 10; + @State columnsTemplate: string = '1fr 1fr 1fr 1fr 1fr 1fr'; + + aboutToAppear(): void { + for (let i = 0; i < 100; i++) { + this.data.push(i) + this.items.push(this.getSize()) + } + } + + getSize() { + let ret = Math.floor(Math.random() * 5) + return Math.max(1, ret) + } + + build() { + Column() { + Grid() { + ForEach(this.data, (item: number) => { + GridItem() { + Column() { + Column().height(20).backgroundColor('#D5D5D5').width('100%') + Text('这是一段文字。') + .flexGrow(1).width('100%').align(Alignment.TopStart) + .backgroundColor('#F7F7F7') + Column().height(30).backgroundColor('#707070').width('100%') + } + } + .border({ color: Color.Black, width: 1 }) + }) + } + .focusable(false) + .columnsTemplate(this.columnsTemplate) + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(10) + .width('100%') + .height(300) + .margin(20) + Button('1') + .width(300) + .margin(20) + .id('1') + .onClick(() => { + this.rowsTemplate = '1fr 1fr 2fr'; + }) + Button('2') + .margin(20) + .width(300) + .id('2') + .onClick(() => { + this.columnsGap = 20; + }) + Button('3') + .width(300) + .margin(20) + .id('3') + .onClick(() => { + this.columnsTemplate = '1fr 1fr 2fr'; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.ets new file mode 100755 index 00000000..2ed2dbd6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100.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 image from '@ohos.multimedia.image' +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0100 { + @State copyOption: CopyOptions = CopyOptions.None; + @State renderMode: ImageRenderMode = ImageRenderMode.Original; + @State fitOriginalSize: boolean = false; + @State image: string | undefined = undefined; + @State width1: number| null = 200; + @State height1: number| null = 500; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column({space: 10}) { + Image(this.image) + .width(this.width1) + .height(this.height1) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .copyOption(this.copyOption) + .renderMode(this.renderMode) + .fitOriginalSize(this.fitOriginalSize) + Button('1') + .id('1') + .onClick(() => { + this.copyOption = CopyOptions.InApp; + }) + Button('2') + .id('2') + .onClick(() => { + this.renderMode = ImageRenderMode.Template; + }) + Button('3') + .id('3') + .onClick(() => { + this.fitOriginalSize = true; + this.width1 = null; + this.height1 = null; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets new file mode 100755 index 00000000..1008ef84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 image from '@ohos.multimedia.image' +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0110 { + @State listDirection: Axis = Axis.Vertical; + @State scrollBar: BarState = BarState.Off; + @State edgeEffect: EdgeEffect = EdgeEffect.Spring; + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] + + build() { + Flex() { + Column(){ + Button('1') + .id('1') + .onClick(() => { + this.listDirection = Axis.Horizontal; + }) + Button('2') + .id('2') + .onClick(() => { + this.scrollBar = BarState.Auto; + }) + Button('3') + .id('3') + .onClick(() => { + this.edgeEffect = EdgeEffect.None; + }) + } + Flex() { + List({ space: 20, initialIndex: 0 }) { + ForEach(this.arr, () => { + ListItem() { + Text('hello') + .width('100%') + .height(20) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.width(100) + }) + } + .listDirection(this.listDirection) + .scrollBar(this.scrollBar) + .edgeEffect(this.edgeEffect) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: '0xFFFFFF', + startMargin: 20, + endMargin: 20 + }) + }.margin(20) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.ets new file mode 100755 index 00000000..1b917279 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120.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. + */ + +class MyButtonModifier1 implements AttributeModifier { + color:Color = Color.Brown + applyNormalAttribute(instance: ButtonAttribute): void { + instance.backgroundColor(this.color) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0120 { + @State modifier: MyButtonModifier1 = new MyButtonModifier1(); + + build() { + Row() { + Column() { + Button("第一个Button") + .margin({bottom:20}) + .backgroundColor(Color.Brown) + Button("第二个Button") + .margin({bottom:20}) + .attributeModifier(this.modifier) + Button('set color red direct to native') + .onClick(()=>{ + this.modifier.color = Color.Red + }) + .id('UiAttributesAttributeUpdaterModifier0120') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.ets new file mode 100755 index 00000000..bde3aedc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130.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 UiAttributesAttributeUpdaterModifier0130 { + @State titleMode: NavigationTitleMode = NavigationTitleMode.Free; + @State hideTitleBar: boolean = false; + @State hideToolBar: boolean = false; + @State array: ToolbarItem[] = [{ value: 'toolBar' }] + + build() { + Column({ space: 10 }) { + Navigation() + .title('hello world') + .toolbarConfiguration(this.array) + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .titleMode(this.titleMode) + .hideTitleBar(this.hideTitleBar) + .hideToolBar(this.hideToolBar) + Button('1') + .id('1') + .onClick(() => { + this.titleMode = NavigationTitleMode.Mini; + }) + Button('2') + .id('2') + .onClick(() => { + this.hideTitleBar = true; + }) + Button('3') + .id('3') + .onClick(() => { + this.hideToolBar = true; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets new file mode 100755 index 00000000..03c64696 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 UiAttributesAttributeUpdaterModifier0140 { + @State index: number = 0; + @State autoPlay: boolean = false; + @State duration: number = 2000; + @State interval: number = 4000; + + + private swiperController: SwiperController = new SwiperController() + private data: MyDataSource = new MyDataSource([]) + + aboutToAppear(): void { + let list: number[] = [] + for (let i = 0; i <= 10; i++) { + list.push(i); + } + this.data = new MyDataSource(list) + } + + build() { + Column({ space: 10 }) { + Swiper(this.swiperController) { + LazyForEach(this.data, (item: string) => { + Text('index: '+item.toString()) + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + }, (item: string) => item) + } + .cachedCount(2) + .index(this.index) + .autoPlay(this.autoPlay) + .interval(this.interval) + .loop(true) + .duration(this.duration) + .itemSpace(0) + Button('1') + .id('1') + .onClick(() => { + this.index = 2; + }) + Button('2') + .id('2') + .onClick(() => { + this.autoPlay = false; + }) + Button('3') + .id('3') + .onClick(() => { + this.autoPlay = true; + this.interval = 2000; + }) + Button('4') + .id('4') + .onClick(() => { + this.duration = 2000; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.ets new file mode 100755 index 00000000..8955bbd6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150.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 UiAttributesAttributeUpdaterModifier0150 { + @State type: InputType = InputType.Normal; + @State caretColor: ResourceColor = '#007DFF'; + @State placeholderColor: ResourceColor = ThemeColorMode.SYSTEM; + + build() { + Column({ space: 10 }) { + TextInput({placeholder:'这是提示字:'}) + .width(200) + .height(200) + .padding(20) + .margin(20) + .type(this.type) + .caretColor(this.caretColor) + .placeholderColor(this.placeholderColor) + .id('UiAttributesAttributeUpdaterModifier0150') + Button('1') + .id('1') + .onClick(() => { + this.type = InputType.Password; + }) + Button('2') + .id('2') + .onClick(() => { + this.placeholderColor = Color.Red; + }) + Button('3') + .id('3') + .onClick(() => { + this.caretColor = Color.Green; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.ets new file mode 100755 index 00000000..9292e2e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160.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 UiAttributesAttributeUpdaterModifier0160 { + @State zIndex1: number | null = null; + @State zIndex2: number | null = null; + @State zIndex3: number | null = null; + + build() { + Column({ space: 10 }) { + Stack() { + Text(`zIndex1:${this.zIndex1}`).size({ width: '40%', height: '30%' }).backgroundColor(0xbbb2cb).zIndex(this.zIndex1) + Text(`zIndex2:${this.zIndex2}`).size({ width: '70%', height: '50%' }).backgroundColor(0xd2cab3).align(Alignment.TopStart).zIndex(this.zIndex2) + Text(`zIndex3:${this.zIndex3}`) .size({ width: '90%', height: '80%' }).backgroundColor(0xc1cbac).align(Alignment.TopStart).zIndex(this.zIndex3) + } + + Button('1') + .id('1') + .onClick(() => { + this.zIndex1 = 2; + }) + Button('2') + .id('2') + .onClick(() => { + this.zIndex2 = 2; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.ets new file mode 100755 index 00000000..286724b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170.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 UiAttributesAttributeUpdaterModifier0170 { + @State position1: Position | Edges | LocalizedEdges | null = null; + @State markAnchor1: Position | LocalizedPosition | null = null; + @State offset1: Position | Edges | LocalizedEdges | null = null; + + build() { + Flex() { + Column() + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Red) + .position(this.position1) + .markAnchor(this.markAnchor1) + .offset(this.offset1) + Button('1') + .id('1') + .onClick(() => { + this.position1 = { bottom: 0, left: 30 }; + }) + Button('2') + .id('2') + .onClick(() => { + this.markAnchor1 = { x: 25, y: 25 }; + }) + Button('3') + .id('3') + .onClick(() => { + this.offset1 = { x: 15, y: 30 }; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets new file mode 100755 index 00000000..8d2e403d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180.ets @@ -0,0 +1,106 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; +import { matrix4 } from '@kit.ArkUI'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0180 { + @State rotate1: RotateOptions | null = null; + @State translate1: TranslateOptions | null = null; + @State scale1: ScaleOptions | null = null; + @State image: string | undefined = undefined; + @State transform1: object | null = null; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)); + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release(); + return createPixelMap; + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')); + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column({ space: 10 }) { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .rotate(this.rotate1) + .translate(this.translate1) + .scale(this.scale1) + .transform(this.transform1) + Button('1') + .id('1') + .onClick(() => { + this.rotate1 = { + x: 0, + y: 0, + z: 1, + centerX: '50%', + centerY: '50%', + angle: 300 + }; + }) + Button('2') + .id('2') + .onClick(() => { + this.translate1 = { x: 100, y: 10 }; + }) + Button('3') + .id('3') + .onClick(() => { + this.scale1 = { x: 2, y: 0.5 }; + }) + Button('4') + .id('4') + .onClick(() => { + this.transform1 = matrix4.identity(); + this.translate1 = { x: 50, y: 50 }; + this.scale1 = { x: 1.5, y: 1 }; + this.rotate1 = { + x: 0, + y: 0, + z: 1, + angle: 60 + } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets new file mode 100755 index 00000000..8006166c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190.ets @@ -0,0 +1,151 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; +import { matrix4 } from '@kit.ArkUI'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0190 { + @State image: string | undefined = undefined; + @State blur1: number = 0; + @State backdropBlur1: number = 0; + @State backgroundImage1: image.PixelMap | ResourceStr | null = null; + @State backgroundImageSize1: SizeOptions | ImageSize = ImageSize.Auto; + @State shadow1: ShadowOptions | ShadowStyle = -1; + @State grayscale1: number = 0.0; + @State brightness1: number = 1.0; + @State saturate1: number = 1.0; + @State contrast1: number = 1.0; + @State invert1: number | InvertOptions = 0; + @State colorBlend1: string | Resource | Color | null = null; + @State sepia1: number = 0; + @State hueRotate1: string | number = '0deg'; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)); + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release(); + return createPixelMap; + } + + async getBase64(src:Resource) { + let pixelMap = await this.getPixmapFromMedia(src); + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64($r('app.media.cat')); + } + + build() { + Column({ space: 10 }) { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .blur(this.blur1) + .backdropBlur(this.backdropBlur1) + .backgroundImage(this.backgroundImage1) + .backgroundImageSize(this.backgroundImageSize1) + .shadow(this.shadow1) + .grayscale(this.grayscale1) + .brightness(this.brightness1) + .saturate(this.saturate1) + .contrast(this.contrast1) + .invert(this.invert1) + .colorBlend(this.colorBlend1) + .sepia(this.sepia1) + .hueRotate(this.hueRotate1) + Button('1') + .id('1') + .onClick(() => { + this.blur1 = 10; + }) + Button('2') + .id('2') + .onClick(async () => { + this.backdropBlur1 = 3; + this.backgroundImage1 = await this.getPixmapFromMedia($r('app.media.cat')); + this.backgroundImageSize1 = { width: 1200, height: 160 } + }) + Button('3') + .id('3') + .onClick(() => { + this.shadow1 = { + radius: 10, + color: Color.Green, + offsetX: 20, + offsetY: 20 + }; + }) + Button('4') + .id('4') + .onClick(() => { + this.grayscale1 = 0.3; + }) + Button('5') + .id('5') + .onClick(() => { + this.brightness1 = 1.2; + }) + Button('6') + .id('6') + .onClick(() => { + this.saturate1 = 0.7; + }) + Button('7') + .id('7') + .onClick(() => { + this.contrast1 = 0.8; + }) + Button('8') + .id('8') + .onClick(() => { + this.invert1 = 0.2; + }) + Button('9') + .id('9') + .onClick(() => { + this.colorBlend1 = Color.Green; + }) + Button('10') + .id('10') + .onClick(() => { + this.sepia1 = 0.8; + }) + Button('11') + .id('11') + .onClick(() => { + this.hueRotate1 = 90; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.ets new file mode 100755 index 00000000..cd2e997c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200.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. + */ + +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier1 extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Red) + .width('50%') + .height(30) + } +} +class MyButtonModifier2 extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Green) + .width('50%') + .height(30) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0200 { + modifier1: MyButtonModifier1 = new MyButtonModifier1() + modifier2: MyButtonModifier2 = new MyButtonModifier2() + + build() { + Row() { + Column() { + Button("Button") + .margin(20) + .attributeModifier(this.modifier1) + Button("Button") + .margin(20) + .attributeModifier(this.modifier2) + Button("Button") + .margin(20) + .attributeModifier(this.modifier1) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.ets new file mode 100755 index 00000000..a133052d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210.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 UiAttributesAttributeUpdaterModifier0210 { +@State backGroundColor:Color|null = null; +@State focusAble:boolean = true + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0210') + .backgroundColor(this.backGroundColor) + .focusable(this.focusAble) + .onBlur(()=>{ + this.backGroundColor = Color.Green; + }) + .onClick(()=>{ + this.focusAble = false; + }) + .margin(20) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.ets new file mode 100755 index 00000000..8a799516 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220.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 UiAttributesAttributeUpdaterModifier0220 { + @State backGroundColor: Color | null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0220') + .backgroundColor(this.backGroundColor) + .margin(20) + .onClick(()=>{ + this.backGroundColor = Color.Red; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.ets new file mode 100755 index 00000000..07c7da32 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230.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 UiAttributesAttributeUpdaterModifier0230 { +@State backGroundColor:Color|null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0230') + .backgroundColor(this.backGroundColor) + .onFocus(()=>{ + this.backGroundColor = Color.Red; + }) + .margin(20) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.ets new file mode 100755 index 00000000..65d62374 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240.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 UiAttributesAttributeUpdaterModifier0240 { + @State backGroundColor: Color | null = null; + + build() { + Flex() { + Button("onHover") + .id('UiAttributesAttributeUpdaterModifier0240') + .backgroundColor(this.backGroundColor) + .onHover(()=>{ + this.backGroundColor = Color.Red; + }) + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.ets new file mode 100755 index 00000000..90e27247 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250.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 UiAttributesAttributeUpdaterModifier0250 { + @State backGroundColor: Color | null = Color.Red; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0250') + .backgroundColor(this.backGroundColor) + .margin(20) + .onKeyEvent((event: KeyEvent)=>{ + if (event.keyCode == 3101) { + this.backGroundColor = Color.Blue; + } + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.ets new file mode 100755 index 00000000..d3096e18 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260.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 UiAttributesAttributeUpdaterModifier0260 { + @State backGroundColor: Color | null = null; + + build() { + Flex() { + Button("onMouse") + .id('UiAttributesAttributeUpdaterModifier0260') + .backgroundColor(this.backGroundColor) + .onMouse(()=>{ + this.backGroundColor = Color.Red; + }) + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.ets new file mode 100755 index 00000000..22695c89 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270.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 UiAttributesAttributeUpdaterModifier0270 { + @State backGroundColor: Color | null = Color.Red; + @State long:number|null = null; + + build() { + Row() { + Column() { + Button("Button") + .width(this.long) + .id('UiAttributesAttributeUpdaterModifier0270') + .onSizeChange((oldValue: SizeOptions, newValue: SizeOptions) => { + console.info(`Ace: on size change, oldValue is ${JSON.stringify(oldValue)} value is ${JSON.stringify(newValue)}`) + }) + .backgroundColor(this.backGroundColor) + .margin(20) + .onClick(()=>{ + this.backGroundColor = Color.Brown; + this.long = 400; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.ets new file mode 100755 index 00000000..205280ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280.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 UiAttributesAttributeUpdaterModifier0280 { + @State backGroundColor: Color | null = null; + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0280') + .backgroundColor(this.backGroundColor) + .margin(20) + .onTouch(()=>{ + this.backGroundColor = Color.Red; + }) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets new file mode 100755 index 00000000..bc1c1246 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290.ets @@ -0,0 +1,108 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0290 { + @State outlineStyle1: OutlineStyle | EdgeOutlineStyles = OutlineStyle.SOLID; + @State outlineWidth1: Dimension | EdgeOutlineWidths = 0; + @State outlineColor1: ResourceColor | EdgeColors | LocalizedEdgeColors = Color.Black; + @State outlineRadius1: Dimension | OutlineRadiuses = 0; + @State isOutLine: boolean = false; + @State outline1: OutlineOptions = { + width: 0, + color: Color.Black, + radius: 0, + style: OutlineStyle.SOLID + }; + + build() { + Flex() { + if (this.isOutLine) { + Text('hello ohos') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .outline(this.outline1) + } else { + Text('hello ohos') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .outlineStyle(this.outlineStyle1) + .outlineWidth(this.outlineWidth1) + .outlineColor(this.outlineColor1) + .outlineRadius(this.outlineRadius1) + } + Button('1') + .id('1') + .onClick(() => { + this.isOutLine = false; + this.outlineStyle1 = OutlineStyle.DASHED; + this.outlineWidth1 = 5; + this.outlineRadius1 = 10; + this.outlineColor1 = 0xAFEEEE; + }) + Button('2') + .id('2') + .onClick(() => { + this.isOutLine = true; + this.outline1 = { + width: 5, + color: 0x317AF7, + radius: 10, + style: OutlineStyle.DOTTED + } + }) + Button('3') + .id('3') + .onClick(() => { + this.isOutLine = true; + this.outline1 = { + width: { + left: 3, + right: 6, + top: 10, + bottom: 15 + }, + color: { + left: '#e3bbbb', + right: Color.Blue, + top: Color.Red, + bottom: Color.Green + }, + radius: { + topLeft: 10, + topRight: 20, + bottomLeft: 40, + bottomRight: 80 + }, + style: { + left: OutlineStyle.DOTTED, + right: OutlineStyle.DOTTED, + top: OutlineStyle.SOLID, + bottom: OutlineStyle.DASHED + } + } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets new file mode 100755 index 00000000..917d986f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300.ets @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0300 { + @State width1: Length = 200; + @State height1: Length = 200; + @State padding1: Length | Padding | LocalizedPadding = 20; + @State margin1: Length | Padding | LocalizedPadding = 20; + @State size1: SizeOptions | null = null; + + build() { + Column() { + Column() + .width(this.width1) + .height(this.height1) + .padding(this.padding1) + .margin(this.margin1) + .size(this.size1) + .backgroundColor(Color.Red) + Button('1') + .id('1') + .onClick(() => { + this.width1 = 100; + this.height1 = 100; + }) + Button('2') + .id('2') + .onClick(() => { + this.padding1 = 100; + }) + Button('3') + .id('3') + .onClick(() => { + this.margin1 = 100; + }) + Button('4') + .id('4') + .onClick(() => { + this.size1 = { width: 'calc(90%)', height: 'calc(50vp+10%)' } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.ets new file mode 100755 index 00000000..83dde5b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310.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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0310 { + @State clip1: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute = false; + @State mask1: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask | null = null; + @State size1: SizeOptions | null = null; + @State image: string | null = null; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64() + } + + build() { + Column() { + Image(this.image) + .width(200) + .height(200) + .padding(20) + .margin(20) + .clip(this.clip1) + .mask(this.mask1) + .size(this.size1) + Button('1') + .id('1') + .onClick(() => { + this.clip1 = true + }) + Button('2') + .id('2') + .onClick(() => { + this.clip1 = new Circle({width:'280px',height:'280px'}) + }) + Button('3') + .id('3') + .onClick(() => { + this.clip1 = false + this.mask1 = new Rect({width:'500px',height:'280px'}).fill(Color.Gray); + }) + Button('4') + .id('4') + .onClick(() => { + this.mask1 = new Circle({width:'280px',height:'280px'}).fill(Color.Gray) + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.ets new file mode 100755 index 00000000..7ddfb498 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320.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 UiAttributesAttributeUpdaterModifier0320 { + @State hoverEffect1: HoverEffect = HoverEffect.Auto; + + build() { + Flex() { + Column() + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .hoverEffect(this.hoverEffect1) + Button('1') + .id('1') + .onClick(() => { + this.hoverEffect1 = HoverEffect.Scale; + }) + Button('2') + .id('2') + .onClick(() => { + this.hoverEffect1 = HoverEffect.Highlight; + }) + Button('3') + .id('3') + .onClick(() => { + this.hoverEffect1 = HoverEffect.None; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets new file mode 100755 index 00000000..9e598748 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330.ets @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0330 { + @State image: string | null = null; + @State draggable1: boolean = true; + @State dragPreviewOptions1: DragPreviewOptions | null = null; + @State AVisible: Visibility = Visibility.Visible + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column() { + Image(this.image) + .id('UiAttributesAttributeUpdaterModifier0330') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .onDragStart(() =>{}) + .draggable(this.draggable1) + .dragPreviewOptions(this.dragPreviewOptions1) + Button('1') + .id('1') + .onClick(() => { + this.draggable1 = true; + }) + Button('2') + .id('2') + .onClick(() => { + this.dragPreviewOptions1 = { mode: DragPreviewMode.DISABLE_SCALE }; + }) + Column() { + TextInput({ text: `${this.draggable1}` }) + }.margin(50).id('Column') + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets new file mode 100755 index 00000000..4f180c02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340.ets @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0340 { + @State fontColor: ResourceColor = Color.Red; + @State fontStyle: FontStyle = FontStyle.Italic; + @State fontWeight: string | number | FontWeight = FontWeight.Bold; + @State fontSize: string | number | Resource = 10; + + build() { + Column() { + Text('hello ohos') + .fontSize(this.fontSize) + .fontColor(this.fontColor) + .fontStyle(this.fontStyle) + .fontWeight(this.fontWeight) + Button('1') + .id('1') + .onClick(() => { + this.fontColor = Color.Orange; + }) + Button('2') + .id('2') + .onClick(() => { + this.fontSize = 18; + }) + Button('3') + .id('3') + .onClick(() => { + this.fontStyle = FontStyle.Normal; + }) + Button('4') + .id('4') + .onClick(() => { + this.fontWeight = FontWeight.Lighter; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.ets new file mode 100755 index 00000000..36ecfaea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350.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 UiAttributesAttributeUpdaterModifier0350 { + @State visibility1: Visibility = Visibility.Visible; + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0350') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(0xCCCCCC) + .visibility(this.visibility1) + Button('1') + .id('1') + .onClick(() => { + this.visibility1 = Visibility.None; + }) + Button('2') + .id('2') + .onClick(() => { + this.visibility1 = Visibility.Hidden; + }) + Button('3') + .id('3') + .onClick(() => { + this.visibility1 = Visibility.Visible; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.ets new file mode 100755 index 00000000..53b82d10 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360.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. + */ +import { image } from '@kit.ImageKit'; +import { buffer } from '@kit.ArkTS'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0360 { + @State image: string | null = null; + @State overlay1: string | CustomBuilder | ComponentContent | null = null; + @State overlay2: OverlayOptions | undefined = undefined; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + async getBase64() { + let pixelMap = await this.getPixmapFromMedia($r('app.media.cat')) + const imagePackerApi: image.ImagePacker = image.createImagePacker(); + let packOpts: image.PackingOption = { format: 'image/jpeg', quality: 100 }; + imagePackerApi.packing(pixelMap, packOpts).then((data: ArrayBuffer) => { + let buf: buffer.Buffer = buffer.from(data); + this.image = 'data:image/jpeg;base64,' + buf.toString('base64', 0, buf.length); + }) + } + + aboutToAppear(): void { + this.getBase64(); + } + + build() { + Column() { + Image(this.image) + .id('UiAttributesAttributeUpdaterModifier0360') + .width(200) + .height(200) + .padding(20) + .margin(20) + .overlay(this.overlay1, this.overlay2) + Button('1') + .id('1') + .onClick(() => { + this.overlay1 = 'Winter is a beautiful season,especially when it snows.'; + this.overlay2 = { align: Alignment.Bottom, offset: { x: 0, y: -15 } } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.ets new file mode 100755 index 00000000..7aebef23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370.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 UiAttributesAttributeUpdaterModifier0370 { + @State image: string | null = null; + @State clickEffect1: ClickEffect | null = null; + + build() { + Column() { + Toggle({ type: ToggleType.Switch, isOn: false }) + .id('UiAttributesAttributeUpdaterModifier0370') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + .clickEffect(this.clickEffect1) + Button('1') + .id('1') + .onClick(() => { + this.clickEffect1 = { level: ClickEffectLevel.LIGHT } + }) + Button('2') + .id('2') + .onClick(() => { + this.clickEffect1 = { level: ClickEffectLevel.LIGHT, scale: 0.5 } + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets new file mode 100755 index 00000000..177e7976 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380.ets @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0380 { + @State focusable1: boolean | null = null; + @State focusOnTouch1: boolean = false; + @State backgroundColor1: Color | null = null; + @State focusAble:string = '常态'; + + build() { + Column() { + Button(`${this.focusAble}`) + .id('UiAttributesAttributeUpdaterModifier0380') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(this.backgroundColor1) + .focusable(this.focusable1) + .onFocus(() => { + this.backgroundColor1 = Color.Red; + this.focusAble = '获焦态'; + }) + .onBlur(()=>{ + this.backgroundColor1 = null; + this.focusAble = '常态'; + }) + .focusOnTouch(this.focusOnTouch1) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.focusable1 = false; + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.focusable1 = true; + this.focusOnTouch1 = true + }) + } + .width('100%') + .height('100%') + } +} + +// focusTest.ets +/* +@Entry +@Component +struct FocusableExample { + @State inputValue: string = '' + + build() { + Scroll() { + Row({ space: 20 }) { + Column({ space: 20 }) { + Column({ space: 5 }) { + Button('Group1') + .width(165) + .height(40) + .fontColor(Color.White) + .focusOnTouch(true) // 该Button组件点击后可获焦 + Row({ space: 5 }) { + Button() + .width(80) + .height(40) + .fontColor(Color.White) + Button() + .width(80) + .height(40) + .fontColor(Color.White) + .focusOnTouch(true) // 该Button组件点击后可获焦 + } + Row({ space: 5 }) { + Button() + .width(80) + .height(40) + .fontColor(Color.White) + Button() + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderWidth(2).borderColor(Color.Red).borderStyle(BorderStyle.Dashed) + .tabIndex(1) // 该Column组件为按TAB键走焦的第一个获焦的组件 + } + }.alignItems(VerticalAlign.Top) + } + } +} +*/ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.ets new file mode 100755 index 00000000..910b3c08 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390.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 UiAttributesAttributeUpdaterModifier0390 { + @State enabled1: boolean = true; + + build() { + Column() { + TextInput() + .id('UiAttributesAttributeUpdaterModifier0390') + .width(200) + .height(200) + .padding(20) + .margin(20) + .enabled(this.enabled1) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.enabled1 = false; + }) + } + .width('100%') + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.ets new file mode 100755 index 00000000..e4a509c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400.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 UiAttributesAttributeUpdaterModifier0400 { + @State id1: string = 'UiAttributesAttributeUpdaterModifier0400'; + @State text1: string = ''; + @State text2: string = ''; + + getText1() { + this.text1 = getInspectorByKey('123'); + } + + getText2() { + this.text2 = getInspectorByKey('234'); + } + + build() { + Column() { + Column() + .id(this.id1) + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(Color.Gray) + Text(`123: ${this.text1}`) + Text(`234: ${this.text2}`) + Button('1') + .id('1') + .focusable(false) + .onClick(() => { + this.id1 = '123'; + setTimeout(()=>{ + this.getText1(); + },100) + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.id1 = '234'; + setTimeout(()=>{ + this.getText2(); + },100) + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets new file mode 100755 index 00000000..62ab9a3f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0410 { + @State backgroundImage1: ResourceStr | image.PixelMap | null = null; + @State backgroundImage2: ImageRepeat | undefined = undefined; + @State backgroundImageSize1: SizeOptions | ImageSize | null = null; + @State backgroundImagePosition1: Position | Alignment | null = null; + @State backgroundBlurStyle1: BlurStyle | null = null; + @State backgroundBlurStyle2: BackgroundBlurStyleOptions | undefined = undefined; + + private async getPixmapFromMedia(resource: Resource) { + let unit8Array = await getContext(this)?.resourceManager?.getMediaContent({ + bundleName: resource.bundleName, + moduleName: resource.moduleName, + id: resource.id + }) + let imageSource = image.createImageSource(unit8Array.buffer.slice(0, unit8Array.buffer.byteLength)) + let createPixelMap: image.PixelMap = await imageSource.createPixelMap({ + desiredPixelFormat: image.PixelMapFormat.RGBA_8888 + }) + await imageSource.release() + return createPixelMap + } + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0410') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundImage(this.backgroundImage1, this.backgroundImage2) + .backgroundImageSize(this.backgroundImageSize1) + .backgroundImagePosition(this.backgroundImagePosition1) + .backgroundBlurStyle(this.backgroundBlurStyle1, this.backgroundBlurStyle2) + Button('1') + .id('1') + .focusable(false) + .onClick(async () => { + this.backgroundImage1 = await this.getPixmapFromMedia($r('app.media.cat')); + this.backgroundImage2 = ImageRepeat.NoRepeat; + this.backgroundImageSize1 = { width: 1000, height: 560 }; + this.backgroundImagePosition1 = { x: -500, y: -300 }; + }) + Button('2') + .id('2') + .focusable(false) + .onClick(() => { + this.backgroundBlurStyle1 = BlurStyle.Thin; + this.backgroundBlurStyle2 = + { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 }; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.ets new file mode 100755 index 00000000..911c5167 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420.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. + */ + +import { AttributeUpdater } from '@kit.ArkUI' + +class MyButtonModifier extends AttributeUpdater { + initializeModifier(instance: ButtonAttribute): void { + instance.backgroundColor(Color.Red) + .width(200) + .height(200) + .padding(20) + .margin(20) + .border({ + width: 5, + color: 0x317AF7, + radius: 10, + style: BorderStyle.Dotted + }) + } +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0420 { + modifier: MyButtonModifier = new MyButtonModifier() + + build() { + Row() { + Column() { + Button("Button") + .id('UiAttributesAttributeUpdaterModifier0420') + .attributeModifier(this.modifier) + .backgroundColor(Color.Yellow) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets new file mode 100755 index 00000000..8a835a35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430.ets @@ -0,0 +1,101 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0430 { + @State border1: null | BorderOptions = null; + @State style: boolean = true; + @State borderStyle1: BorderStyle | EdgeStyles = BorderStyle.Solid; + @State borderWidth1: Length | EdgeWidths | LocalizedEdgeWidths = -1; + @State borderColor1: ResourceColor | EdgeColors | LocalizedEdgeColors = Color.Black; + @State borderRadius1: Length | BorderRadiuses | LocalizedBorderRadiuses = -1; + + build() { + Column() { + if (this.style) { + Column() + .id('UiAttributesAttributeUpdaterModifier0430') + .width(200) + .height(200) + .padding(20) + .margin(20) + .border(this.border1) + } else { + Column() + .id('UiAttributesAttributeUpdaterModifier0430') + .width(200) + .height(200) + .padding(20) + .margin(20) + .borderStyle(this.borderStyle1) + .borderWidth(this.borderWidth1) + .borderColor(this.borderColor1) + .borderRadius(this.borderRadius1) + } + Button('1') + .id('1') + .onClick(() => { + this.border1 = { + width: { + left: 3, + right: 6, + top: 10, + bottom: 15 + }, + color: { + left: '#e3bbbb', + right: Color.Blue, + top: Color.Red, + bottom: Color.Green + }, + radius: { + topLeft: 10, + topRight: 20, + bottomLeft: 40, + bottomRight: 80 + }, + style: { + left: BorderStyle.Dotted, + right: BorderStyle.Dotted, + top: BorderStyle.Solid, + bottom: BorderStyle.Dashed + } + }; + }) + Button('2') + .id('2') + .onClick(() => { + this.border1 = { + width: 5, + color: 0x317AF7, + radius: 10, + style: BorderStyle.Dotted + } + }) + Button('3') + .id('3') + .onClick(() => { + this.style = false; + this.borderStyle1 = BorderStyle.Dashed; + this.borderWidth1 = 5; + this.borderColor1 = 0xAFEEEE; + this.borderRadius1 = 10; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.ets new file mode 100755 index 00000000..c3857c0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440.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 UiAttributesAttributeUpdaterModifier0440 { + @State opacity1: number | Resource = 1; + + build() { + Column() { + Column() + .id('UiAttributesAttributeUpdaterModifier0440') + .width(200) + .height(200) + .padding(20) + .margin(20) + .backgroundColor(0xCCCCCC) + .opacity(this.opacity1) + Button('1') + .id('1') + .onClick(() => { + this.opacity1 = 0.7; + }) + Button('2') + .id('2') + .onClick(() => { + this.opacity1 = 0.5; + }) + Button('3') + .id('3') + .onClick(() => { + this.opacity1 = 0.3; + }) + Button('4') + .id('4') + .onClick(() => { + this.opacity1 = 0; + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets new file mode 100755 index 00000000..8f0685e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450.ets @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +interface GeneratedTypeLiteralInterface_1 { + angle?: string | number | undefined; + direction?: GradientDirection | undefined; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +interface GeneratedTypeSweepInterface_1 { + center: [Length, Length]; + start?: string | number | undefined; + end?: string | number | undefined; + rotation?: string | number | undefined; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +interface GeneratedTypeRadialInterface_1 { + center: [Length, Length]; + radius: string | number; + colors: [ResourceColor, number][]; + repeating?: boolean | undefined; +} + +@Entry +@Component +struct UiAttributesAttributeUpdaterModifier0450 { + @State refresh: number =0; + @State linearGradient1: GeneratedTypeLiteralInterface_1 = { + angle: 180, + direction: GradientDirection.Bottom, + colors: [], + repeating: false + }; + @State sweepGradient1: GeneratedTypeSweepInterface_1 = { + center: [-1, -1], + start: 0, + end: 0, + rotation: 0, + colors: [], + repeating: false + } + @State radialGradient1: GeneratedTypeRadialInterface_1 = { + center: [-1, -1], + radius: 0, + colors: [], + repeating: false + } + + onUpdated(){ + this.refresh ++; + } + + build() { + Column() { + if (this.refresh == 1) { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .margin(20) + .linearGradient(this.linearGradient1) + } else if (this.refresh == 2) { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .backgroundColor(Color.Yellow) + .margin(20) + .sweepGradient(this.sweepGradient1) + } else { + Row(){ + Text(`${this.refresh}`) + } + .id('UiAttributesAttributeUpdaterModifier0450') + .width(200) + .height(200) + .padding(20) + .backgroundColor(Color.Orange) + .margin(20) + .radialGradient(this.radialGradient1) + } + Button('1') + .id('1') + .onClick(() => { + this.onUpdated(); + this.linearGradient1 = { angle: 90, colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] } + }) + Button('2') + .id('2') + .onClick(() => { + this.onUpdated(); + this.sweepGradient1 = { + center: [50, 50], + start: 0, + end: 359, + rotation: 45, + repeating: true, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] + } + }) + Button('3') + .id('3') + .onClick(() => { + this.onUpdated(); + this.radialGradient1 = { + center: [50, 50], + radius: 60, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } + }) + } + .width('100%') + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets new file mode 100755 index 00000000..17cf6634 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0190.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let swiperNode = typeNode.createNode(uiContext, "Swiper") + swiperNode.attribute.width('100%') + .height('60%') + .margin({ right: 20 }) + let image = typeNode.createNode(uiContext, 'Image'); + image.initialize('red_icon.png') + .width(50) + .height(50) + .margin({ bottom: 5 }) + let image2 = typeNode.createNode(uiContext, 'Image'); + image2.initialize('blue_icon.png') + .width(100) + .height(20) + .margin({ bottom: 5 }) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }); + col.appendChild(swiperNode) + image?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${image?.getUniqueId()}:${image?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + this.node.appendChild(col); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0190 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets new file mode 100755 index 00000000..de761a11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0200.ets @@ -0,0 +1,88 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let swiperNode = typeNode.createNode(uiContext, "Swiper") + swiperNode.attribute.width('100%') + .height('60%') + .margin({ right: 20 }) + let image = typeNode.createNode(uiContext, 'Image'); + image.initialize('red_icon.png') + .width(50) + .height(50) + .margin({ bottom: 5 }) + let image2 = typeNode.createNode(uiContext, 'Image'); + image2.initialize('blue_icon.png') + .width(100) + .height(20) + .margin({ bottom: 5 }) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + swiperNode.appendChild(image2) + swiperNode.appendChild(image) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }); + col.appendChild(swiperNode) + image?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${image?.getUniqueId()}:${image?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + this.node.appendChild(col); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0200 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.ets new file mode 100755 index 00000000..018a0fcd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0230.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. + */ + +import { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let textInput = typeNode.createNode(uiContext, 'TextInput') + textInput.initialize({ placeholder:'this is 1' }).width('100%').height(100).backgroundColor(Color.Pink).id('textInput_node0230') + row.appendChild(textInput) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let textInput1 = typeNode.createNode(uiContext, 'TextInput') + textInput1.initialize({ placeholder:'this is 2' }).width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(textInput1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let textInput2 = typeNode.createNode(uiContext, 'TextInput') + textInput2.initialize({ placeholder:'this is 3' }).width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(textInput2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0230 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.ets new file mode 100755 index 00000000..fc6ce14e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0250.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width(200) + .height(200) + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: 200, height: 200 }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0250') + col.appendChild(textInput) + col?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${col?.getUniqueId()}:${col?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.node.appendChild(rootCol); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0250 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.ets new file mode 100755 index 00000000..5a25f748 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0260.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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + messge: string = ''; + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width(500) + .height(500) + .backgroundColor(Color.White) + let rootCol = typeNode.createNode(uiContext, 'Column'); + rootCol.initialize({ space: 5 }) + .width('100%') + .height('100%') + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width(200) + .height(200) + .backgroundImage('red_icon.png') + .backgroundImageSize({ width: 200, height: 200 }) + .margin({ top: 5 }); + rootCol.appendChild(col) + let textInput = typeNode.createNode(uiContext, 'TextInput'); + textInput.initialize({ placeholder: '请输入文字' }).width('100%').height('100%').id('textInput_node0260') + col.appendChild(textInput) + textInput?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + this.messge = `Node ${textInput?.getUniqueId()}:${textInput?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(this.messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + rootCol.appendChild(text); + }) + this.node.appendChild(rootCol); + + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0260 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.ets new file mode 100755 index 00000000..569617fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0300.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. + */ + +import { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + text?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + col.appendChild(scrollNode); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0300 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets new file mode 100755 index 00000000..dfb985ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UIComponentAreachange0320.ets @@ -0,0 +1,118 @@ +/** + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 { typeNode, NodeController, FrameNode } from '@ohos.arkui.node'; + +class MyNodeController extends NodeController { + public node: FrameNode | null = null; + private scroller: Scroller = new Scroller(); + + makeNode(uiContext: UIContext): FrameNode | null { + this.node = new FrameNode(uiContext) + this.node.commonAttribute.width('100%') + .height(200) + let col = typeNode.createNode(uiContext, 'Column'); + col.initialize({ space: 5 }) + .width('100%') + .height('100%') + .margin({ top: 5 }) + // this.node.appendChild(col); + + let stack = typeNode.createNode(uiContext, 'Stack'); + stack.initialize({ alignContent: Alignment.TopStart }) + .width('100%') + .height('100%') + col.appendChild(stack) + + let scrollNode = typeNode.createNode(uiContext, "Scroll") + scrollNode.initialize(this.scroller) + .width('100%') + .height(200) + .scrollable(ScrollDirection.Vertical) + .scrollBar(null) + stack.appendChild(scrollNode) + + let scrollCol = typeNode.createNode(uiContext, 'Column'); + scrollCol.initialize({ space: 5 }) + .justifyContent(FlexAlign.Start) + .height(300) + scrollNode.appendChild(scrollCol) + let row = typeNode.createNode(uiContext, 'Row') + row.initialize().width('100%').height(100) + let text = typeNode.createNode(uiContext, 'Text') + text.initialize('this 1').width('100%').height(100).backgroundColor(Color.Pink) + row.appendChild(text) + let row1 = typeNode.createNode(uiContext, 'Row') + row1.initialize().width('100%').height(100) + let text1 = typeNode.createNode(uiContext, 'Text') + text1.initialize('this 2').width('100%').height(100).backgroundColor(Color.Pink) + row1.appendChild(text1) + let row2 = typeNode.createNode(uiContext, 'Row') + row2.initialize().width('100%').height(100) + let text2 = typeNode.createNode(uiContext, 'Text') + text2.initialize('this 3').width('100%').height(100).backgroundColor(Color.Pink) + row2.appendChild(text2) + scrollCol.appendChild(row) + scrollCol.appendChild(row1) + scrollCol.appendChild(row2) + row?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${row?.getUniqueId()}:${row?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + stack?.commonEvent.setOnVisibleAreaApproximateChange( + { ratios: [0.0, 0.5, 1.0], expectedUpdateInterval: 500 }, + (isExpanding: boolean, ratio: number) => { + let messge = `Node ${stack?.getUniqueId()}:${stack?.getNodeType()} is visibleRatio is ${isExpanding}`; + let text = typeNode.createNode(uiContext, 'Text'); + text.initialize(messge).fontColor(Color.Black).fontSize(14).margin({ right: 20 }); + col.appendChild(text); + }) + let button = typeNode.createNode(uiContext, 'Button'); + button.initialize('scroll').onClick(() => { + this.scroller.scrollEdge(Edge.Bottom) + }); + col.appendChild(button); + this.node.appendChild(col); + return this.node + } + + getNodeType() { + let inspectorInfo = this.node?.getFirstChild()?.getNodeType(); + console.info("typeNode type " + JSON.stringify(inspectorInfo)); + return JSON.stringify(inspectorInfo) + } +} + +@Entry +@Component +struct UIComponentAreachange0320 { + private myNodeController: MyNodeController = new MyNodeController(); + @State type: string = "" + + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) { + Column() { + Row() { + NodeContainer(this.myNodeController); + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets new file mode 100755 index 00000000..c360d617 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentAreaChange/UiComponentAreaChange0120.ets @@ -0,0 +1,129 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 { NodeContent, typeNode } from '@kit.ArkUI'; + +class NodeContentCtrl { + content: NodeContent; + textNode: Array = new Array(); + uiContext: UIContext; + width: number; + callback: boolean | null = null; + isDelete: boolean = false; + + constructor(uiContext: UIContext) { + this.content = new NodeContent(); + this.uiContext = uiContext; + this.width = Infinity; + } + + setOnVisibleAreaApproximateChange() { + this.textNode.forEach(node => { + node.commonEvent.setOnVisibleAreaApproximateChange({ ratios: [0.0, 0.5, 1.0] }, (callback) => { + this.callback = callback; + }) + }); + } + + AddNode() { + this.isDelete = false; + let node = typeNode.createNode(this.uiContext, "Text"); + node.initialize("ContentText:" + this.textNode.length).fontSize(20).margin({ bottom: 20 }); + this.textNode.push(node); + this.content.addFrameNode(node); + } + + RemoveNode() { + this.isDelete = true; + let node1 = this.textNode.pop(); + this.content.removeFrameNode(node1); + } + + GetContent(): NodeContent { + if (this.textNode.length === 0 && !this.isDelete) { + let node = typeNode.createNode(this.uiContext, "Text"); + node.initialize("ContentText:" + this.textNode.length).fontSize(20).margin({ bottom: 20 }); + this.textNode.push(node); + this.content.addFrameNode(node); + } + return this.content; + } +} + +@Entry +@Component +struct UiComponentAreaChange0120 { + @State array: number[] = [0]; + @State index: number = 0; + controller = new NodeContentCtrl(this.getUIContext()); + + uniquePush(arr: number[], ...items: number[]): number[] { + const uniqueItems = new Set(arr.concat(items)); + const result: number[] = []; + uniqueItems.forEach(item => result.push(item)); + return result; + } + + removeItem(arr: number[], item: number): number[] { + const index = arr.indexOf(item); + if (index > -1) { + arr.splice(index, 1); + } + return arr; + } + + build() { + Row() { + Column() { + Text(`setOnVisibleAreaApproximateChangeCallback: ${this.controller.callback}`) + List() { + ForEach(this.array, () => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + ContentSlot(this.controller.GetContent()); + } + }.backgroundColor(Color.Red) + }) + }.id('UiComponentAreaChange0120').onClick(() => { + }) + + Button('setOnVisibleAreaApproximateChange') + .margin({ top: 20 }) + .id('setOnVisibleAreaApproximateChange') + .onClick(() => { + this.controller.setOnVisibleAreaApproximateChange(); + }) + + Button('新增') + .margin({ top: 20 }) + .id('add') + .onClick(() => { + this.index++; + this.array = this.uniquePush(this.array, this.index); + this.controller.AddNode(); + }) + Button('删除') + .id('delete') + .onClick(() => { + this.array = this.removeItem(this.array, this.index); + this.index--; + this.controller.RemoveNode(); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 index e58bd507..b27957df 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 @@ -12,15 +12,33 @@ "installationFree": false, "pages": "$profile:test_pages", "requestPermissions": [ + { + "name": "ohos.permission.SYSTEM_FLOAT_WINDOW", + "usedScene": { + "abilities":[ + "EntryAbility" + ], + "when": "inuse" + } + }, + { + "name": "ohos.permission.GRANT_SENSITIVE_PERMISSIONS" + }, { "name": "ohos.permission.WRITE_MEDIA" }, { "name": "ohos.permission.READ_MEDIA" }, + { + "name":"ohos.permission.CAPTURE_SCREEN" + }, { "name":"ohos.permission.UPDATE_CONFIGURATION" }, + { + "name":"ohos.permission.ACCESS_SCREEN_LOCK_INNER" + }, { "name":"ohos.permission.RUNNING_LOCK" }, diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json index cebaca0e..f3be3209 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/color.json @@ -63,6 +63,10 @@ { "name": "search_placeholder", "value": "#FFCFA613" + }, + { + "name": "color_0xffff", + "value": "#ffffff" } ] } \ 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 ce65c09b..37ed6e5a 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 @@ -243,6 +243,10 @@ { "name": "20string", "value": "20" + }, + { + "name": "module_desc", + "value": "module_desc" } ] } \ 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 5cc05ce9..033bac5a 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 @@ -1801,6 +1801,444 @@ "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007", "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008", "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010" + "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010", + + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0310", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0510", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0140", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0150", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundBackBlur0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0150", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0140", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0180", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0170", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0200", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0160", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0190", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0220", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundVisual0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170", + "testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220", + "testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0010", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0020", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0030", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0040", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0050", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0060", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140", + "testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0140", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0210", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0190", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0200", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0250", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0260", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0230", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0300", + "testability/pages/SetOnVisibleAreaApproximateChange/SetOnVisibleAreaApproximateChange0320", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0010", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0020", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0030", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0040", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0050", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0060", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0070", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0080", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0090", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0100", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0110", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0120", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0130", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0140", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0150", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0160", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0170", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0180", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0190", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0200", + "testability/pages/UIAttributesStateStylesInterface/UIAttributesStateStylesInterface0210", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540", + "testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170", + "testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180", + "testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190", + "testability/pages/CommoneventUnifyadd/textInputActionEventCommon", + "testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon", + "testability/pages/CommoneventUnifyadd/textAreaActionEventCommon", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0010", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0020", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0030", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0040", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0050", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0060", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0070", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0080", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0090", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0100", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0110", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0120", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0130", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0140", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0150", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0160", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0170", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0180", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0190", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0200", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0210", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0220", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0230", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0240", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0250", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0260", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0270", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0280", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0290", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0300", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0310", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0320", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0330", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0340", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0350", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0360", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0370", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0380", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0390", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0400", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0410", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0420", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0430", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0440", + "testability/pages/UiAttributesAttributeUpdaterModifier/UiAttributesAttributeUpdaterModifier0450", + "testability/pages/UiComponentAreaChange/UiComponentAreaChange0120", + + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0010", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0050", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0090", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0140", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0160", + "testability/pages/SubAceActionEventCommonEventInterface/SubAceActionEventCommonEventInterface0190", + "testability/pages/SubAceActionGestureOnChildTouch/SubAceActionGestureOnChildTouch0030", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0100", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0110", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0240", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0250", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0260", + "testability/pages/SubAceActionGestureJudge/SubAceActionGestureJudge0280", + + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0010", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0020", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0030", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0040", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0050", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0060", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0150", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0160", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEventReplacement0200", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0070", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0080", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0090", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0100", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0110", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0120", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0130", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0140", + "testability/pages/TouchEventDockPointerEventReplacement/TouchEventDockPointerEvent0210", + + "testability/pages/UIComponentAreachange/UIComponentAreachange0200", + "testability/pages/UIComponentAreachange/UIComponentAreachange0320", + "testability/pages/UIComponentAreachange/UIComponentAreachange0300", + "testability/pages/UIComponentAreachange/UIComponentAreachange0120", + "testability/pages/UIComponentAreachange/UIComponentAreachange0190", + "testability/pages/UIComponentAreachange/UIComponentAreachange0230", + "testability/pages/UIComponentAreachange/UIComponentAreachange0250", + "testability/pages/UIComponentAreachange/UIComponentAreachange0260", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120", + "testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260", + "testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0170", + "testability/pages/SUBEventShortcutInterAction/SUBEventShortcutInterAction0180", + "testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0050", + "testability/pages/ActionEventCommonEventDragRecipientCopyMoveReplacement/ActionEventCommonEventDragRecipientCopyMoveReplacement0030", + "testability/pages/StatusManagerRefresh/StatusManagerRefresh01", + "testability/pages/StatusManagerRefresh/StatusManagerRefresh02" ] } -- Gitee From 5453a174feba8d15ef569d761c4747be45feeb2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=9D=E8=BF=AA?= Date: Mon, 6 Jan 2025 15:28:14 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宝迪 --- .../src/ohosTest/ets/testability/TestAbility.ets | 14 +++++++------- .../ohosTest/resources/base/media/openeyej.jpg | Bin 0 -> 5381 bytes 2 files changed, 7 insertions(+), 7 deletions(-) create mode 100755 function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg 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 5b2992dc..0a9bbff7 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 @@ -59,13 +59,13 @@ export default class TestAbility extends UIAbility { hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); GlobalThis.getInstance().setContext("context", this.context) - windowStage.loadContent('testability/pages/Index', (err) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; - } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); - }); + // windowStage.loadContent('testability/pages/Index', (err) => { + // if (err.code) { + // hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); + // return; + // } + // hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); + // }); } onWindowStageDestroy() { diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/openeyej.jpg new file mode 100755 index 0000000000000000000000000000000000000000..8750eba924dd397bbd1f754e501ce04028db1e72 GIT binary patch literal 5381 zcmd5-cQjnlx4yazk`cWVM3*RoU?h@Yj3A5|ooJ&+8NDQGBzo^81QWxkK?aG4PW0Y; zPxO*V@Z|mecx%1?-hc1AYwdOJ-Fts$pMAe`&gI1A0sw}qs;dG-M8p99)dO5k1CIa_ z;(z#ONv=RjPWlg&gdharO$ z43Bj!7x@r+p@~CPd;92p!3$9$;W8fuk-q*dH0;sPdiD^k_f%`ylpjQAVn3U+M&i^NdMdlvYLQLO= z1kzo@3m%o)NvPcp{YwwIzDXB1s54ejmv}5$;@59?U)5k5GCRkHG`s{X=JQJk@9Hv- zRZ?Pqov4EnA3wB8>*Wwc%w<{n1UoF^FipW6Z_dI6}A-3@CK*42|^ zDb{P=f06W|hYc6FrqvHe+S5CRt{Sm;|MMv0cSvl9DX=kwG-r%}Ro`0hl<#Gv0h0Dj zS>+$ajq2=s4sl)r%`ST`rRPmaIRs+|JW{I=hbDD)e5J+yaC4xX>NV!;iivUGR6x=t zFx*|uObi5ZQ(l?rr*?&BOUjYK`xS55KR1s*ACf2jSmH+Ir_gg}vv?ry+fJDhvxT?c z%a@Px3(m6wCn2Yzd}0$58I{=L@4jTc#qGzJfQiRhj-UDd?EPuzi?@9j?XM2=y&aW4 z#zxg)+58RKxo>Q-#A!L^IkyVVY~*sG-OJ^WZP<*`j`~aB%Y5C)5dJU|ObVdsp}|K` zt|4kqJIDDt!4-wyT%*2OB__U`xmn@+W=>DbjyEoW%^a3qOx%O-aIms&FbHNr$EVWo+!jouwm=eRC!Q=+A963h4(UYCUOqMc99I=_N1b zj;%$so(?=XSa3_edrftIZSI~p$2p6B5?uRW!!MQz#dx$VuJZf%SiwOghQl9HTy$N| z(#T8BlPX*{dQ(xI^Hq)=$}kivLL1*&!i}lRp{g<2&m=!j#C-fBF)NVe{_9yiYDTMu zhJVf6oY2|0a3mfuc+j(1w-w9!^L?7J#BCgnU7aSEZ$!U$E>)9@zv?;+>JRO|bNWEu-M^gPo4uX6 zt73QATjEAdbya0sw>)62o1e$ep#pz7E&&^*n<5ulbvC=F!Y|Uz-Y%xz_OFa96Yfra z;__NQFnVJ*Q`0pYp*xb+`19n+*Xw+X6}(}$s(KLh^>}fECTq`;r^pt7q2^V-RZZV0 zjok`BMPmP%cD#_KUCBGuq~Oy-mUmw^k&v49+<2M%ckCQ>^?lel{@ff2s9A^n)`hgW zDCA}3*Kz}2@PD-W^P`69bIEpL@g{GLY}bU)8M$1N^+DgB?TPm1(lvqorr&-D!!uKy znVuJYJ47eWT>^DanJ9x>x00f5%gJJ=R#9dgnwJ0uy)`-Tf*;ys>3oKeHc&I`8*S>F zjpa~PTgk5pv%y2jIJw7CAo8pZ-9}?x$-|K4m$W0#O(us^1m2W#$mxY6(;HLSlbO)s zjwVzlM5ND@=V%ojBBe81?q#)y8kf`*)g`D)OyekKKON1k?wJ}t7eS?^Vl(_NftLii zx@^W67swrvlZ*S>k0J?%;waxoj`lsqu`~${20Ia(nLE1mg&6Y9rs3kXGSLzv4F*)s z8K(eDxs{!Au99AZkessLr2lbZLFPxVy{S&})T-3exQN7R;~NxQ{H1ub6DD89=^^6n(>b9TJiP_ECqa5bzg+R%*fPJ=BG2({otc%|GTHg z_G0lMKiIL_lH1feCm&u&y=yh+OwU49u|j35=wY#SETg=k*_cEq)4dLWxZZH0ATzRO zV)@RLIlroOEmmHx%7bukR_?}I6@u0)NJ2})lK2a_y!g5}Y!21j-TrVlljrJAU_>Ca z^%aDQEj_9_T^)@i_;oQcasETay_s$_M#EoSR3u5Dc{+NAZ zvDp|ft`z}JmM+Gf%AG25(jDsf1lGT#An~j*aYk~)1d1%(4@-zL9azyAHw}%9nuQdug&02fD|9*!c(h0*rRuFgdsRlHLe7 z%wyjVEa~^C*2H1hIXf6XSu0OfTaT^wt#zlK^4_)4@a#CGz69#)-(t)P8|JcPJ(%>{ z7ojxj_Vc(vwJp57E3Q)P3Ah1o4`tK-v*j^%F8bz|nkzc*5|9YBO`jo*e)2aOK2kWz zev$pRW=yHXDv-TWn>m$*^@Kf2i@VGte`)Vjp(5Ks+)goHFIBj>u&6YA)&JHIS4I__+Gi<7z8 zaAJ$z8?PoziK2(4S=9=UP!H@E#d6DU0MIdv+nMd4ZK2A@=nuP@In{_%`Oe>;zx_nI zeegtDuc>o1u22B7WKGN;M0q1*<%ia?dIYVw1biogw@UBniUBl1LXSvG7{pDhW5FD^ zqc?0!H)?U!X1Q^9e<%$3f7)5!B6!beG0wpp?@S;5;V5Hk#+h9LRoGO{-Ge`G;rV$5 zbqLACNb)v1^7guseZ}$A5|n4bx@@YygS60eGoqj(!7tCtciU0Oc~1#fg>IoE=kL4! z=gmrygu9Q54TP+hcb!$OsCrhT*skYY0R^>0^N{Cimxqv!-m!mnRMZ>PLC0fE5jL|w z3DF{0oDTacF(28bx%G??%N-{(oY*~C6yK5=ofLXo36{-8*JC2d19x^pxyGnm?OUhf za`9Hl!lsP(Bcg*PLu%qp*ByIRE?#ZTdleT#KhvlK>%py@c}9h-p5qzTqwoDaE$)lh zpUC@rr6Tk!IQ;!7-nPqBoIhL}tH_36ai>s~w7-!t0S_15zntHX+bKGZvyQo86`HyD zntO@Th(>y^Uxh`eP_VIxJxr?CSXs?2Xm}hUY1g+-O$bd_{Ps~m*hK;@pPYwMtTt2= z@Eov}WpUPZr2Zpxouc!ii6Iq2H>8T!K-UBpeX`d)>wO@)I~J*lzo|&e%l0+!#);wP zQ1n|Vh{FsrEC7PtaldVd_HDU3&u?lCp(guRxB8z*H|K0#ul}O^;7%9Z#s~ys+e4`s zy6>=C5e8|figGE-P9JtUNtHg^w~CV-cNG!o(0O=G`N^& z^@#N$kJBP9x*fHe9>s__t!A`IS2UOjq~^l+lZ@Uoz@Op>=qjhpon9}R;^)N|7HQ44 zF(y0iB718!h2;aY)8!1wq)M^x8953Iwk77w^CLeBjhoq=rQ=<8J_S^2E^nM1{c-R( zITy??A(k%{T3uS6QSxsb7q5wd`?Vl<{HDe4yI@xFD{12{=1l~`cT2{E8R6V~5ZWt+ zPL0le%s*7E*9e?EcdJUb&_LH@lvQIp@4G$OwyNWT^szL$F~}44ysUWTN4s$vJUk{~ zeNnD1z_Opc7}HdgdkHvYlO`aVMW&y0K+=DVdsSDgJz)OJ=#a3t+C8T!k3r@arAkW7 zd@y`h5F{sZt5k@a;H@QeL`BvIXNBv_er5>|{<&NcFrL|%kLxo%=r?ZJv2mfSsb!3? z($-I2#RsEaUF>W)tPYLA z?!voe;wne#@1A4zZ+#RVivGgqC8(bxyW*eDHadAB5`Ce~J7~H0uAW!n6Yj!x>%Pwn zyZ`7YMQPbNB2gqy-{}3E_6Td{o4ez=YM#ErzLxbAx-MR@*0q8n48aPcNC zxKLEY&2UC#AeLWd5V*oYkp!XT=O3;!uXu|xa2HfLKgA3C(Z4v(w(h*3I5ueHbGi@? zOd$WM-|+N>-d?``z7+3ijo0Rbzj=ys3BMw9I%VO9f0Yk_K>A;9Kh)w7gg2kYxt0nJ zygsPHu|AQ_{KW*#-#VbX<~&-Ioevli zg?rLmm)U%vVJ{YrOuFB){q61iE12IjS%>Qoi;kb!7ezk}3L{;BXA`@ET(9Yp3sSZb zkuC)lVZX}bx)`Grw~BAlhjN$dp-W#&#ogz>eJ_Edfg6k8MNfO(B2}rr$2MLy+IB!+Z~!lQ#wuo4TnAvaL^2<_$*_gF|Q%JmWRS8kDeDX|&|^o{P<$Y!T- zZf=k(Rhr#$mH{*hI=Dd?HbXyGTU0?d7!3AWCJyw_^fNOHKkJ0YOFXcI6Gc8FlOuu& zkn-}9@}%g+Zu@;mye*KUSAhs2XX~!uS4Y`0y*@&OB>IXyp}!WS_oKT_tT#PCFkH7; z3qS-hRH$mCnXIrG1pa5LU;iY*fbwA*wMuP=J@?tylT0WLx=nP|xn@{rGi6sIZF~Wl z92rE3X!LP{;NfztvOZ}Lef*>_4AjNo)F;}tQkY_s{y`)mk~*b9va+VQl46zTt})MD zN&1BNbZ&xYtWH(Lq|_{Dl6u;Gt1R9UECrhx7YHLlO&(&aZB98eeQjIwIH$(VpruvaG6G$ z!5W)jVA56VKHBa}p%rf7`bqps5feSynBI_fG{{w1kT@H_2VGsE72)n+2EAVtdUm!H xIX4Bkoe|Ms7#BZx3cq2JOmZ{IHY6GhK>+y4QWuQ07l;ZRB=i;JdgF5PzW}NHtK