From 551696014dadd3e735c6b5487cf0a353b8ede145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AE=9D=E8=BF=AA?= Date: Wed, 27 Nov 2024 09:45:53 +0800 Subject: [PATCH] =?UTF-8?q?menu=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=8F=90=E4=BA=A4-11-25-final?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 陈宝迪 --- ...ionSpecialComponentsMenuInterface.test.ets | 224 ++ .../entry/src/ohosTest/ets/test/List.test.ets | 48 + .../UIComponentButtonSliderLayout.test.ets | 41 + .../UIComponentButtonSliderRange.test.ets | 1193 ++++++ ...tButtonSliderSelectedborderradius.test.ets | 157 + .../UIComponentButtonSliderShun.test.ets | 197 + ...ButtonSliderSliderInteractionMode.test.ets | 449 +++ ...UIComponentButtonSliderTrackcolor.test.ets | 387 ++ .../UIComponentButtonStyle.test.ets | 211 +- .../UIComponentOtherPanelAnalysis.test.ets | 44 + .../UIComponentOtherPanelInteraction.test.ets | 144 + .../UIComponentOtherPanelInterface.test.ets | 788 ++++ ...onentPopupBoxSpecificationsShadow.test.ets | 147 +- ...boxMenuBindContextMenuIsShownTest.test.ets | 313 ++ .../UIComponentPopupboxMenuCorner.test.ets | 1134 ++++++ .../UIComponentPopupboxMenuDirect.test.ets | 604 +++ ...IComponentPopupboxMenuEnhancement.test.ets | 118 + .../UIComponentPopupboxMenuHmsymbol.test.ets | 1060 +++++ .../UIComponentPopupboxMenuInterface.test.ets | 519 +++ .../UIComponentPopupboxMenuPcheight.test.ets | 134 + .../UIComponentPopupboxMenuScenarios.test.ets | 3494 +++++++++++++++++ ...onentPopupboxMenuStyleEnhancement.test.ets | 2076 ++++++++++ .../UIComponentPopupboxMenuTouch.test.ets | 646 +++ ...omponentPopupboxMenuUxconsistency.test.ets | 165 + ...boxMenuWidthAndPlacementConformux.test.ets | 1917 +++++++++ .../UIComponentSliderSliderInterface.test.ets | 55 + .../UIComponentUISupportColor.test.ets | 451 ++- ...tionSpecialComponentsMenuInterface0010.ets | 49 + ...tionSpecialComponentsMenuInterface0020.ets | 41 + ...tionSpecialComponentsMenuInterface0030.ets | 41 + ...tionSpecialComponentsMenuInterface0040.ets | 41 + ...tionSpecialComponentsMenuInterface0060.ets | 41 + ...tionSpecialComponentsMenuInterface0080.ets | 42 + ...tionSpecialComponentsMenuInterface0120.ets | 48 + ...tionSpecialComponentsMenuInterface0130.ets | 52 + .../UIComponentButtonSliderLayout0020.ets | 32 + .../UIComponentButtonSliderRange0020.ets | 35 + .../UIComponentButtonSliderRange0030.ets | 35 + .../UIComponentButtonSliderRange0050.ets | 35 + .../UIComponentButtonSliderRange0060.ets | 35 + .../UIComponentButtonSliderRange0070.ets | 35 + .../UIComponentButtonSliderRange0080.ets | 35 + .../UIComponentButtonSliderRange0090.ets | 34 + .../UIComponentButtonSliderRange0100.ets | 35 + .../UIComponentButtonSliderRange0110.ets | 35 + .../UIComponentButtonSliderRange0120.ets | 35 + .../UIComponentButtonSliderRange0130.ets | 35 + .../UIComponentButtonSliderRange0140.ets | 35 + .../UIComponentButtonSliderRange0150.ets | 35 + .../UIComponentButtonSliderRange0160.ets | 35 + .../UIComponentButtonSliderRange0170.ets | 35 + .../UIComponentButtonSliderRange0180.ets | 35 + .../UIComponentButtonSliderRange0190.ets | 35 + .../UIComponentButtonSliderRange0200.ets | 32 + .../UIComponentButtonSliderRange0210.ets | 43 + .../UIComponentButtonSliderRange0220.ets | 36 + .../UIComponentButtonSliderRange0230.ets | 37 + .../UIComponentButtonSliderRange0240.ets | 48 + .../UIComponentButtonSliderRange0250.ets | 37 + .../UIComponentButtonSliderRange0260.ets | 47 + .../UIComponentButtonSliderRange0280.ets | 36 + .../UIComponentButtonSliderRange0290.ets | 51 + ...ntButtonSliderSelectedborderradius0010.ets | 44 + ...ntButtonSliderSelectedborderradius0020.ets | 54 + ...ntButtonSliderSelectedborderradius0030.ets | 52 + ...ntButtonSliderSelectedborderradius0170.ets | 41 + ...ntButtonSliderSelectedborderradius0200.ets | 54 + ...ntButtonSliderSelectedborderradius0210.ets | 54 + .../UIComponentButtonSliderShun0120.ets | 46 + .../UIComponentButtonSliderShun0130.ets | 59 + .../UIComponentButtonSliderShun0190.ets | 59 + .../UIComponentButtonSliderShun0200.ets | 41 + ...tButtonSliderSliderInteractionMode0010.ets | 35 + ...tButtonSliderSliderInteractionMode0020.ets | 36 + ...tButtonSliderSliderInteractionMode0030.ets | 35 + ...tButtonSliderSliderInteractionMode0040.ets | 41 + ...tButtonSliderSliderInteractionMode0050.ets | 34 + ...tButtonSliderSliderInteractionMode0060.ets | 36 + ...tButtonSliderSliderInteractionMode0080.ets | 36 + ...tButtonSliderSliderInteractionMode0090.ets | 36 + ...tButtonSliderSliderInteractionMode0100.ets | 36 + ...tButtonSliderSliderInteractionMode0110.ets | 36 + ...tButtonSliderSliderInteractionMode0120.ets | 36 + ...tButtonSliderSliderInteractionMode0130.ets | 36 + ...tButtonSliderSliderInteractionMode0150.ets | 36 + ...tButtonSliderSliderInteractionMode0170.ets | 51 + .../UIComponentButtonSliderTrackcolor0010.ets | 32 + .../UIComponentButtonSliderTrackcolor0030.ets | 48 + .../UIComponentButtonSliderTrackcolor0040.ets | 52 + .../UIComponentButtonSliderTrackcolor0050.ets | 42 + .../UIComponentButtonSliderTrackcolor0060.ets | 40 + .../UIComponentButtonSliderTrackcolor0070.ets | 41 + .../UIComponentButtonSliderTrackcolor0080.ets | 40 + .../UIComponentButtonSliderTrackcolor0090.ets | 41 + .../UIComponentButtonSliderTrackcolor0100.ets | 52 + .../UIComponentButtonSliderTrackcolor0110.ets | 41 + .../UIComponentButtonSliderTrackcolor0120.ets | 33 + .../UIComponentButtonSliderTrackcolor0130.ets | 45 + .../UIComponentButtonSliderTrackcolor0140.ets | 45 + .../UIComponentButtonSliderTrackcolor0150.ets | 45 + .../UIComponentButtonSliderTrackcolor0160.ets | 45 + .../UIComponentButtonSliderTrackcolor0170.ets | 36 + .../UIComponentButtonSliderTrackcolor0180.ets | 35 + .../UIComponentButtonSliderTrackcolor0190.ets | 35 + .../UIComponentButtonSliderTrackcolor0200.ets | 36 + .../UIComponentButtonSliderTrackcolor0220.ets | 44 + .../UIComponentButtonSliderTrackcolor0230.ets | 42 + .../UIComponentButtonStyle0230.ets | 48 + .../UIComponentButtonStyle0240.ets | 52 + .../UIComponentButtonStyle0250.ets | 56 + .../UIComponentButtonStyle0260.ets | 52 + .../UIComponentButtonStyle0270.ets | 52 + .../UIComponentButtonStyle0290.ets | 53 + .../UIComponentButtonStyle0300.ets | 53 + .../UIComponentButtonStyle0310.ets | 52 + .../UIComponentButtonStyle0320.ets | 52 + .../UIComponentButtonStyle0330.ets | 52 + .../UIComponentButtonStyle0340.ets | 52 + .../UIComponentButtonStyle0350.ets | 50 + .../UIComponentButtonStyle0360.ets | 52 + .../UIComponentOtherPanelAnalysis0010.ets | 37 + .../UIComponentOtherPanelInteraction0010.ets | 56 + .../UIComponentOtherPanelInteraction0020.ets | 46 + .../UIComponentOtherPanelInteraction0030.ets | 46 + .../UIComponentOtherPanelInterface0010.ets | 39 + .../UIComponentOtherPanelInterface0020.ets | 37 + .../UIComponentOtherPanelInterface0030.ets | 37 + .../UIComponentOtherPanelInterface0040.ets | 37 + .../UIComponentOtherPanelInterface0050.ets | 37 + .../UIComponentOtherPanelInterface0060.ets | 37 + .../UIComponentOtherPanelInterface0070.ets | 44 + .../UIComponentOtherPanelInterface0080.ets | 38 + .../UIComponentOtherPanelInterface0090.ets | 44 + .../UIComponentOtherPanelInterface0100.ets | 38 + .../UIComponentOtherPanelInterface0110.ets | 40 + .../UIComponentOtherPanelInterface0120.ets | 39 + .../UIComponentOtherPanelInterface0130.ets | 40 + .../UIComponentOtherPanelInterface0140.ets | 39 + .../UIComponentOtherPanelInterface0150.ets | 39 + .../UIComponentOtherPanelInterface0160.ets | 40 + .../UIComponentOtherPanelInterface0170.ets | 40 + .../UIComponentOtherPanelInterface0180.ets | 39 + .../UIComponentOtherPanelInterface0190.ets | 40 + .../UIComponentOtherPanelInterface0200.ets | 40 + .../UIComponentOtherPanelInterface0210.ets | 40 + .../UIComponentOtherPanelInterface0220.ets | 38 + .../UIComponentOtherPanelInterface0230.ets | 40 + .../UIComponentOtherPanelInterface0240.ets | 39 + .../UIComponentOtherPanelInterface0250.ets | 40 + .../UIComponentOtherPanelInterface0260.ets | 39 + .../UIComponentOtherPanelInterface0270.ets | 40 + .../UIComponentOtherPanelInterface0280.ets | 36 + .../UIComponentOtherPanelInterface0290.ets | 36 + .../UIComponentOtherPanelInterface0300.ets | 39 + .../UIComponentOtherPanelInterface0310.ets | 38 + .../UIComponentOtherPanelInterface0320.ets | 38 + .../UIComponentOtherPanelInterface0330.ets | 39 + .../UIComponentOtherPanelInterface0340.ets | 38 + .../UIComponentOtherPanelInterface0350.ets | 39 + .../UIComponentOtherPanelInterface0360.ets | 39 + .../UIComponentOtherPanelInterface0370.ets | 38 + .../UIComponentOtherPanelInterface0380.ets | 38 + .../UIComponentOtherPanelInterface0390.ets | 39 + .../UIComponentOtherPanelInterface0400.ets | 39 + ...ponentPopupboxSpecificationsShadow0030.ets | 45 + ...ponentPopupboxSpecificationsShadow0040.ets | 45 + ...ponentPopupboxSpecificationsShadow0050.ets | 45 + ...ponentPopupboxSpecificationsShadow0060.ets | 52 + ...ponentPopupboxSpecificationsShadow0070.ets | 52 + ...ponentPopupboxSpecificationsShadow0080.ets | 52 + ...ponentPopupboxSpecificationsShadow0090.ets | 52 + ...ponentPopupboxSpecificationsShadow0110.ets | 52 + ...ponentPopupboxSpecificationsShadow0820.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0030.ets | 50 + ...PopupboxMenuBindContextMenuIsShown0050.ets | 51 + ...PopupboxMenuBindContextMenuIsShown0080.ets | 53 + ...PopupboxMenuBindContextMenuIsShown0090.ets | 34 + ...PopupboxMenuBindContextMenuIsShown0100.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0110.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0120.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0130.ets | 51 + ...PopupboxMenuBindContextMenuIsShown0140.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0150.ets | 52 + ...PopupboxMenuBindContextMenuIsShown0170.ets | 52 + .../UIComponentPopupboxMenuCorner0010.ets | 48 + .../UIComponentPopupboxMenuCorner0020.ets | 42 + .../UIComponentPopupboxMenuCorner0030.ets | 42 + .../UIComponentPopupboxMenuCorner0040.ets | 42 + .../UIComponentPopupboxMenuCorner0050.ets | 42 + .../UIComponentPopupboxMenuCorner0060.ets | 69 + .../UIComponentPopupboxMenuCorner0070.ets | 56 + .../UIComponentPopupboxMenuCorner0080.ets | 42 + .../UIComponentPopupboxMenuCorner0090.ets | 58 + .../UIComponentPopupboxMenuCorner0100.ets | 43 + .../UIComponentPopupboxMenuCorner0110.ets | 43 + .../UIComponentPopupboxMenuCorner0120.ets | 42 + .../UIComponentPopupboxMenuCorner0130.ets | 50 + .../UIComponentPopupboxMenuCorner0140.ets | 42 + .../UIComponentPopupboxMenuCorner0150.ets | 43 + .../UIComponentPopupboxMenuCorner0160.ets | 42 + .../UIComponentPopupboxMenuCorner0170.ets | 42 + .../UIComponentPopupboxMenuCorner0180.ets | 43 + .../UIComponentPopupboxMenuCorner0190.ets | 42 + .../UIComponentPopupboxMenuCorner0200.ets | 43 + .../UIComponentPopupboxMenuCorner0210.ets | 42 + .../UIComponentPopupboxMenuCorner0220.ets | 42 + .../UIComponentPopupboxMenuCorner0230.ets | 44 + .../UIComponentPopupboxMenuCorner0240.ets | 48 + .../UIComponentPopupboxMenuCorner0250.ets | 48 + .../UIComponentPopupboxMenuCorner0260.ets | 42 + .../UIComponentPopupboxMenuCorner0270.ets | 42 + .../UIComponentPopupboxMenuCorner0280.ets | 48 + .../UIComponentPopupboxMenuCorner0290.ets | 69 + .../UIComponentPopupboxMenuCorner0300.ets | 57 + .../UIComponentPopupboxMenuCorner0310.ets | 42 + .../UIComponentPopupboxMenuCorner0320.ets | 60 + .../UIComponentPopupboxMenuCorner0330.ets | 43 + .../UIComponentPopupboxMenuCorner0340.ets | 43 + .../UIComponentPopupboxMenuCorner0350.ets | 42 + .../UIComponentPopupboxMenuCorner0360.ets | 48 + .../UIComponentPopupboxMenuCorner0370.ets | 42 + .../UIComponentPopupboxMenuCorner0380.ets | 42 + .../UIComponentPopupboxMenuCorner0390.ets | 42 + .../UIComponentPopupboxMenuCorner0400.ets | 42 + .../UIComponentPopupboxMenuCorner0410.ets | 42 + .../UIComponentPopupboxMenuCorner0420.ets | 43 + .../UIComponentPopupboxMenuCorner0430.ets | 42 + .../UIComponentPopupboxMenuCorner0440.ets | 42 + .../UIComponentPopupboxMenuCorner0450.ets | 42 + .../UIComponentPopupboxMenuCorner0460.ets | 44 + .../UIComponentPopupboxMenuDirect0010.ets | 43 + .../UIComponentPopupboxMenuDirect0030.ets | 43 + .../UIComponentPopupboxMenuDirect0040.ets | 43 + .../UIComponentPopupboxMenuDirect0050.ets | 43 + .../UIComponentPopupboxMenuDirect0060.ets | 43 + .../UIComponentPopupboxMenuDirect0070.ets | 43 + .../UIComponentPopupboxMenuDirect0080.ets | 43 + .../UIComponentPopupboxMenuDirect0090.ets | 43 + .../UIComponentPopupboxMenuDirect0100.ets | 43 + .../UIComponentPopupboxMenuDirect0110.ets | 43 + .../UIComponentPopupboxMenuDirect0120.ets | 41 + .../UIComponentPopupboxMenuDirect0140.ets | 42 + .../UIComponentPopupboxMenuDirect0150.ets | 43 + .../UIComponentPopupboxMenuDirect0160.ets | 43 + .../UIComponentPopupboxMenuDirect0170.ets | 43 + .../UIComponentPopupboxMenuDirect0180.ets | 44 + .../UIComponentPopupboxMenuDirect0190.ets | 43 + .../UIComponentPopupboxMenuDirect0200.ets | 43 + .../UIComponentPopupboxMenuDirect0210.ets | 43 + .../UIComponentPopupboxMenuDirect0220.ets | 44 + .../UIComponentPopupboxMenuDirect0230.ets | 43 + .../UIComponentPopupboxMenuDirect0240.ets | 43 + .../UIComponentPopupboxMenuDirect0250.ets | 43 + .../UIComponentPopupboxMenuDirect0260.ets | 43 + .../UIComponentPopupboxMenuDirect0270.ets | 43 + .../UIComponentPopupboxMenuEnhancement001.ets | 54 + .../UIComponentPopupboxMenuEnhancement008.ets | 173 + .../UIComponentPopupboxMenuEnhancement009.ets | 46 + .../UIComponentPopupboxMenuEnhancement010.ets | 46 + .../UIComponentPopupboxMenuEnhancement017.ets | 68 + .../UIComponentPopupboxMenuHmsymbol0010.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0020.ets | 42 + .../UIComponentPopupboxMenuHmsymbol0030.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0040.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0050.ets | 42 + .../UIComponentPopupboxMenuHmsymbol0060.ets | 43 + .../UIComponentPopupboxMenuHmsymbol0070.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0080.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0090.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0100.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0110.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0120.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0130.ets | 46 + .../UIComponentPopupboxMenuHmsymbol0140.ets | 47 + .../UIComponentPopupboxMenuHmsymbol0150.ets | 45 + .../UIComponentPopupboxMenuHmsymbol0160.ets | 48 + .../UIComponentPopupboxMenuHmsymbol0190.ets | 46 + .../UIComponentPopupboxMenuHmsymbol0200.ets | 47 + .../UIComponentPopupboxMenuHmsymbol0210.ets | 42 + .../UIComponentPopupboxMenuHmsymbol0220.ets | 43 + .../UIComponentPopupboxMenuHmsymbol0240.ets | 42 + .../UIComponentPopupboxMenuHmsymbol0250.ets | 43 + .../UIComponentPopupboxMenuHmsymbol0260.ets | 43 + .../UIComponentPopupboxMenuHmsymbol0270.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0280.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0310.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0320.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0330.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0340.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0350.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0360.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0390.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0400.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0410.ets | 64 + .../UIComponentPopupboxMenuHmsymbol0420.ets | 59 + .../UIComponentPopupboxMenuHmsymbol0430.ets | 62 + .../UIComponentPopupboxMenuHmsymbol0440.ets | 64 + .../UIComponentPopupboxMenuHmsymbol0450.ets | 62 + .../UIComponentPopupboxMenuHmsymbol0460.ets | 64 + .../UIComponentPopupboxMenuHmsymbol0470.ets | 44 + .../UIComponentPopupboxMenuHmsymbol0490.ets | 46 + .../UIComponentPopupboxMenuHmsymbol0500.ets | 51 + .../UIComponentPopupboxMenuHmsymbol0520.ets | 59 + .../UIComponentPopupboxMenuInterface0010.ets | 48 + .../UIComponentPopupboxMenuInterface0020.ets | 42 + .../UIComponentPopupboxMenuInterface0030.ets | 46 + .../UIComponentPopupboxMenuInterface0040.ets | 59 + .../UIComponentPopupboxMenuInterface0060.ets | 43 + .../UIComponentPopupboxMenuInterface0070.ets | 44 + .../UIComponentPopupboxMenuInterface0080.ets | 43 + .../UIComponentPopupboxMenuInterface0100.ets | 50 + .../UIComponentPopupboxMenuInterface0110.ets | 47 + .../UIComponentPopupboxMenuInterface0120.ets | 42 + .../UIComponentPopupboxMenuInterface0130.ets | 42 + .../UIComponentPopupboxMenuInterface0140.ets | 43 + .../UIComponentPopupboxMenuInterface0150.ets | 42 + .../UIComponentPopupboxMenuInterface0170.ets | 43 + .../UIComponentPopupboxMenuInterface0180.ets | 42 + .../UIComponentPopupboxMenuInterface0190.ets | 45 + .../UIComponentPopupboxMenuInterface0200.ets | 42 + .../UIComponentPopupboxMenuInterface0210.ets | 42 + .../UIComponentPopupboxMenuInterface0220.ets | 43 + .../UIComponentPopupboxMenuInterface0230.ets | 43 + .../UIComponentPopupboxMenuInterface0240.ets | 42 + .../UIComponentPopupboxMenuInterface0250.ets | 43 + .../UIComponentPopupboxMenuInterface0260.ets | 43 + .../UIComponentPopupboxMenuInterface0270.ets | 43 + .../UIComponentPopupboxMenuInterface0280.ets | 43 + .../UIComponentPopupboxMenuInterface0290.ets | 42 + .../UIComponentPopupboxMenuPcheight0010.ets | 135 + .../UIComponentPopupboxMenuPcheight0020.ets | 54 + .../UIComponentPopupboxMenuPcheight0070.ets | 175 + .../UIComponentPopupboxMenuPcheight0080.ets | 69 + .../UIComponentPopupboxMenuPcheight0220.ets | 55 + .../UIComponentPopupboxMenuScenarios0370.ets | 41 + .../UIComponentPopupboxMenuScenarios0380.ets | 49 + .../UIComponentPopupboxMenuScenarios0390.ets | 49 + .../UIComponentPopupboxMenuScenarios0400.ets | 50 + .../UIComponentPopupboxMenuScenarios0410.ets | 49 + .../UIComponentPopupboxMenuScenarios0420.ets | 48 + .../UIComponentPopupboxMenuScenarios0430.ets | 49 + .../UIComponentPopupboxMenuScenarios0440.ets | 53 + .../UIComponentPopupboxMenuScenarios0450.ets | 48 + .../UIComponentPopupboxMenuScenarios0460.ets | 49 + .../UIComponentPopupboxMenuScenarios0470.ets | 49 + .../UIComponentPopupboxMenuScenarios0480.ets | 49 + .../UIComponentPopupboxMenuScenarios0490.ets | 49 + .../UIComponentPopupboxMenuScenarios0500.ets | 48 + .../UIComponentPopupboxMenuScenarios0510.ets | 49 + .../UIComponentPopupboxMenuScenarios0520.ets | 49 + .../UIComponentPopupboxMenuScenarios0530.ets | 48 + .../UIComponentPopupboxMenuScenarios0540.ets | 49 + .../UIComponentPopupboxMenuScenarios0550.ets | 49 + .../UIComponentPopupboxMenuScenarios0560.ets | 48 + .../UIComponentPopupboxMenuScenarios0570.ets | 48 + .../UIComponentPopupboxMenuScenarios0580.ets | 48 + .../UIComponentPopupboxMenuScenarios0590.ets | 48 + .../UIComponentPopupboxMenuScenarios0600.ets | 49 + .../UIComponentPopupboxMenuScenarios0610.ets | 48 + .../UIComponentPopupboxMenuScenarios0620.ets | 48 + .../UIComponentPopupboxMenuScenarios0630.ets | 47 + .../UIComponentPopupboxMenuScenarios0640.ets | 48 + .../UIComponentPopupboxMenuScenarios0650.ets | 48 + .../UIComponentPopupboxMenuScenarios0660.ets | 48 + .../UIComponentPopupboxMenuScenarios0670.ets | 48 + .../UIComponentPopupboxMenuScenarios0680.ets | 48 + .../UIComponentPopupboxMenuScenarios0690.ets | 48 + .../UIComponentPopupboxMenuScenarios0700.ets | 48 + .../UIComponentPopupboxMenuScenarios0710.ets | 47 + .../UIComponentPopupboxMenuScenarios0720.ets | 47 + .../UIComponentPopupboxMenuScenarios0730.ets | 47 + .../UIComponentPopupboxMenuScenarios0740.ets | 48 + .../UIComponentPopupboxMenuScenarios0750.ets | 47 + .../UIComponentPopupboxMenuScenarios0760.ets | 48 + .../UIComponentPopupboxMenuScenarios0770.ets | 48 + .../UIComponentPopupboxMenuScenarios0780.ets | 48 + .../UIComponentPopupboxMenuScenarios0790.ets | 48 + .../UIComponentPopupboxMenuScenarios0800.ets | 48 + .../UIComponentPopupboxMenuScenarios0810.ets | 47 + .../UIComponentPopupboxMenuScenarios0820.ets | 48 + .../UIComponentPopupboxMenuScenarios0830.ets | 48 + .../UIComponentPopupboxMenuScenarios0840.ets | 47 + .../UIComponentPopupboxMenuScenarios0850.ets | 48 + .../UIComponentPopupboxMenuScenarios0860.ets | 47 + .../UIComponentPopupboxMenuScenarios0870.ets | 48 + .../UIComponentPopupboxMenuScenarios0880.ets | 48 + .../UIComponentPopupboxMenuScenarios0890.ets | 48 + .../UIComponentPopupboxMenuScenarios0900.ets | 48 + .../UIComponentPopupboxMenuScenarios0910.ets | 48 + .../UIComponentPopupboxMenuScenarios0920.ets | 47 + .../UIComponentPopupboxMenuScenarios0930.ets | 47 + .../UIComponentPopupboxMenuScenarios0940.ets | 48 + .../UIComponentPopupboxMenuScenarios0950.ets | 48 + .../UIComponentPopupboxMenuScenarios0960.ets | 48 + .../UIComponentPopupboxMenuScenarios0970.ets | 47 + .../UIComponentPopupboxMenuScenarios0980.ets | 48 + .../UIComponentPopupboxMenuScenarios0990.ets | 48 + .../UIComponentPopupboxMenuScenarios1000.ets | 48 + .../UIComponentPopupboxMenuScenarios1010.ets | 48 + .../UIComponentPopupboxMenuScenarios1020.ets | 47 + .../UIComponentPopupboxMenuScenarios1030.ets | 49 + .../UIComponentPopupboxMenuScenarios1040.ets | 49 + .../UIComponentPopupboxMenuScenarios1050.ets | 48 + .../UIComponentPopupboxMenuScenarios1060.ets | 48 + .../UIComponentPopupboxMenuScenarios1070.ets | 48 + .../UIComponentPopupboxMenuScenarios1080.ets | 48 + .../UIComponentPopupboxMenuScenarios1090.ets | 48 + .../UIComponentPopupboxMenuScenarios1100.ets | 48 + .../UIComponentPopupboxMenuScenarios1110.ets | 48 + .../UIComponentPopupboxMenuScenarios1120.ets | 48 + .../UIComponentPopupboxMenuScenarios1130.ets | 48 + .../UIComponentPopupboxMenuScenarios1140.ets | 49 + .../UIComponentPopupboxMenuScenarios1150.ets | 48 + .../UIComponentPopupboxMenuScenarios1160.ets | 48 + .../UIComponentPopupboxMenuScenarios1170.ets | 48 + .../UIComponentPopupboxMenuScenarios1180.ets | 50 + .../UIComponentPopupboxMenuScenarios1190.ets | 49 + .../UIComponentPopupboxMenuScenarios1200.ets | 48 + .../UIComponentPopupboxMenuScenarios1210.ets | 48 + .../UIComponentPopupboxMenuScenarios1220.ets | 48 + .../UIComponentPopupboxMenuScenarios1230.ets | 48 + .../UIComponentPopupboxMenuScenarios1240.ets | 48 + .../UIComponentPopupboxMenuScenarios1250.ets | 48 + .../UIComponentPopupboxMenuScenarios1260.ets | 48 + .../UIComponentPopupboxMenuScenarios1270.ets | 49 + .../UIComponentPopupboxMenuScenarios1280.ets | 49 + .../UIComponentPopupboxMenuScenarios1290.ets | 49 + .../UIComponentPopupboxMenuScenarios1300.ets | 47 + .../UIComponentPopupboxMenuScenarios1310.ets | 49 + .../UIComponentPopupboxMenuScenarios1320.ets | 49 + .../UIComponentPopupboxMenuScenarios1330.ets | 49 + .../UIComponentPopupboxMenuScenarios1340.ets | 49 + .../UIComponentPopupboxMenuScenarios1350.ets | 49 + .../UIComponentPopupboxMenuScenarios1360.ets | 49 + .../UIComponentPopupboxMenuScenarios1370.ets | 49 + .../UIComponentPopupboxMenuScenarios1380.ets | 50 + .../UIComponentPopupboxMenuScenarios1390.ets | 50 + .../UIComponentPopupboxMenuScenarios1400.ets | 47 + .../UIComponentPopupboxMenuScenarios1410.ets | 49 + .../UIComponentPopupboxMenuScenarios1420.ets | 49 + .../UIComponentPopupboxMenuScenarios1430.ets | 49 + .../UIComponentPopupboxMenuScenarios1440.ets | 49 + .../UIComponentPopupboxMenuScenarios1450.ets | 47 + .../UIComponentPopupboxMenuScenarios1460.ets | 48 + .../UIComponentPopupboxMenuScenarios1470.ets | 47 + .../UIComponentPopupboxMenuScenarios1480.ets | 48 + .../UIComponentPopupboxMenuScenarios1490.ets | 45 + .../UIComponentPopupboxMenuScenarios1500.ets | 45 + .../UIComponentPopupboxMenuScenarios1540.ets | 29 + .../UIComponentPopupboxMenuScenarios1550.ets | 46 + .../UIComponentPopupboxMenuScenarios1570.ets | 46 + .../UIComponentPopupboxMenuScenarios1580.ets | 47 + .../UIComponentPopupboxMenuScenarios1590.ets | 47 + .../UIComponentPopupboxMenuScenarios1600.ets | 47 + .../UIComponentPopupboxMenuScenarios1610.ets | 48 + .../UIComponentPopupboxMenuScenarios1620.ets | 46 + .../UIComponentPopupboxMenuScenarios1630.ets | 46 + .../UIComponentPopupboxMenuScenarios1640.ets | 47 + .../UIComponentPopupboxMenuScenarios1650.ets | 49 + .../UIComponentPopupboxMenuScenarios1660.ets | 45 + .../UIComponentPopupboxMenuScenarios1670.ets | 46 + .../UIComponentPopupboxMenuScenarios1680.ets | 46 + .../UIComponentPopupboxMenuScenarios1690.ets | 46 + .../UIComponentPopupboxMenuScenarios1700.ets | 48 + .../UIComponentPopupboxMenuScenarios1710.ets | 48 + .../UIComponentPopupboxMenuScenarios1720.ets | 48 + .../UIComponentPopupboxMenuScenarios1730.ets | 48 + .../UIComponentPopupboxMenuScenarios1740.ets | 48 + .../UIComponentPopupboxMenuScenarios1750.ets | 48 + .../UIComponentPopupboxMenuScenarios1760.ets | 49 + .../UIComponentPopupboxMenuScenarios1770.ets | 48 + .../UIComponentPopupboxMenuScenarios1780.ets | 48 + .../UIComponentPopupboxMenuScenarios1790.ets | 49 + .../UIComponentPopupboxMenuScenarios1800.ets | 49 + .../UIComponentPopupboxMenuScenarios1810.ets | 48 + .../UIComponentPopupboxMenuScenarios1820.ets | 48 + .../UIComponentPopupboxMenuScenarios1830.ets | 48 + .../UIComponentPopupboxMenuScenarios1840.ets | 48 + .../UIComponentPopupboxMenuScenarios1850.ets | 48 + .../UIComponentPopupboxMenuScenarios1860.ets | 48 + .../UIComponentPopupboxMenuScenarios1870.ets | 48 + .../UIComponentPopupboxMenuScenarios1880.ets | 48 + .../UIComponentPopupboxMenuScenarios1890.ets | 48 + .../UIComponentPopupboxMenuScenarios1900.ets | 48 + .../UIComponentPopupboxMenuScenarios1910.ets | 49 + .../UIComponentPopupboxMenuScenarios1920.ets | 48 + ...ponentPopupboxMenuStyleEnhancement0060.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0080.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0090.ets | 47 + ...ponentPopupboxMenuStyleEnhancement0100.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0110.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0120.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0130.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0140.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0150.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0160.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0170.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0180.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0190.ets | 47 + ...ponentPopupboxMenuStyleEnhancement0200.ets | 48 + ...ponentPopupboxMenuStyleEnhancement0210.ets | 44 + ...ponentPopupboxMenuStyleEnhancement0220.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0230.ets | 44 + ...ponentPopupboxMenuStyleEnhancement0240.ets | 58 + ...ponentPopupboxMenuStyleEnhancement0250.ets | 66 + ...ponentPopupboxMenuStyleEnhancement0260.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0270.ets | 65 + ...ponentPopupboxMenuStyleEnhancement0280.ets | 47 + ...ponentPopupboxMenuStyleEnhancement0290.ets | 59 + ...ponentPopupboxMenuStyleEnhancement0310.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0320.ets | 61 + ...ponentPopupboxMenuStyleEnhancement0330.ets | 35 + ...ponentPopupboxMenuStyleEnhancement0340.ets | 50 + ...ponentPopupboxMenuStyleEnhancement0350.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0360.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0370.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0380.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0390.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0400.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0410.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0420.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0430.ets | 48 + ...ponentPopupboxMenuStyleEnhancement0440.ets | 59 + ...ponentPopupboxMenuStyleEnhancement0450.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0460.ets | 61 + ...ponentPopupboxMenuStyleEnhancement0470.ets | 58 + ...ponentPopupboxMenuStyleEnhancement0480.ets | 66 + ...ponentPopupboxMenuStyleEnhancement0490.ets | 65 + ...ponentPopupboxMenuStyleEnhancement0500.ets | 81 + ...ponentPopupboxMenuStyleEnhancement0510.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0520.ets | 64 + ...ponentPopupboxMenuStyleEnhancement0540.ets | 94 + ...ponentPopupboxMenuStyleEnhancement0550.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0560.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0570.ets | 79 + ...ponentPopupboxMenuStyleEnhancement0580.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0590.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0600.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0610.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0620.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0630.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0640.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0650.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0660.ets | 48 + ...ponentPopupboxMenuStyleEnhancement0670.ets | 42 + ...ponentPopupboxMenuStyleEnhancement0680.ets | 45 + ...ponentPopupboxMenuStyleEnhancement0690.ets | 44 + ...ponentPopupboxMenuStyleEnhancement0700.ets | 58 + ...ponentPopupboxMenuStyleEnhancement0710.ets | 66 + ...ponentPopupboxMenuStyleEnhancement0720.ets | 66 + ...ponentPopupboxMenuStyleEnhancement0730.ets | 65 + ...ponentPopupboxMenuStyleEnhancement0740.ets | 78 + ...ponentPopupboxMenuStyleEnhancement0750.ets | 89 + ...ponentPopupboxMenuStyleEnhancement0770.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0780.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0790.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0800.ets | 50 + ...ponentPopupboxMenuStyleEnhancement0810.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0820.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0830.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0840.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0850.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0860.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0870.ets | 49 + ...ponentPopupboxMenuStyleEnhancement0880.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0890.ets | 48 + ...ponentPopupboxMenuStyleEnhancement0900.ets | 59 + ...ponentPopupboxMenuStyleEnhancement0910.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0920.ets | 46 + ...ponentPopupboxMenuStyleEnhancement0930.ets | 54 + ...ponentPopupboxMenuStyleEnhancement0940.ets | 53 + ...ponentPopupboxMenuStyleEnhancement0950.ets | 52 + ...ponentPopupboxMenuStyleEnhancement0960.ets | 67 + ...ponentPopupboxMenuStyleEnhancement0970.ets | 67 + ...ponentPopupboxMenuStyleEnhancement0980.ets | 82 + ...ponentPopupboxMenuStyleEnhancement0990.ets | 52 + ...ponentPopupboxMenuStyleEnhancement1000.ets | 65 + ...ponentPopupboxMenuStyleEnhancement1030.ets | 53 + ...ponentPopupboxMenuStyleEnhancement1060.ets | 58 + .../UIComponentPopupboxMenuTouch0010.ets | 38 + .../UIComponentPopupboxMenuTouch0020.ets | 46 + .../UIComponentPopupboxMenuTouch0030.ets | 45 + .../UIComponentPopupboxMenuTouch0040.ets | 38 + .../UIComponentPopupboxMenuTouch0060.ets | 40 + .../UIComponentPopupboxMenuTouch0070.ets | 48 + .../UIComponentPopupboxMenuTouch0090.ets | 50 + .../UIComponentPopupboxMenuTouch0100.ets | 58 + .../UIComponentPopupboxMenuTouch0110.ets | 40 + .../UIComponentPopupboxMenuTouch0120.ets | 40 + .../UIComponentPopupboxMenuTouch0130.ets | 48 + .../UIComponentPopupboxMenuTouch0140.ets | 49 + .../UIComponentPopupboxMenuTouch0150.ets | 40 + .../UIComponentPopupboxMenuTouch0160.ets | 40 + .../UIComponentPopupboxMenuTouch0170.ets | 40 + .../UIComponentPopupboxMenuTouch0180.ets | 49 + .../UIComponentPopupboxMenuTouch0190.ets | 47 + ...ComponentPopupboxMenuUxconsistency0010.ets | 40 + ...ComponentPopupboxMenuUxconsistency0030.ets | 38 + ...ComponentPopupboxMenuUxconsistency0040.ets | 44 + ...ComponentPopupboxMenuUxconsistency0050.ets | 43 + ...ComponentPopupboxMenuUxconsistency0070.ets | 44 + ...ComponentPopupboxMenuUxconsistency0080.ets | 41 + ...pboxMenuWidthAndPlacementConformux0900.ets | 44 + ...pboxMenuWidthAndPlacementConformux0910.ets | 44 + ...pboxMenuWidthAndPlacementConformux0920.ets | 44 + ...pboxMenuWidthAndPlacementConformux0930.ets | 44 + ...pboxMenuWidthAndPlacementConformux0940.ets | 44 + ...pboxMenuWidthAndPlacementConformux0950.ets | 44 + ...pboxMenuWidthAndPlacementConformux0960.ets | 44 + ...pboxMenuWidthAndPlacementConformux0970.ets | 44 + ...pboxMenuWidthAndPlacementConformux0980.ets | 44 + ...pboxMenuWidthAndPlacementConformux0990.ets | 44 + ...pboxMenuWidthAndPlacementConformux1000.ets | 44 + ...pboxMenuWidthAndPlacementConformux1010.ets | 44 + ...pboxMenuWidthAndPlacementConformux1020.ets | 44 + ...pboxMenuWidthAndPlacementConformux1030.ets | 44 + ...pboxMenuWidthAndPlacementConformux1040.ets | 44 + ...pboxMenuWidthAndPlacementConformux1050.ets | 44 + ...pboxMenuWidthAndPlacementConformux1060.ets | 44 + ...pboxMenuWidthAndPlacementConformux1070.ets | 44 + ...pboxMenuWidthAndPlacementConformux1080.ets | 44 + ...pboxMenuWidthAndPlacementConformux1090.ets | 44 + ...pboxMenuWidthAndPlacementConformux1100.ets | 44 + ...pboxMenuWidthAndPlacementConformux1110.ets | 44 + ...pboxMenuWidthAndPlacementConformux1120.ets | 44 + ...pboxMenuWidthAndPlacementConformux1130.ets | 44 + ...pboxMenuWidthAndPlacementConformux1140.ets | 44 + ...pboxMenuWidthAndPlacementConformux1150.ets | 44 + ...pboxMenuWidthAndPlacementConformux1160.ets | 44 + ...pboxMenuWidthAndPlacementConformux1170.ets | 44 + ...pboxMenuWidthAndPlacementConformux1180.ets | 44 + ...pboxMenuWidthAndPlacementConformux1190.ets | 44 + ...pboxMenuWidthAndPlacementConformux1200.ets | 44 + ...pboxMenuWidthAndPlacementConformux1210.ets | 44 + ...pboxMenuWidthAndPlacementConformux1220.ets | 44 + ...pboxMenuWidthAndPlacementConformux1230.ets | 44 + ...pboxMenuWidthAndPlacementConformux1240.ets | 44 + ...pboxMenuWidthAndPlacementConformux1250.ets | 44 + ...pboxMenuWidthAndPlacementConformux1260.ets | 43 + ...pboxMenuWidthAndPlacementConformux1270.ets | 44 + ...pboxMenuWidthAndPlacementConformux1280.ets | 43 + ...pboxMenuWidthAndPlacementConformux1290.ets | 43 + ...pboxMenuWidthAndPlacementConformux1300.ets | 44 + ...pboxMenuWidthAndPlacementConformux1310.ets | 44 + ...pboxMenuWidthAndPlacementConformux1320.ets | 44 + ...pboxMenuWidthAndPlacementConformux1330.ets | 44 + ...pboxMenuWidthAndPlacementConformux1340.ets | 44 + ...pboxMenuWidthAndPlacementConformux1350.ets | 44 + ...pboxMenuWidthAndPlacementConformux1360.ets | 44 + ...pboxMenuWidthAndPlacementConformux1370.ets | 44 + ...pboxMenuWidthAndPlacementConformux1380.ets | 44 + ...pboxMenuWidthAndPlacementConformux1390.ets | 44 + ...pboxMenuWidthAndPlacementConformux1400.ets | 44 + ...pboxMenuWidthAndPlacementConformux1410.ets | 44 + ...pboxMenuWidthAndPlacementConformux1420.ets | 44 + ...pboxMenuWidthAndPlacementConformux1430.ets | 44 + ...pboxMenuWidthAndPlacementConformux1440.ets | 44 + ...pboxMenuWidthAndPlacementConformux1450.ets | 44 + ...pboxMenuWidthAndPlacementConformux1460.ets | 44 + ...pboxMenuWidthAndPlacementConformux1470.ets | 44 + ...pboxMenuWidthAndPlacementConformux1480.ets | 44 + ...pboxMenuWidthAndPlacementConformux1490.ets | 44 + ...pboxMenuWidthAndPlacementConformux1500.ets | 44 + ...pboxMenuWidthAndPlacementConformux1510.ets | 44 + ...pboxMenuWidthAndPlacementConformux1520.ets | 44 + ...pboxMenuWidthAndPlacementConformux1530.ets | 44 + ...pboxMenuWidthAndPlacementConformux1540.ets | 44 + ...pboxMenuWidthAndPlacementConformux1550.ets | 44 + ...pboxMenuWidthAndPlacementConformux1560.ets | 44 + ...pboxMenuWidthAndPlacementConformux1570.ets | 44 + ...pboxMenuWidthAndPlacementConformux1580.ets | 44 + ...pboxMenuWidthAndPlacementConformux1590.ets | 44 + ...pboxMenuWidthAndPlacementConformux1600.ets | 44 + ...pboxMenuWidthAndPlacementConformux1610.ets | 44 + ...pboxMenuWidthAndPlacementConformux1620.ets | 44 + ...pboxMenuWidthAndPlacementConformux1630.ets | 44 + ...pboxMenuWidthAndPlacementConformux1640.ets | 44 + ...pboxMenuWidthAndPlacementConformux1650.ets | 45 + ...pboxMenuWidthAndPlacementConformux1660.ets | 43 + ...pboxMenuWidthAndPlacementConformux1670.ets | 43 + ...pboxMenuWidthAndPlacementConformux1680.ets | 43 + ...pboxMenuWidthAndPlacementConformux1690.ets | 43 + ...pboxMenuWidthAndPlacementConformux1700.ets | 45 + ...pboxMenuWidthAndPlacementConformux1710.ets | 44 + .../UIComponentSliderSliderInterface002.ets | 40 + .../UIComponentUISupportColor0570.ets | 52 + .../UIComponentUISupportColor0580.ets | 52 + .../UIComponentUISupportColor0590.ets | 52 + .../UIComponentUISupportColor0600.ets | 52 + .../UIComponentUISupportColor0610.ets | 43 + .../UIComponentUISupportColor0620.ets | 43 + .../UIComponentUISupportColor0630.ets | 43 + .../UIComponentUISupportColor0780.ets | 45 + .../UIComponentUISupportColor0790.ets | 45 + .../UIComponentUISupportColor0800.ets | 45 + .../UIComponentUISupportColor0810.ets | 45 + .../UIComponentUISupportColor0820.ets | 40 + .../UIComponentUISupportColor0830.ets | 40 + .../UIComponentUISupportColor0840.ets | 40 + .../UIComponentUISupportColor1480.ets | 40 + .../UIComponentUISupportColor1490.ets | 40 + .../UIComponentUISupportColor1500.ets | 40 + .../UIComponentUISupportColor1510.ets | 40 + .../UIComponentUISupportColor1520.ets | 35 + .../UIComponentUISupportColor1530.ets | 35 + .../UIComponentUISupportColor1540.ets | 35 + .../resources/base/element/float.json | 8 + .../resources/base/element/string.json | 16 + .../resources/base/profile/test_pages.json | 681 ++++ 709 files changed, 49109 insertions(+), 4 deletions(-) create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUIComponentFunctionSpecialComponentsMenuInterfaceTest/ArkUIComponentFunctionSpecialComponentsMenuInterface.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderLayoutTest/UIComponentButtonSliderLayout.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderRangeTest/UIComponentButtonSliderRange.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSelectedborderradiusTest/UIComponentButtonSliderSelectedborderradius.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderShunTest/UIComponentButtonSliderShun.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSliderInteractionModeTest/UIComponentButtonSliderSliderInteractionMode.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderTrackcolorTest/UIComponentButtonSliderTrackcolor.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelAnalysisTest/UIComponentOtherPanelAnalysis.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInteractionTest/UIComponentOtherPanelInteraction.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInterfaceTest/UIComponentOtherPanelInterface.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuBindContextMenuIsShownTest/UIComponentPopupboxMenuBindContextMenuIsShownTest.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuCornerTest/UIComponentPopupboxMenuCorner.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuDirectTest/UIComponentPopupboxMenuDirect.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuEnhancementTest/UIComponentPopupboxMenuEnhancement.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuHmsymbolTest/UIComponentPopupboxMenuHmsymbol.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuInterfaceTest/UIComponentPopupboxMenuInterface.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuPcheightTest/UIComponentPopupboxMenuPcheight.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuScenariosTest/UIComponentPopupboxMenuScenarios.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuStyleEnhancementTest/UIComponentPopupboxMenuStyleEnhancement.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuTouchTest/UIComponentPopupboxMenuTouch.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuUxconsistencyTest/UIComponentPopupboxMenuUxconsistency.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuWidthAndPlacementConformuxTest/UIComponentPopupboxMenuWidthAndPlacementConformux.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSliderSliderInterfaceTest/UIComponentSliderSliderInterface.test.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0720.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0730.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0750.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530.ets create mode 100644 function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540.ets diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUIComponentFunctionSpecialComponentsMenuInterfaceTest/ArkUIComponentFunctionSpecialComponentsMenuInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUIComponentFunctionSpecialComponentsMenuInterfaceTest/ArkUIComponentFunctionSpecialComponentsMenuInterface.test.ets new file mode 100644 index 000000000..c79d953eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUIComponentFunctionSpecialComponentsMenuInterfaceTest/ArkUIComponentFunctionSpecialComponentsMenuInterface.test.ets @@ -0,0 +1,224 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function ArkUIComponentFunctionSpecialComponentsMenuInterface() { + + describe('ArkUIComponentFunctionSpecialComponentsMenuInterface', () => { + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0130 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0130_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0130_02')); + menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0130 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0010 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0010_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(2000); + + await driver.drag(buttonCenterPos.x, buttonCenterPos.y , buttonCenterPos.x+100, buttonCenterPos.y+100); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0010 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0020 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0020_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0020 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0030 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0030_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0030 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0040 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0040_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0040 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0060 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0060_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0060 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0080 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0080_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0080 finish.`); + done(); + }) + + /** + * @tc.number ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0120 + * @tc.name bindMenu width/placement test + * @tc.desc bindMenu width/placement test + * @tc.level Level 3 + */ + it('ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0120_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('ArkUIComponentFunctionSpecialComponentsMenuInterface0120_02')); + menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SPECIALCOMPONENTS_MENU_INTERFACE_0120 finish.`); + done(); + }) + + }) +} 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 0860e1238..f860e2a5d 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,30 @@ import UIComponentPopupBoxToastStyleInterface001 import UIComponentPopupBoxFullDialogInterface001 from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test'; +import UIComponentPopupboxMenuInterfaceTest from './UIComponentPopupboxMenuInterfaceTest/UIComponentPopupboxMenuInterface.test' +import UIComponentPopupboxMenuBindContextMenuIsShownTest from './UIComponentPopupboxMenuBindContextMenuIsShownTest/UIComponentPopupboxMenuBindContextMenuIsShownTest.test' +import UIComponentPopupboxMenuPcheightTest from './UIComponentPopupboxMenuPcheightTest/UIComponentPopupboxMenuPcheight.test' +import UIComponentPopupboxMenuScenariosTest from './UIComponentPopupboxMenuScenariosTest/UIComponentPopupboxMenuScenarios.test' +import UIComponentPopupboxMenuEnhancement from './UIComponentPopupboxMenuEnhancementTest/UIComponentPopupboxMenuEnhancement.test' +import UIComponentPopupboxMenuUxconsistency from './UIComponentPopupboxMenuUxconsistencyTest/UIComponentPopupboxMenuUxconsistency.test' +import UIComponentButtonSliderSelectedborderradius from './UIComponentButtonSliderSelectedborderradiusTest/UIComponentButtonSliderSelectedborderradius.test' +import UIComponentButtonSliderLayout from './UIComponentButtonSliderLayoutTest/UIComponentButtonSliderLayout.test' +import UIComponentButtonSliderShun from './UIComponentButtonSliderShunTest/UIComponentButtonSliderShun.test' +import UIComponentButtonSliderTrackcolor from './UIComponentButtonSliderTrackcolorTest/UIComponentButtonSliderTrackcolor.test' +import UIComponentPopupboxMenuHmsymbol from './UIComponentPopupboxMenuHmsymbolTest/UIComponentPopupboxMenuHmsymbol.test' +import UIComponentPopupboxMenuCorner from './UIComponentPopupboxMenuCornerTest/UIComponentPopupboxMenuCorner.test' +import UIComponentPopupboxMenuWidthAndPlacementConformux from './UIComponentPopupboxMenuWidthAndPlacementConformuxTest/UIComponentPopupboxMenuWidthAndPlacementConformux.test' +import UIComponentButtonSliderRange from './UIComponentButtonSliderRangeTest/UIComponentButtonSliderRange.test' +import UIComponentSliderSliderInterface from './UIComponentSliderSliderInterfaceTest/UIComponentSliderSliderInterface.test' +import UIComponentButtonSliderSliderInteractionMode from './UIComponentButtonSliderSliderInteractionModeTest/UIComponentButtonSliderSliderInteractionMode.test' +import UIComponentOtherPanelInteraction from './UIComponentOtherPanelInteractionTest/UIComponentOtherPanelInteraction.test' +import UIComponentOtherPanelInterface from './UIComponentOtherPanelInterfaceTest/UIComponentOtherPanelInterface.test' +import UIComponentOtherPanelAnalysis from './UIComponentOtherPanelAnalysisTest/UIComponentOtherPanelAnalysis.test' +import UIComponentPopupboxMenuDirect from './UIComponentPopupboxMenuDirectTest/UIComponentPopupboxMenuDirect.test' +import ArkUIComponentFunctionSpecialComponentsMenuInterface from './ArkUIComponentFunctionSpecialComponentsMenuInterfaceTest/ArkUIComponentFunctionSpecialComponentsMenuInterface.test' +import UIComponentPopupboxMenuTouch from './UIComponentPopupboxMenuTouchTest/UIComponentPopupboxMenuTouch.test' +import UIComponentPopupboxMenuStyleEnhancement from './UIComponentPopupboxMenuStyleEnhancementTest/UIComponentPopupboxMenuStyleEnhancement.test' + export default function testsuite() { ComponentTextRicheditorFontfeatures(); ComponentTextRicheditorCustomColors(); @@ -239,6 +263,30 @@ export default function testsuite() { UIComponentPopupBoxAttribute(); UIComponentPopupBoxPromptToastSequence(); UIComponentPopupBoxSpecificationsPopup(); + + UIComponentPopupboxMenuInterfaceTest(); + UIComponentPopupboxMenuBindContextMenuIsShownTest(); + UIComponentPopupboxMenuPcheightTest(); + UIComponentPopupboxMenuScenariosTest(); + UIComponentPopupboxMenuEnhancement(); + UIComponentPopupboxMenuUxconsistency(); + UIComponentButtonSliderSelectedborderradius(); + UIComponentButtonSliderLayout(); + UIComponentButtonSliderShun(); + UIComponentButtonSliderTrackcolor(); + UIComponentPopupboxMenuHmsymbol(); + UIComponentPopupboxMenuCorner(); + UIComponentPopupboxMenuWidthAndPlacementConformux(); + UIComponentButtonSliderRange(); + UIComponentSliderSliderInterface(); + UIComponentButtonSliderSliderInteractionMode(); + UIComponentOtherPanelInteraction(); + UIComponentOtherPanelInterface(); + UIComponentOtherPanelAnalysis(); + UIComponentPopupboxMenuDirect(); + ArkUIComponentFunctionSpecialComponentsMenuInterface(); + UIComponentPopupboxMenuTouch(); + UIComponentPopupboxMenuStyleEnhancement(); } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderLayoutTest/UIComponentButtonSliderLayout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderLayoutTest/UIComponentButtonSliderLayout.test.ets new file mode 100644 index 000000000..123a1cf4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderLayoutTest/UIComponentButtonSliderLayout.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 { 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 UIComponentButtonSliderLayout() { + + describe('UIComponentButtonSliderLayout', () => { + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_LAYOUT_0020 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_LAYOUT_0020 + * @tc.desc trackThickness(60) + */ + it('UI_COMPONENT_BUTTON_SLIDER_LAYOUT_0020', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_LAYOUT_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020") + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_LAYOUT_0020 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderRangeTest/UIComponentButtonSliderRange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderRangeTest/UIComponentButtonSliderRange.test.ets new file mode 100644 index 000000000..f05fe7b50 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderRangeTest/UIComponentButtonSliderRange.test.ets @@ -0,0 +1,1193 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import window from '@ohos.window' + +export default function UIComponentButtonSliderRange() { + + describe('UIComponentButtonSliderRange', () => { + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0090 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0100 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0080 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0070 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x; + let y = positionInfo.y; + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0070 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0050 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060") + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter(); + let borderInfo = await slider.getBounds(); + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0060 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0150 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150") + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter(); + let borderInfo = await slider.getBounds(); + let x = positionInfo.x; + let y = positionInfo.y; + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0160 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter(); + let borderInfo = await slider.getBounds(); + let x = positionInfo.x; + let y = positionInfo.y; + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0160 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020") + await Utils.sleep(3000); + let driver: Driver = Driver.create(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter(); + let borderInfo = await slider.getBounds(); + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0020 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0120 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0140 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0170 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0180 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0190 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0210_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0210_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0240_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_3 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_3 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_3 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0240_002')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0240_3 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0230_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0230_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0260_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_3 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_3 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_3 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0260_002')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_3 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_4 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_4 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_4 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0260_003')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0260_4 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.bottom, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.top, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0220_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0220_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0250_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0250_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0280_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: borderInfo.left , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0280_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0200 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0200 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.left, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderRange0290_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 3); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.bottom, y: y + }); + pointers.setPoint(0, 2, { + x: borderInfo.top, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_RANGE_0290_2 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSelectedborderradiusTest/UIComponentButtonSliderSelectedborderradius.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSelectedborderradiusTest/UIComponentButtonSliderSelectedborderradius.test.ets new file mode 100644 index 000000000..1505865bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSelectedborderradiusTest/UIComponentButtonSliderSelectedborderradius.test.ets @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 UIComponentButtonSliderSelectedborderradius() { + + describe('UIComponentButtonSliderSelectedborderradius', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0200 + * @tc.desc SliderStyle.OutSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0200_001')) + await button1.click() + await Utils.sleep(1000) + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0200_002')) + await button2.click() + await Utils.sleep(1000) + let button3: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0200_003')) + await button3.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0200 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0020 + * @tc.desc SliderStyle.InSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0020_001')) + await button1.click() + await Utils.sleep(1000) + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0020_002')) + await button2.click() + await Utils.sleep(1000) + let button3: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0020_003')) + await button3.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0210 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0210 + * @tc.desc SliderStyle.OutSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0210 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0210_001')) + await button1.click() + await Utils.sleep(1000) + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0210_002')) + await button2.click() + await Utils.sleep(1000) + let button3: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0210_003')) + await button3.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0210 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0010 + * @tc.desc SliderStyle.InSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0010_001')) + await button1.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0170 + * @tc.desc SliderStyle.InSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0170_001')) + await button1.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0030 + * @tc.desc SliderStyle.InSet + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0030_001')) + await button1.click() + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0030_002')) + await button2.click() + let button3: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSelectedborderradius0030_003')) + await button3.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SELECTEDBORDERRADIUS_0030 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderShunTest/UIComponentButtonSliderShun.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderShunTest/UIComponentButtonSliderShun.test.ets new file mode 100644 index 000000000..485a89dd9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderShunTest/UIComponentButtonSliderShun.test.ets @@ -0,0 +1,197 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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' +import window from '@ohos.window' + +export default function UIComponentButtonSliderShun() { + + describe('UIComponentButtonSliderShun', () => { + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_1 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_1 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_001')) + await button1.click() + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_002')) + await button2.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_1 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_2 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_2 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_001')) + await button1.click() + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_003')) + await button2.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_2 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_3 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_3 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_3', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_3 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_001')) + await button1.click() + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_004')) + await button2.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_3 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_4 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_4 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_4', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_4 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_001')) + await button1.click() + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0130_005')) + await button2.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0130_4 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_1 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_1 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_1', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0120_001')); + await button1.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x, y) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_1 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_2 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_2 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_2', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderShun0120_002')); + await button1.click() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let pointer = await slider.getBoundsCenter() + let x = pointer.x + let y = pointer.y + await driver.click(x + 10, y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0120_2 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0190 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0190 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0190', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0190 finish.`); + done() + }) + /* + * @tc.number UI_COMPONENT_BUTTON_SLIDER_SHUN_0200 + * @tc.name UI_COMPONENT_BUTTON_SLIDER_SHUN_0200 + * @tc.desc + */ + it('UI_COMPONENT_BUTTON_SLIDER_SHUN_0200', 0, async (done: Function) => { + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `UI_COMPONENT_BUTTON_SLIDER_SHUN_0200 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSliderInteractionModeTest/UIComponentButtonSliderSliderInteractionMode.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSliderInteractionModeTest/UIComponentButtonSliderSliderInteractionMode.test.ets new file mode 100644 index 000000000..80d2d21e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderSliderInteractionModeTest/UIComponentButtonSliderSliderInteractionMode.test.ets @@ -0,0 +1,449 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import window from '@ohos.window' + +export default function UIComponentButtonSliderSliderInteractionMode() { + describe('UIComponentButtonSliderSliderInteractionMode', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_1 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_1 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_2 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_2 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSliderInteractionMode0040_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0040_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0120 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + await driver.click(borderInfo.right, y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0050 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0010 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await driver.click(x, y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0100 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.3), y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0170 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderSliderInteractionMode0170_001')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.9), y: y + }); + await driver.injectMultiPointerAction(pointers, 300); + await button.click(); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 300); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.1), y: y + }); + await driver.injectMultiPointerAction(pointers, 300); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 300); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x, y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 300); + await driver.click(Math.round(borderInfo.right * 0.3), y) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0150 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: Math.round(borderInfo.right * 0.5), y: y + }); + pointers.setPoint(0, 1, { + x: Math.round(borderInfo.right * 0.6), y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_SLDERINTERACTIONMODE_0150 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderTrackcolorTest/UIComponentButtonSliderTrackcolor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderTrackcolorTest/UIComponentButtonSliderTrackcolor.test.ets new file mode 100644 index 000000000..449502cc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSliderTrackcolorTest/UIComponentButtonSliderTrackcolor.test.ets @@ -0,0 +1,387 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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 UIComponentButtonSliderTrackcolor() { + + describe('UIComponentButtonSliderTrackcolor', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0200 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0200 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0200 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0200 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0230 + * @tc.desc trackColor + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230") + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0230_001')); + await button1.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0170 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0170 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0170 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0220_001')); + await button.click(); + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0030 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0030 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0030_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0030_002')); + await button2.click(); + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0090 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0090 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0090 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0090_001')); + await button.click(); + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0180 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0180 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0180 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0190 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0190 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0190 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0010 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0010 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0010 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0110 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0110 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0110 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0110_001')); + await button.click(); + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0040 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0040 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0040 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040") + await Utils.sleep(2000); + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0040_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0040_002')); + await button2.click(); + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0080 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0080 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0080 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0080_001')); + await button.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0070 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0070 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0070 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0070_001')); + await button.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0050 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0050 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0050 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0050_001')); + await button.click(); + let Slider = await driver.findComponent(ON.type("Slider")); + let pointCenter = await Slider.getBoundsCenter(); + await driver.click(pointCenter.x, pointCenter.y) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0060 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0060 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0060 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0060_001')); + await button.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0140 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0140 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0140 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0140_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0140_002')); + await button2.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0120 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0120 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0120 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120") + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0130 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0130 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0130 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0130_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0130_002')); + await button2.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0100 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0100 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0100 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0100_001')); + await button.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0160 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0160 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0160 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0160_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0160_002')); + await button2.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0150 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0150 + * @tc.desc trackColor null + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0150 start.`); + Settings.createWindow("testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0150_001')); + await button.click(); + let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSliderTrackcolor0150_002')); + await button2.click(); + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SLIDER_TRACKCOLOR_0150 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets index 2a1735642..86b4f98b0 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets @@ -18,7 +18,7 @@ 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' +import { Driver, ON, Component } from '@ohos.UiTest' /* * Settings.createWindow(config.url): @@ -38,6 +38,215 @@ export default function UIComponentButtonStyle() { describe('UIComponentButtonStyle', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0240 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0240_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0240 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0330 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0330_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0330 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0260 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0260_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0260 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0230 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0230_001')); + await button.click(); + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let x = positionInfo.x + let y = positionInfo.y + await driver.click(x, y) + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0270 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0270_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0270 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0300 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0300_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0300 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0340 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0340 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0340_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0350 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0350 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0350_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0350 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0250 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0250_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0250 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0360 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0360_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0360 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0320 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0320 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0320_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0320 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0290 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290") + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentButtonStyle0290_001')); + await button.click(); + await windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0290 finish.`); + done() + }) /* * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelAnalysisTest/UIComponentOtherPanelAnalysis.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelAnalysisTest/UIComponentOtherPanelAnalysis.test.ets new file mode 100644 index 000000000..c38691a1f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelAnalysisTest/UIComponentOtherPanelAnalysis.test.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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentOtherPanelAnalysis() { + describe('UIComponentOtherPanelAnalysis', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_ANALYSIS_0010 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_ANALYSIS_0010 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_ANALYSIS_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_ANALYSIS_0010 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelAnalysis0010_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_ANALYSIS_0010 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInteractionTest/UIComponentOtherPanelInteraction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInteractionTest/UIComponentOtherPanelInteraction.test.ets new file mode 100644 index 000000000..5ebeacae1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInteractionTest/UIComponentOtherPanelInteraction.test.ets @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentOtherPanelInteraction() { + describe('UIComponentOtherPanelInteraction', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0030 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0030 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0030_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_1 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_1 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0020_001')) + await text.click() + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_2 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_2 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0020_001')) + await text.click() + await Utils.sleep(1000) + let Panel: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0020_002')) + let borderInfo = await Panel.getBounds() + let textInfo = await text.getBounds() + let center = await Panel.getBoundsCenter() + await driver.drag(center.x, Math.round((borderInfo.bottom - borderInfo.top) / 2), center.x, textInfo.top, 500) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0020_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_1 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_1 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0010_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_2 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_2 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0010_001')) + await text.click() + await Utils.sleep(1000) + let textMode: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0010_002')) + await textMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_3 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_3 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_3 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0010_001')) + await text.click() + await Utils.sleep(1000) + let textMode: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInteraction0010_003')) + await textMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERACTION_0010_3 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInterfaceTest/UIComponentOtherPanelInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInterfaceTest/UIComponentOtherPanelInterface.test.ets new file mode 100644 index 000000000..166e210f6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherPanelInterfaceTest/UIComponentOtherPanelInterface.test.ets @@ -0,0 +1,788 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentOtherPanelInterface() { + describe('UIComponentOtherPanelInterface', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0300 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0300_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0300 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0160 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0160_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0160 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0360 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0360_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0360 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0190 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0190_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_1 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_1 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0070_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_2 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_2 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0070_001')) + await text.click() + await Utils.sleep(1000) + let button: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0070_002')) + await button.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0070_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0250 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0250_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0250 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0110_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0130_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0130 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0320 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0320 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0320_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0320 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0100 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0100_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0140 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0140_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0340 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0340 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0340_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0290 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0290_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0290 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0380 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0380 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0380 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0380_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0380 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0330 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0330_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0330 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0280 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0280_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0280 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0370 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0370 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0370_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0370 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0080_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0120 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0120_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0120 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0400 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0400 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0400 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0400_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0400 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0270 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0270_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0270 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0350 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0350 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0350_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0350 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0040 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0040_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0240 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0240_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0240 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0220 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0220_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0390 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0390 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0390 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0390_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0390 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0180 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0180_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0180 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0230 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0230_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0170 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0170_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_1 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_1 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0090_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_1 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_2 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_2 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0090_001')) + await text.click() + await Utils.sleep(1000) + let typeText: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0090_002')) + await typeText.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0090_2 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0150 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0150_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0150 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0060_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0020_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0030_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0260 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0260_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0260 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0050 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0050_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0210 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0210_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0210 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0310 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0310 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0310_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0310 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0010 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0010_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0200 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentOtherPanelInterface0200_001')) + await text.click() + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_OTHER_PANEL_INTERFACE_0200 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets index d1ef9fb3e..700748259 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets @@ -18,7 +18,7 @@ import Logger from '../model/Logger' import Settings from '../model/Settings' import Utils from '../model/Utils' import windowSnap from '../model/snapShot' -import { Driver, ON } from '@ohos.UiTest' +import { Driver, ON, Component } from '@ohos.UiTest' /* * Settings.createWindow(config.url): @@ -37,7 +37,150 @@ import { Driver, ON } from '@ohos.UiTest' export default function UIComponentPopupBoxSpecificationsShadow() { describe('UIComponentPopupBoxSpecificationsShadow', () => { - + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0060 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0060_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0060 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0050 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0050 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0050_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0050 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0070 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0070 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0070_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0070 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0080_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0110_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0110 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0040 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0040_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0030 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0030_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0030 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0090 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxSpecificationsShadow0090_001')) + await text.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0090 finish.`); + done() + }) /* * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuBindContextMenuIsShownTest/UIComponentPopupboxMenuBindContextMenuIsShownTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuBindContextMenuIsShownTest/UIComponentPopupboxMenuBindContextMenuIsShownTest.test.ets new file mode 100644 index 000000000..e67e88497 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuBindContextMenuIsShownTest/UIComponentPopupboxMenuBindContextMenuIsShownTest.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, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentPopupboxMenuBindContextMenuIsShown() { + + describe('UIComponentPopupboxMenuBindContextMenuIsShown', () => { + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0050 + * @tc.name isShow=true + * @tc.desc isShow=true + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050"); + await Utils.sleep(2000); + //Step1: no Menu + // await windowSnap.snapShot() + // await Utils.sleep(2000) + + //Step2: click show menu + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0050_01')); + await text.click(); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0080 + * @tc.name isShow=false + * @tc.desc isShow=false + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080"); + await Utils.sleep(2000); + + //Step1: click show menu + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0080_01')); + let pointCenter = await text.getBoundsCenter(); + await text.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + + // Step2: click Hide menu + await driver.click(pointCenter.x, pointCenter.y - 300); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0090 + * @tc.name isShow=false + * @tc.desc isShow=false + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090"); + await Utils.sleep(2000); + + //Step1: click show menu + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0090_01')); + await text.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0170 + * @tc.name Placement.Left + * @tc.desc Placement.Left + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170"); + await Utils.sleep(2000); + + //Step1: click not show menu + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0170_01')); + await text.click(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(3000); + + //Step2: show menu + // let text1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0170_01')) + // await text1.click(); + // await windowSnap.snapShot() + // await Utils.sleep(2000) + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0030 + * @tc.name bindContextMenu isShow + * @tc.desc bindContextMenu isShow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0030_01')); + let pointCenter = await text.getBoundsCenter(); + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + await driver.click(pointCenter.x, pointCenter.y - 200); + await Utils.sleep(1000); + + //Step2: click menu not show + await text.click(); + await Utils.sleep(1000); + + //Step3: click show menu + await text.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0130 + * @tc.name bindContextMenu isShow + * @tc.desc bindContextMenu isShow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0130_01')); + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0130 + * @tc.name bindContextMenu isShow + * @tc.desc bindContextMenu isShow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0110_01')); + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0100 + * @tc.name bindContextMenu offset: { x: "30px", y: "30px" } + * @tc.desc bindContextMenu offset: { x: "30px", y: "30px" } + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0100_01')); + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0120 + * @tc.name bindContextMenu arrowOffset: 2 + * @tc.desc bindContextMenu arrowOffset: 2 + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0120_01')); + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0150 + * @tc.name bindContextMenu placement.Right + * @tc.desc bindContextMenu placement.Right + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0150_01')); + + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0150 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0140 + * @tc.name bindContextMenu backgroundBlurStyle + * @tc.desc bindContextMenu backgroundBlurStyle + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140"); + await Utils.sleep(2000); + + let driver: Driver = Driver.create(); + let text: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuBindContextMenuIsShown0140_01')); + + //Step1: click show menu + await text.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0140 finish.`); + done() + }) + + + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuCornerTest/UIComponentPopupboxMenuCorner.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuCornerTest/UIComponentPopupboxMenuCorner.test.ets new file mode 100644 index 000000000..e9e398666 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuCornerTest/UIComponentPopupboxMenuCorner.test.ets @@ -0,0 +1,1134 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuCorner() { + + describe('UIComponentPopupboxMenuCorner', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0020 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0020_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0030 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0030_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0040 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0040_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0140 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0140_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0070 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0070_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItemS1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0070_02')); + await menuItemS1.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0080 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0080_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0120 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0120_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0160 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0160_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0170 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0170_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0060 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0060_01')); + await button.longClick(); + await Utils.sleep(1000); + + let menuItemS1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0060_02')); + await menuItemS1.click(); + await Utils.sleep(1000); + + let menuItemS2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0060_03')); + await menuItemS2.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0190 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0190_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0050 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0050_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0100 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0100_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0130 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0130_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0010 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0010_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0150 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0150_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0180 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0180_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0180 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0200 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0200_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0110 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0110_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0210 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0210_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0220 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0220_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0230 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0230_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0340 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0340_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0340 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0330 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0330_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0330 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0320 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0320_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(1000); + + + await driver.click(buttonCenterPos.x, buttonCenterPos.y-200); + await Utils.sleep(1000); + + let buttonSwitch: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0320_02')); + await buttonSwitch.click(); + await Utils.sleep(500); + await button.click(); + await Utils.sleep(500); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0320 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0270 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0270_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0270 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0360 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0360_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0360 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0310 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0310_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0310 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0260 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0260_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0240 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0240_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0280 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0280_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0280 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0290 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0290_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItemS1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0290_02')); + await menuItemS1.click(); + await Utils.sleep(1000); + + let menuItemS2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0290_03')); + await menuItemS2.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0290 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0400 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0400_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0390 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0390_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0300 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0300_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItemS1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0300_02')); + await menuItemS1.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0300 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0380 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0380_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0380 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0410 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0410_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0350 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0350_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0350 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0420 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0420_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0420 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0430 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0430_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0370 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0370_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0370 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0440 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0440_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0460 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0460_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0450 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0450_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0250 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0250_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0250 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0090 + * @tc.name bindContextMenu radius test + * @tc.desc bindContextMenu radius test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090"); + await Utils.sleep(1000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0090_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.longClick(); + await Utils.sleep(500); + + await driver.click(buttonCenterPos.x, buttonCenterPos.y+200); + await Utils.sleep(200); + + let buttonSwitch: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuCorner0090_02')); + await buttonSwitch.click(); + await Utils.sleep(500); + await button.longClick(); + await Utils.sleep(500); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_CORNER_0090 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuDirectTest/UIComponentPopupboxMenuDirect.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuDirectTest/UIComponentPopupboxMenuDirect.test.ets new file mode 100644 index 000000000..ad3d20952 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuDirectTest/UIComponentPopupboxMenuDirect.test.ets @@ -0,0 +1,604 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuDirect() { + + describe('UIComponentPopupboxMenuDirect', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0010 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0010_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0070 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0070_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0060 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0060_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0100 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0100_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0050 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0050_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0080 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0080_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0090 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0090_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0110 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0110_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0200 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0200_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0040 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0040_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0030 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0030_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0150 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0150_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0140 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0140_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0190 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0190_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0180 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0180_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0180 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0160 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0160_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0170 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0170_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0210 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0210_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0120 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0120_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0220 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0220_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0240 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0240_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0230 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0230_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0260 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0260_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0250 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0250_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0250 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0270 + * @tc.name bindContextMenu direct test + * @tc.desc bindContextMenu direct test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuDirect0270_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_DIRECT_0270 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuEnhancementTest/UIComponentPopupboxMenuEnhancement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuEnhancementTest/UIComponentPopupboxMenuEnhancement.test.ets new file mode 100644 index 000000000..538e59fc9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuEnhancementTest/UIComponentPopupboxMenuEnhancement.test.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 { 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 UIComponentPopupboxMenuEnhancement() { + + describe('UIComponentPopupboxMenuEnhancement', () => { + /* + * @tc.number SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0010 + * @tc.name SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0010 + * @tc.desc nav width + */ + it('SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0010_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0010 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0080 + * @tc.name SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0080 + * @tc.desc nav width + */ + it('SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0080_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0080 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0090 + * @tc.name SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0090 + * @tc.desc nav width + */ + it('SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0090_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0090 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0100 + * @tc.name SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0100 + * @tc.desc nav width + */ + it('SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0100_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0100 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0170 + * @tc.name SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0170 + * @tc.desc nav width + */ + it('SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0170_001')) + await button.longClick() + await Utils.sleep(2000) + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuEnhancement0170_002')) + await menuItem.click() + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UICOMPONENT_POPUPBOX_MENU_ENHANCEMENT_0170 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuHmsymbolTest/UIComponentPopupboxMenuHmsymbol.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuHmsymbolTest/UIComponentPopupboxMenuHmsymbol.test.ets new file mode 100644 index 000000000..1ba787f11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuHmsymbolTest/UIComponentPopupboxMenuHmsymbol.test.ets @@ -0,0 +1,1060 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuHmsymbol() { + + describe('UIComponentPopupboxMenuHmsymbol', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0030 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0030_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0070 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0070_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0040 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0040_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0130 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0130_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0050 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0050_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0020 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0020_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0140 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0140_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0010 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0010_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0150 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0150_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0160 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0160_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0060 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0060_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0090 + * @tc.name bindMenu icon test + * @tc.desc bindMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0090_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0100 + * @tc.name bindMenu icon test + * @tc.desc bindMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0100_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0110 + * @tc.name bindMenu icon test + * @tc.desc bindMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0110_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0080 + * @tc.name bindMenu icon test + * @tc.desc bindMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0080_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0120 + * @tc.name bindMenu icon test + * @tc.desc bindMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0120_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0190 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0190_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0200 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0200_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0210 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0210_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0240 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0240_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0250 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0250_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0250 finish.`); + done(); + }) + + //11-1 + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0220 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0220_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0260 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0260_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0520 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0520 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0520_01')); + let buttonCenter = await button.getBoundsCenter(); + await button.longClick(); + await Utils.sleep(2000); + await driver.click(buttonCenter.x, buttonCenter.y+100); + + let buttonChangeProps: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0520_02')); + await buttonChangeProps.click(); + + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0520 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0270 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0270_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0270 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0310 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0310_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0310 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0280 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0280_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0280 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0340 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0340_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0340 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0330 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0330_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0330 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0350 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0350_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0350 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0360 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0360_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0360 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0320 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0320_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0320 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0390 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0390_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0400 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0400_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0420 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0420_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0420_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0420 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0410 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0410_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0410_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0430 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0430_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0430_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0440 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0440_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0440_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0450 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0450_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0450_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0460 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0460_01')); + await button.longClick(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0460_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0470 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0470_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0470 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0490 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0490 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0490_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0490 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0500 + * @tc.name bindContextMenu icon test + * @tc.desc bindContextMenu icon test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0500 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0500_01')); + let buttonCenter = await button.getBoundsCenter(); + await button.longClick(); + await Utils.sleep(2000); + + await driver.click(buttonCenter.x, buttonCenter.y+100); + + let buttonChangeProps: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuHmsymbol0500_02')); + await buttonChangeProps.click(); + + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_HMSYMBOL_0500 finish.`); + done(); + }) + + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuInterfaceTest/UIComponentPopupboxMenuInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuInterfaceTest/UIComponentPopupboxMenuInterface.test.ets new file mode 100644 index 000000000..9d266ef52 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuInterfaceTest/UIComponentPopupboxMenuInterface.test.ets @@ -0,0 +1,519 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentPopupboxMenuInterface() { + + describe('UIComponentPopupboxMenuInterface', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0140 + * @tc.desc nav width + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0140_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0140 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0220 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0220_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0230_001')) + await button.longClick().then(()=>{ + Logger.info(`renyj SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230 longClick---.`); + }) + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0230 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0250 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0250_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0250 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0260 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0260_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0260 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0270 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0270_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0270 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0280 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0280_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0280 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0020 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0020_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0020 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0170 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0170_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0170 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0190 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0190_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0190 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0040 + * @tc.desc showInSubWindow + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0040_001')) + await button.longClick() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0040 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0110 + * @tc.desc backgroundBlurStyle + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0110_001')) + let pointCenter = await button.getBoundsCenter(); + await button.longClick() + await Utils.sleep(3000) + await driver.click(pointCenter.x + 1000, pointCenter.y + 500) + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0110 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0240 + * @tc.name backgroundBlurStyle=BlurStyle.NONE + * @tc.desc backgroundBlurStyle=BlurStyle.NONE + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0240_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0240 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0210 + * @tc.name backgroundBlurStyle=BlurStyle.BACKGROUND_REGULAR + * @tc.desc backgroundBlurStyle=BlurStyle.BACKGROUND_REGULAR + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0210_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0210 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0290 + * @tc.name backgroundBlurStyle=BlurStyle.COMPONENT_ULTRA_THICK + * @tc.desc backgroundBlurStyle=BlurStyle.COMPONENT_ULTRA_THICK + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0290_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0290 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0080 + * @tc.name ContextMenuOptions=offset.$r("app.media string) + * @tc.desc ContextMenuOptions=offset.$r("app.media string) + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0080_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0080 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0120 + * @tc.name backgroundColor=Color.Pink + * @tc.desc backgroundColor=Color.Pink + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0120_01')) + await button.longClick(); + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0120 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0060 + * @tc.name ContextMenuOptions=offset {x:30px y:30px} + * @tc.desc ContextMenuOptions=offset {x:30px y:30px} + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0060_01')) + await button.longClick(); + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0060 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0010 + * @tc.name ContextMenuOptions=offset {x:30px y:30px} + * @tc.desc ContextMenuOptions=offset {x:30px y:30px} + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0100_01')) + await button.longClick(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0100 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0010 + * @tc.name bindMenu=> icon="../media/icon.png" + * @tc.desc bindMenu=> icon="../media/icon.png" + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0010_01')) + await button.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0010 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0070 + * @tc.name ContextMenuOptions=offset {x:30px y:30px} + * @tc.desc ContextMenuOptions=offset {x:30px y:30px} + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0070_01')) + await button.longClick(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0070 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0030 + * @tc.name bindMenu=> showInSubWindow: true + * @tc.desc bindMenu=> showInSubWindow: true + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0030_01')) + await button.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0030 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0180 + * @tc.name backgroundBlurStyle=BlurStyle.Regular + * @tc.desc backgroundBlurStyle=BlurStyle.Regular + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0180_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0180 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0200 + * @tc.name backgroundBlurStyle=BlurStyle.BACKGROUND_THIN + * @tc.desc backgroundBlurStyle=BlurStyle.BACKGROUND_THIN + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0200_01')) + await button.longClick(); + windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0200 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0150 + * @tc.name backgroundColor=Color.Gray + * @tc.desc backgroundColor=Color.Gray + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0150_01')) + await button.longClick(); + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0150 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0130 + * @tc.name backgroundColor=0x008000 + * @tc.desc backgroundColor=0x008000 + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuInterface0130_01')) + await button.longClick(); + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_INTERFACE_0130 finish.`); + done() + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuPcheightTest/UIComponentPopupboxMenuPcheight.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuPcheightTest/UIComponentPopupboxMenuPcheight.test.ets new file mode 100644 index 000000000..ec753b516 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuPcheightTest/UIComponentPopupboxMenuPcheight.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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' + +export default function UIComponentPopupboxMenuPcheight() { + + describe('UIComponentPopupboxMenuPcheight', () => { + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0050 + * @tc.name menu list + * @tc.desc menu list + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220"); + await Utils.sleep(2000); + + //Step2: click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0220_02')); + await button.longClick(); + await Utils.sleep(2000); + + let list: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0220_01')); + let listCenterPos = await list.getBoundsCenter(); + await driver.swipe(listCenterPos.x, listCenterPos.y, listCenterPos.x, listCenterPos.y - 56); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_BINDCONTEXTMENUISSHOWN_0010 + * @tc.name BindMenu 20 + * @tc.desc BindMenu 20 + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010"); + await Utils.sleep(2000); + + //Step1: click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0010_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 + * @tc.desc nav width +*/ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0080_001')) + await button.longClick() + await Utils.sleep(2000) + await await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0070 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0070 + * @tc.desc nav width + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0070_001')) + await button.longClick() + await Utils.sleep(2000) + await await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0020 + * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0020 + * @tc.desc nav width + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuPcheight0020_001')) + await button.longClick() + await Utils.sleep(2000) + await await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_PCHEIGHT_0020 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuScenariosTest/UIComponentPopupboxMenuScenarios.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuScenariosTest/UIComponentPopupboxMenuScenarios.test.ets new file mode 100644 index 000000000..5e10cc9e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuScenariosTest/UIComponentPopupboxMenuScenarios.test.ets @@ -0,0 +1,3494 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuScenarios() { + + describe('UIComponentPopupboxMenuScenarios', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1400 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400"); + await Utils.sleep(2000); + + //Step1: click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1400_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1660 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1660 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1660_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1660 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0750 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0750 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0750_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0750 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1180 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180") + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1180_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1180 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1900 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1900 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900") + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1900_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1900 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0670 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0670_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0670 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1470 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1470_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1470 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0710 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710") + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0710_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0710 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0420 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0420_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0420 finish.`); + done() + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1570 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1570 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1570_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1570 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1210 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1210_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1480 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1480 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1480_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1480 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1500 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1500 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1500_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1500 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1250 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1250_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1250 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1850 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1850 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1850_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1850 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0500 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0500 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0500_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0500 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1550 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1550 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1550_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1550 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0730 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0730 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0730_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0730 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1670 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1670_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1670 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0920 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0920 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0920_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0920 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1820 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1820 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1820_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1820 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1540 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1540 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1540_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1540 finish.`); + done(); + }) + + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0400 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0400_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0820 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0820 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0820_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0820 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1040 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1040_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1790 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1790 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1790_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1790 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1030 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1030_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1760 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1760 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1760_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1760 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1310 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1310_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1310 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0790 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0790 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0790_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0790 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1190 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1190_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1610 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1610_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1610 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1380 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1380_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1380 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1910 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1910_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1910 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1650 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1650 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1650_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1650 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0910 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0910_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0910 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1390 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1390_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1800 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1800 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800"); + await Utils.sleep(2000); + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1800_01')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1800 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1090 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1090_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1720 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1720 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1720_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1720 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0390 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0390_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1100 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1100_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0410 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0410_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0510 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0510 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0510_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0510 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0630 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0630_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0630 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1450 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1450_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1890 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1890 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1890_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1890 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1320 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1320_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1320 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1150 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1150_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0860 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0860 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0860_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0860 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1920 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1920 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1920_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1920 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1590 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1590_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1590 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0930 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0930 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0930_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0930 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0810 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0810 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0810_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0810 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0450 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0450_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0720 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0720 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0720_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0720 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1050 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1050_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0530 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0530 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0530_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0530 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0970 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0970 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0970_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0970 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0850 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0850 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0850_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0850 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1700 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1700_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1020 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1020_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0840 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0840 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0840_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0840 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1360 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1360_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1360 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1280 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1280_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1280 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0780 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0780 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0780_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0780 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0570 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0570 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0570_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0570 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1270 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1270_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1270 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0610 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0610_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0610 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0640 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0640_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0640 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1330 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1330_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1330 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1420 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1420_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1420 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1460 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1460_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0700 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0700_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1000 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1000 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1000_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1000 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0960 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0960 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0960_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0960 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0460 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0460_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1110 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1110_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1830 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1830 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1830_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1830 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0950 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0950 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0950_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0950 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1870 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1870 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1870_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1870 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1230 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1230_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1490 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1490 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1490_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1490 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1240 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1240_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0680 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0680 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0680_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0680 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0830 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0830 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0830_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0830 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1810 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1810 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1810_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1810 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1600 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1600 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1600_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1600 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0440 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0440_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1200 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1200_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0520 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0520 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0520_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0520 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0990 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0990 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0990_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0990 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1220 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1220_01')) + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1220 finish.`); + done(); + }) + + //10-29 + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0870 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0870 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0870_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0870 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1680 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1680 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1680_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1680 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1160 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1160_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0580 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0580_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0580 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1370 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1370_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1370 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1730 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1730 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1730_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1730 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1750 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1750', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1750 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1750_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1750 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1410 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1410_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1130 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1130_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0480 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0480 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0480_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0480 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1580 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1580_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1580 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1170 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1170_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0600 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0600 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0600_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0600 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0380 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0380_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0380 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1350 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1350_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1350 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0620 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0620 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0620_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0620 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0430 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0430_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1080 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1080_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1140 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1140_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0770 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0770 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0770_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0770 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0550 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0550 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0550_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0550 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0980 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0980_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0980 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0760 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0760', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0760 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0760_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0760 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1120 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1120_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0470 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0470_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0470 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0650 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0650 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0650_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0650 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1640 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1640_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1640 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0800 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0800 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0800_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0800 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1070 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1070_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1300 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1300_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1300 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0940 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0940 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0940_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0940 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0740 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0740 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0740_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0740 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1010 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1010_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1740 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1740 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1740_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1740 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1860 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1860 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1860_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1860 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0900 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0900 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0900_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0900 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1880 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1880 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1880_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1880 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0690 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0690 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0690_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0690 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1690 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1690 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1690_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1690 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1840 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1840 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1840_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1840 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0490 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0490 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0490_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0490 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0560 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0560 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0560_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0560 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1630 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1630_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1630 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1430 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1430_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0540 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0540 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0540_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0540 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0370 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0370_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0370 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1780 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1780 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1780_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1780 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0880 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0880 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0880_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0880 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0890 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0890 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0890_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0890 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1620 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1620 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1620_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1620 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1260 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1260_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1340 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1340_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1340 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1290 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1290_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1290 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0590 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0590_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0590 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1770 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1770 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1770_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1770 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1710 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1710_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1710 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0660 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0660 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios0660_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_0660 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1440 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1440_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1060 + * @tc.name bindContextMenu enableArrow + * @tc.desc bindContextMenu enableArrow + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuScenarios1060_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_SCENARIOS_1060 finish.`); + done(); + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuStyleEnhancementTest/UIComponentPopupboxMenuStyleEnhancement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuStyleEnhancementTest/UIComponentPopupboxMenuStyleEnhancement.test.ets new file mode 100644 index 000000000..c46412f48 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuStyleEnhancementTest/UIComponentPopupboxMenuStyleEnhancement.test.ets @@ -0,0 +1,2076 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuStyleEnhancement() { + + describe('UIComponentPopupboxMenuStyleEnhancement', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0060 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0060_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0100 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0100_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0110 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0110_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0140 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0140_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0090 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0090_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0080 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0080_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0120 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0120_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0130 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0130_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0150 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0150_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0160 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0160_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0600 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0600 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0600_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0600 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0550 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0550 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0550_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0550 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0560 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0560 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0560_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0560 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0510 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0510 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0510_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0510 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0580 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0580_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0580 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0520 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0520 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0520_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0520 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0570 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0570 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0570_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0570 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0540 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0540 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0540_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0540 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0640 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0640_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0640 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0610 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0610_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0610 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0620 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0620 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0620_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0620 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0650 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0650 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0650_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0650 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0630 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0630_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0630 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0590 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0590_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0590 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0660 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0660 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0660_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0660 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1060 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1060_01')); + let buttonSwitch: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1060_02')); + let buttonCenterPos = await button.getBoundsCenter(); + await buttonSwitch.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(500); + await driver.click(buttonCenterPos.x, buttonCenterPos.y+100); + await Utils.sleep(500); + + await buttonSwitch.click(); + await Utils.sleep(1000); + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1030 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1030_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1030_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0170 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0170_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0180 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0180_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0180 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0190 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0190_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0200 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0200_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0210 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0210_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0220 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0220_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0250 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0250_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0250 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0240 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0240_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0230 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0230_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0260 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0260_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0280 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0280_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0280 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0680 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0680 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0680_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0680 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0670 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0670_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0670 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0310 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0310_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0310 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0710 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0710_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0710 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0700 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0700_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0320 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0320_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0320 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0740 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0740 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0740_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0740 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0690 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0690 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0690_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0690 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0770 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0770', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0770 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0770_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0770 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0780 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0780 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0780_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0780 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0790 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0790 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0790_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0790 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0800 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0800 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0800_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0800 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0340 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0340_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0340 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0810 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0810 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0810_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0810 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0330 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0330_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0330 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0820 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0820 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0820_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0820 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0370 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0370_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0370 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0380 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0380_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0380 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0360 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0360_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0360 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0350 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0350_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0350 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0400 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0400_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0410 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0410_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0390 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0390_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0420 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0420_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0420 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0440 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0440_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0430 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0430_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0840 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0840 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0840_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0840 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0450 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0450_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0460 + * @tc.name bindContextMenu Menu style enhancement test + * @tc.desc bindContextMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0460_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0470 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0470_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0470 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0480 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0480 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0480_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0480 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0870 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0870 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0870_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0870 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0880 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0880', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0880 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0880_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0880 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0900 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0900 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0900_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0900 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0910 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0910_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0910 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0860 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0860', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0860 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0860_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0860 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0830 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0830 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0830_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0830 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0850 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0850', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0850 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0850_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0850 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0890 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0890 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0890_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0890 finish.`); + done(); + }) + + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0920 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0920 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0920_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0920 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0940 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0940 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0940_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0940_02')); + await menuItem.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0940 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0930 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0930 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0930_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0930_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0930_03')); + await subMenuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0930 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0970 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0970 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0970_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0970_02')); + await menuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0970 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0950 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0950 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0950_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0950_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0950_03')); + await subMenuItem1.longClick(); + await Utils.sleep(1000); + + let subMenuItem2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0950_04')); + await subMenuItem2.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0950 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0960 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0960 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0960_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0960_02')); + await menuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0960 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0980 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0980_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0980_02')); + await menuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0980 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0990 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0990 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0990_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement0990_02')); + await menuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_0990 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1000 + * @tc.name bindMenu Menu style enhancement test + * @tc.desc bindMenu Menu style enhancement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1000 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1000_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1000_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1000_03')); + await subMenuItem1.click(); + await Utils.sleep(1000); + + let subMenuItem2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuStyleEnhancement1000_04')); + await subMenuItem2.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_STYLE_ENHANCEMENT_1000 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuTouchTest/UIComponentPopupboxMenuTouch.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuTouchTest/UIComponentPopupboxMenuTouch.test.ets new file mode 100644 index 000000000..ad8cb7bea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuTouchTest/UIComponentPopupboxMenuTouch.test.ets @@ -0,0 +1,646 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuTouch() { + + describe('UIComponentPopupboxMenuTouch', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0010 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0010_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0020 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0020_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0020_02')); + await menuItem.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0040 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0040_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0030 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0030_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(1000); + + await driver.click(buttonCenterPos.x, buttonCenterPos.y - 200) + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_01', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_01 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_03')); + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await subMenuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_01 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_02', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_02 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0070_03')); + await subMenuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0070_02 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_01', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_01 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0110_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0110_02')); + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + + await menuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_01 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_02', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_02 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0110_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0110_02')); + await menuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0110_02 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0090 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0090_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0090_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0090_03')); + await subMenuItem1.longClick(); + await Utils.sleep(1000); + + let subMenuItem2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0090_04')); + await subMenuItem2.longClick(); + await Utils.sleep(1000); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await subMenuItem1.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0160 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0160_01')); + await button.click(); + await Utils.sleep(2000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0160_02')); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await subMenuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0120 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0120_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0120_02')); + let menuItemCenterPos = await menuItem.getBoundsCenter(); + await driver.longClick(menuItemCenterPos.x, menuItemCenterPos.y); + await Utils.sleep(1000); + + await driver.longClick(menuItemCenterPos.x + 300, menuItemCenterPos.y); + await Utils.sleep(1000); + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await driver.longClick(menuItemCenterPos.x, menuItemCenterPos.y); + + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0130 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0130_01')); + await button.click(); + await Utils.sleep(500) + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0130_02')); + let menuItemCenterPos = await menuItem.getBoundsCenter(); + await menuItem.longClick() + await Utils.sleep(500) + + await driver.click(5, menuItemCenterPos.y) + await Utils.sleep(500) + + let testButton: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0130_03')); + await testButton.longClick(); + await Utils.sleep(500) + + await button.click(); + await Utils.sleep(500); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + + let menuItem2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0130_02')); + await menuItem2.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0060 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0060_01')); + await button.click(); + await Utils.sleep(1000); + let menuItem1: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0060_02')); + let menuItem2: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0060_03')); + + await menuItem1.longClick(); + await Utils.sleep(500); + await menuItem2.longClick(); + await Utils.sleep(500); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await menuItem1.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0150 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0150_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0150_02')); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await menuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0100 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0100_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(1000); + await driver.click(buttonCenterPos.x, buttonCenterPos.y); + + let switchButton: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0100_02')); + await switchButton.click() + await Utils.sleep(1000); + await switchButton.click() + await Utils.sleep(1000); + + await windowSnap.snapShot() + await Utils.sleep(2000); + + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0140 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0140_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0140_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0140_03')); + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await subMenuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0170 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0170_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0170_02')); + + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + + await menuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0180 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0180_01')); + await button.click(); + await Utils.sleep(2000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0180_02')); + await menuItem.click(); + await Utils.sleep(1000); + + let subMenuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0180_03')); + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + await subMenuItem.longClick(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0180 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0190 + * @tc.name bindContextMenu touch test + * @tc.desc bindContextMenu touch test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + + let SetHButton: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0190_02')); + await SetHButton.click(); + await Utils.sleep(1000); + + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0190_01')); + await button.click(); + await Utils.sleep(1000); + + let menuItem: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuTouch0190_03')); + // setTimeout(() => { + // windowSnap.snapShot(); + // }, 1200); + + await menuItem.longClick() + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_TOUCH_0190 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuUxconsistencyTest/UIComponentPopupboxMenuUxconsistency.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuUxconsistencyTest/UIComponentPopupboxMenuUxconsistency.test.ets new file mode 100644 index 000000000..a18a9b3a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuUxconsistencyTest/UIComponentPopupboxMenuUxconsistency.test.ets @@ -0,0 +1,165 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuUxconsistency() { + + describe('UIComponentPopupboxMenuUxconsistency', () => { + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0040 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040"); + await Utils.sleep(2000); + + //Step1: click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0040_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0070 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0070_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0010 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0010_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0050 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0050_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0080 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0080_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0030 + * @tc.name bindContextMenu preview + * @tc.desc bindContextMenu preview + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030"); + await Utils.sleep(2000); + + //Step1: gClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuUxconsistency0030_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_UXCONSISTENCY_0030 finish.`); + done(); + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuWidthAndPlacementConformuxTest/UIComponentPopupboxMenuWidthAndPlacementConformux.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuWidthAndPlacementConformuxTest/UIComponentPopupboxMenuWidthAndPlacementConformux.test.ets new file mode 100644 index 000000000..deeac45e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxMenuWidthAndPlacementConformuxTest/UIComponentPopupboxMenuWidthAndPlacementConformux.test.ets @@ -0,0 +1,1917 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import { Rect } from '@ohos.graphics.scene' + +export default function UIComponentPopupboxMenuWidthAndPlacementConformux() { + + describe('UIComponentPopupboxMenuWidthAndPlacementConformux', () => { + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1490 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1490 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1490_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1490 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1250 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1250 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1250_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1250 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1510 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1510 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1510_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1510 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0970 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0970', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0970 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0970_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0970 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1100 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1100 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1100_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1100 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1000 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1000', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1000 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1000_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1000 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1570 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1570 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1570_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1570 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1200 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1200 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1200_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1200 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1190 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1190 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1190_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1190 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1480 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1480 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1480_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1480 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1400 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1400 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1400_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1400 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1660 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1660', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1660 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1660_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1660 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1390 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1390 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1390_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1390 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1690 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1690 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1690_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1690 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1130 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1130 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1130_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1130 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1110 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1110 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1110_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1110 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1430 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1430 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1430_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1430 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1080 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1080 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1080_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1080 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0980 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0980', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0980 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0980_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0980 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1420 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1420 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1420_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1420 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1590 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1590 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1590_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1590 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1410 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1410 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1410_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1410 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1710 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1710 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1710_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1710 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0920 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0920 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0920_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0920 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1440 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1440 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1440_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1440 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1230 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1230 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1230_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1230 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1670 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1670 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1670_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1670 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0910 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0910', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0910 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0910_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0910 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1260 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1260 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1260_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1260 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1700 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1700 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1700_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1700 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1460 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1460 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1460_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1460 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1140 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1140 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1140_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1140 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1290 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1290 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1290_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1290 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0960 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0960', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0960 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0960_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0960 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0900 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0900 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0900_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0900 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1170 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1170 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1170_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1170 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1280 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1280 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1280_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1280 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1330 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1330 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1330_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1330 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1470 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1470 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1470_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1470 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1540 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1540 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1540_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1540 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1310 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1310 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1310_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1310 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0950 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0950', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0950 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0950_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0950 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1550 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1550 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1550_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1550 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1020 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1020 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1020_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1020 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1450 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1450 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1450_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1450 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1350 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1350 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1350_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1350 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1370 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1370 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1370_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1370 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1050 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1050 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1050_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1070 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1070 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1070_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1070 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1560 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1560 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1560_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1560 finish.`); + done(); + }) + + + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0940 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0940', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0940 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0940_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0940 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1630 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1630 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1630_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1630 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0930 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0930', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0930 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0930_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0930 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1500 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1500 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1500_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1500 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1580 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1580 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1580_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1580 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1160 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1160 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1160_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1160 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1610 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1610 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1610_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1610 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1520 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1520 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1520_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1520 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1240 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1240 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1240_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1240 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1090 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1090 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1090_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1090 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1300 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1300 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1300_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1300 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1120 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1120 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1120_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1120 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1360 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1360 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1360_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1360 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1600 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1600 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1600_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1600 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1150 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1150 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1150_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1150 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1320 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1320 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1320_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1320 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1620 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1620 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1620_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1620 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1340 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1340 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1340_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1340 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1270 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1270 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1270_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1270 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1060 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1060 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1060_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1060 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1030 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1030 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1030_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1030 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1680 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1680 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1680_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1680 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1380 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1380 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1380_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1380 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1210 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1210 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1210_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1210 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0990 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0990', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0990 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux0990_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_0990 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1650 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1650', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1650 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1650_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1650 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1010 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1010 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1010_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1010 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1220 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1220 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1220_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1220 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1530 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1530 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1530_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1530 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1640 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1640 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1640_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1640 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1040 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1040 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1040_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1040 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1180 + * @tc.name bindContextMenu width/placement test + * @tc.desc bindContextMenu width/placement test + * @tc.level Level 3 + */ + it('SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1180 start.`); + Settings.createWindow("testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180"); + await Utils.sleep(2000); + + //Step1: longClick show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentPopupboxMenuWidthAndPlacementConformux1180_01')); + await button.longClick(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_MENU_WIDTHANDPLACEMENTCONFORMUX_1180 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSliderSliderInterfaceTest/UIComponentSliderSliderInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSliderSliderInterfaceTest/UIComponentSliderSliderInterface.test.ets new file mode 100644 index 000000000..37ebf9deb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSliderSliderInterfaceTest/UIComponentSliderSliderInterface.test.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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Component, Driver, ON, PointerMatrix } from '@ohos.UiTest' +import window from '@ohos.window' + +export default function UIComponentSliderSliderInterface() { + describe('UIComponentSliderSliderInterface', () => { + /* + * @tc.number SUB_ACE_UI_COMPONENT_SLIDER_SLIDER_INTERFACE_002 + * @tc.name SUB_ACE_UI_COMPONENT_SLIDER_SLIDER_INTERFACE_002 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_SLIDER_SLIDER_INTERFACE_002', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SLIDER_SLIDER_INTERFACE_002 start.`); + Settings.createWindow("testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + let slider: Component = await driver.findComponent(ON.type('Slider')); + let positionInfo = await slider.getBoundsCenter() + let borderInfo = await slider.getBounds() + let x = positionInfo.x + let y = positionInfo.y + let pointers: PointerMatrix = PointerMatrix.create(1, 2); + pointers.setPoint(0, 0, { + x: x , y: y + }); + pointers.setPoint(0, 1, { + x: borderInfo.right, y: y + }); + await driver.injectMultiPointerAction(pointers, 600); + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SLIDER_SLIDER_INTERFACE_002 finish.`); + done() + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets index daf797ea0..8dd7e6550 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets @@ -19,7 +19,7 @@ import windowSnap from '../model/snapShot'; import Logger from '../model/Logger'; import Utils from '../model/Utils'; import uiAppearance from '@ohos.uiAppearance'; -import { Driver ,ON } from '@ohos.UiTest' +import { Driver ,ON, Component } from '@ohos.UiTest' /* * UIComponentUISupportColor @@ -41,6 +41,455 @@ export default function UIComponentUISupportColor() { describe('UIComponentUISupportColor', () => { + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0570 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0570 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0570_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(2000); + await driver.click(buttonCenterPos.x+200, buttonCenterPos.y) + await Utils.sleep(1000); + + let buttonSwitchMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0570_02')); + await buttonSwitchMode.click() + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0570 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0610 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0610 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0610_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0610 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0600 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0600 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0600_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(2000); + await driver.click(buttonCenterPos.x+200, buttonCenterPos.y) + await Utils.sleep(1000); + + let buttonSwitchMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0600_02')); + await buttonSwitchMode.click() + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0600 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0630 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0630', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0630 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0630_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0630 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0590 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0590 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0590_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(2000); + await driver.click(buttonCenterPos.x+200, buttonCenterPos.y) + await Utils.sleep(1000); + + let buttonSwitchMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0590_02')); + await buttonSwitchMode.click() + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0590 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0580 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0580', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0580 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0580_01')); + let buttonCenterPos = await button.getBoundsCenter(); + await button.click(); + await Utils.sleep(2000); + await driver.click(buttonCenterPos.x+200, buttonCenterPos.y) + await Utils.sleep(1000); + + let buttonSwitchMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0580_02')); + await buttonSwitchMode.click() + + await button.click(); + await Utils.sleep(1000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0580 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0620 + * @tc.name bindMenu ThemeColorMode test + * @tc.desc bindMenu ThemeColorMode test + * @tc.level Level 3 + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0620', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0620 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620"); + await Utils.sleep(2000); + + //Step1: Click show menu + let driver: Driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0620_01')); + await button.click(); + await Utils.sleep(2000); + + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0620 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1510 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1510 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1510 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor1510_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1510 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1500 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1500 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1500 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor1500_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1500 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1480 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1480 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1480 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor1480_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1480 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1520 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1520 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1520 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520") + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1520 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1530 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1530 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1530 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530") + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1530 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1540 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1540 + * @tc.desc ThemeColorMode.SYSTEM + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1540 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540") + await Utils.sleep(3000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1540 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1490 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1490 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1490 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor1490_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_1490 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0830 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0830 + * @tc.desc ThemeColorMode.DARK + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0830', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0830 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0830_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0830 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0820 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0820 + * @tc.desc ThemeColorMode.LIGHT + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0820', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0820 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0820_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0820 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0780 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0780 + * @tc.desc ThemeColorMode.LIGHT + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0780', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0780 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0780_001')) + let buttonMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0780_002')) + await button.click() + await Utils.sleep(2000) + await buttonMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0780 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0790 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0790 + * @tc.desc ThemeColorMode.LIGHT + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0790', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0790 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0790_001')) + let buttonMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0790_002')) + await button.click() + await Utils.sleep(2000) + await buttonMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0790 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0840 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0840 + * @tc.desc ThemeColorMode.SYSTEM + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0840', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0840 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0840_001')) + await button.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0840 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0800 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0800 + * @tc.desc ThemeColorMode.LIGHT + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0800', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0800 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0800_001')) + let buttonMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0800_002')) + await button.click() + await Utils.sleep(2000) + await buttonMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0800 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0810 + * @tc.name SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0810 + * @tc.desc ThemeColorMode.LIGHT + */ + it('SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0810', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0810 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810") + await Utils.sleep(3000) + let driver: Driver = Driver.create() + let button: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0810_001')) + let buttonMode: Component = await driver.findComponent(ON.id('UIComponentUISupportColor0810_002')) + await button.click() + await Utils.sleep(2000) + await buttonMode.click() + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(3000) + Logger.info('TEST', `SUB_ACE_UILCOMPONENT_UISUPPORT_COLOR_0810 finish.`); + done() + }) /* * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010.ets new file mode 100644 index 000000000..438a75a78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0010 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State menuCloseMsg: string = ""; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0010_02") + .draggable(true) + .onDisAppear(() => { + this.menuCloseMsg = "Menu closed !!!!!" + }) + } + + build() { + Column({space:50}) { + Text('ClickShowMenu-0010') + .backgroundColor(Color.Blue) + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0010_01") + .bindMenu(this.MyMenu, + {}) + Text(this.menuCloseMsg).fontColor(Color.Red).fontSize(24) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020.ets new file mode 100644 index 000000000..1388676ef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0020 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('30px') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0020') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0020_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030.ets new file mode 100644 index 000000000..34540b48e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0030 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0030') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0030_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040.ets new file mode 100644 index 000000000..f48bf7a13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0040 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('aaaa') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0040') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0040_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060.ets new file mode 100644 index 000000000..37367a1aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width($r('app.string.size_30_px')) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0060') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0060_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080.ets new file mode 100644 index 000000000..2fa74df97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080.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 ArkUIComponentFunctionSpecialComponentsMenuInterface0080 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(this.iconStr).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(this.iconStr).selected(true) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0080') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0080_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120.ets new file mode 100644 index 000000000..313708e68 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120.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 '@ohos.promptAction'; + +@Entry +@Component +struct ArkUIComponentFunctionSpecialComponentsMenuInterface0120 { + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0120_02") + .selected(true) + .onChange((selected: boolean) => { + promptAction.showToast({ + message: 'Menu select toast!!!!', + duration: 20000, + }); + }) + + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0120') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0120_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130.ets new file mode 100644 index 000000000..67b173ea5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130.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 '@ohos.promptAction'; + +@Entry +@Component +struct UIComponentPopupboxMenuDirect0130 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0130_02") + .onChange((selected: boolean) => { + promptAction.showToast({ + message: 'Menu select toast!!!!', + duration: 20000, + }); + }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0130') + .height(80) + .id("ArkUIComponentFunctionSpecialComponentsMenuInterface0130_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020.ets new file mode 100644 index 000000000..96a26d351 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020.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 UIComponentButtonSliderLayout0020 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .trackThickness(60) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020.ets new file mode 100644 index 000000000..505bf3338 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020.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 UIComponentButtonSliderRange0020 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030.ets new file mode 100644 index 000000000..5c8adae64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030.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 UIComponentButtonSliderRange0030 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050.ets new file mode 100644 index 000000000..37f04a894 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050.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 UIComponentButtonSliderRange0050 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 10, + min: 10, + max: 10 + }) + .slideRange({ + from: 10, + to: 10 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060.ets new file mode 100644 index 000000000..81e4886b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060.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 UIComponentButtonSliderRange0060 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 30, + min: 10, + max: 20 + }) + .slideRange({ + from: 40, + to: 50 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070.ets new file mode 100644 index 000000000..703053217 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070.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 UIComponentButtonSliderRange0070 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 30, + min: 40, + max: 50 + }) + .slideRange({ + from: 20, + to: 10 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080.ets new file mode 100644 index 000000000..3229025ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080.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 UIComponentButtonSliderRange0080 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 40, + max: 30 + }) + .slideRange({ + from: 100, + to: 10 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090.ets new file mode 100644 index 000000000..8e769a25c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090.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 UIComponentButtonSliderRange0090 { + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 30, + max: 10 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100.ets new file mode 100644 index 000000000..fe063b4ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100.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 UIComponentButtonSliderRange0100 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 120, + min: 130, + max: 100 + }) + .slideRange({ + from: 130, + to: 100 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110.ets new file mode 100644 index 000000000..54f4b5cdd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110.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 UIComponentButtonSliderRange0110 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120.ets new file mode 100644 index 000000000..1230c7d72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120.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 UIComponentButtonSliderRange0120 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130.ets new file mode 100644 index 000000000..c55dd47ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130.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 UIComponentButtonSliderRange0130 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140.ets new file mode 100644 index 000000000..ee561e3e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140.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 UIComponentButtonSliderRange0140 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150.ets new file mode 100644 index 000000000..517a62b71 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150.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 UIComponentButtonSliderRange0150 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160.ets new file mode 100644 index 000000000..9cd5cf9b7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160.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 UIComponentButtonSliderRange0160 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170.ets new file mode 100644 index 000000000..adb9dbea9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170.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 UIComponentButtonSliderRange0170 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180.ets new file mode 100644 index 000000000..6b8a02e53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180.ets @@ -0,0 +1,35 @@ +1/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderRange0180 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190.ets new file mode 100644 index 000000000..5f15dd170 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190.ets @@ -0,0 +1,35 @@ +1/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderRange0190 { + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + step: 10 + }) + .slideRange({ + from: 12, + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200.ets new file mode 100644 index 000000000..1374e549f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200.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 UIComponentButtonSliderRange0200 { + build() { + Column({ space: 8 }) { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + to: 199 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210.ets new file mode 100644 index 000000000..8f9c06264 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210.ets @@ -0,0 +1,43 @@ +1/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderRange0210 { + @State blockStyle: SliderBlockType = SliderBlockType.DEFAULT; + + build() { + Column({ space: 8 }) { + Button('SliderBlockType') + .id('UIComponentButtonSliderRange0210_001') + .onClick(() => { + this.blockStyle = SliderBlockType.SHAPE + }) + Slider({ + value: 20, + min: 0, + max: 100 + }) + .blockStyle({ + type: this.blockStyle, + shape: new Path({ commands: 'M60 60 M30 30 L15 56 L45 56 Z' }) + }) + .slideRange({ + from: 0, + to: 60 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220.ets new file mode 100644 index 000000000..8c2479733 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220.ets @@ -0,0 +1,36 @@ +1/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderRange0220 { + @State sliderDirection: Axis = Axis.Vertical; + + build() { + Column({ space: 8 }) { + Button('direction') + .id('UIComponentButtonSliderRange0220_001') + .onClick(() =>{ + this.sliderDirection = Axis.Horizontal; + }) + Slider({ + value: 0, + min: 0, + max: 100, + direction: this.sliderDirection + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230.ets new file mode 100644 index 000000000..038c5abcd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230.ets @@ -0,0 +1,37 @@ +1 /* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonSliderRange0230 { + @State reverse: boolean = false; + + build() { + Column({ space: 8 }) { + Button('reverse') + .id('UIComponentButtonSliderRange0230_001') + .onClick(() => { + this.reverse = !this.reverse; + }) + Slider({ + value: 20, + min: 0, + max: 100, + reverse: this.reverse + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240.ets new file mode 100644 index 000000000..81aa28527 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240.ets @@ -0,0 +1,48 @@ +1 /* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonSliderRange0240 { + @State showSteps: boolean = false; + @State showTips: boolean = false; + + build() { + Column({ space: 8 }) { + Button('showSteps') + .id('UIComponentButtonSliderRange0240_001') + .onClick(() => { + this.showSteps = !this.showSteps; + }) + Button('showTips') + .id('UIComponentButtonSliderRange0240_002') + .onClick(() => { + this.showTips = !this.showTips; + }) + Slider({ + value: 20, + min: 0, + max: 100 + }) + .showSteps(this.showSteps) + .showTips(this.showTips) + .slideRange({ + from: 0, + to: 60 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250.ets new file mode 100644 index 000000000..cedd62fcb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250.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 UIComponentButtonSliderRange0250 { + @State sliderInteraction: SliderInteraction = SliderInteraction.SLIDE_AND_CLICK; + + build() { + Column({ space: 8 }) { + Button('sliderInteraction') + .id('UIComponentButtonSliderRange0250_001') + .onClick(() => { + this.sliderInteraction = SliderInteraction.SLIDE_AND_CLICK_UP; + }) + Slider({ + value: 0, + min: 0, + max: 100 + }) + .sliderInteractionMode(this.sliderInteraction) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260.ets new file mode 100644 index 000000000..2eacaa41b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260.ets @@ -0,0 +1,47 @@ +1 /* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentButtonSliderRange0260 { + @State minResponsiveDistance: number = 0; + + build() { + Column({ space: 8 }) { + Button('minResponsiveDistance5') + .id('UIComponentButtonSliderRange0260_001') + .onClick(() => { + this.minResponsiveDistance = 5; + }) + Button('minResponsiveDistance-5') + .id('UIComponentButtonSliderRange0260_002') + .onClick(() => { + this.minResponsiveDistance = -5; + }) + Button('minResponsiveDistance100') + .id('UIComponentButtonSliderRange0260_003') + .onClick(() => { + this.minResponsiveDistance = 100; + }) + Slider({ + value: 0, + min: 0, + max: 200 + }) + .minResponsiveDistance(this.minResponsiveDistance) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280.ets new file mode 100644 index 000000000..368b8a8a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280.ets @@ -0,0 +1,36 @@ +1/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderRange0280 { + @State enable: boolean = true; + + build() { + Column({ space: 8 }) { + Button('enable') + .id('UIComponentButtonSliderRange0280_001') + .onClick(() => { + this.enable = !this.enable; + }) + Slider({ + value: 0, + min: 0, + max: 100 + }) + .enabled(this.enable) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290.ets new file mode 100644 index 000000000..481c9f4ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderRange0290 { + @State isFullScreen: boolean = false + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 8 }) { + Button('horVerSwitch') + .id('UIComponentButtonSliderRange0290_001') + .onClick(() => { + this.horVerSwitch(); + }) + Slider({ + value: 20, + min: 0, + max: 100 + }) + .slideRange({ + from: 0, + to: 60 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010.ets new file mode 100644 index 000000000..e051414cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderSelectedborderradius0010 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State trackBorderRadius: Length = 1; + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Button('InSet滑块在滑轨内') + .id("UIComponentButtonSliderSelectedborderradius0010_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.InSet; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .height(80) + .trackBorderRadius(this.trackBorderRadius) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020.ets new file mode 100644 index 000000000..f079a6ff7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020.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 UIComponentButtonSliderSelectedborderradius0020 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State trackBorderRadius: Length = 1; + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Button('InSet滑块在滑轨内') + .id("UIComponentButtonSliderSelectedborderradius0020_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.InSet; + }) + Button('底板圆角') + .id("UIComponentButtonSliderSelectedborderradius0020_002") + .onClick(()=>{ + this.trackBorderRadius = '1vp'; + }) + Button('已滑动部分圆角半径') + .id("UIComponentButtonSliderSelectedborderradius0020_003") + .onClick(()=>{ + this.selectedBorderRadius = '10vp'; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .height(80) + .trackBorderRadius(this.trackBorderRadius) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030.ets new file mode 100644 index 000000000..d4e9c682d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderSelectedborderradius0030 { + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackBorderRadius: Length = 1; + + build() { + Column({ space: 8 }) { + Button('InSet滑块在滑轨内') + .id("UIComponentButtonSliderSelectedborderradius0030_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.InSet; + }) + Button('底板圆角') + .id("UIComponentButtonSliderSelectedborderradius0030_002") + .onClick(()=>{ + this.trackBorderRadius = '10vp'; + }) + Button('已滑动部分圆角半径') + .id("UIComponentButtonSliderSelectedborderradius0030_003") + .onClick(()=>{ + this.selectedBorderRadius = '5vp' + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackBorderRadius(this.trackBorderRadius) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170.ets new file mode 100644 index 000000000..91d574c21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170.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 UIComponentButtonSliderSelectedborderradius0170 { + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Button('None无滑块') + .id("UIComponentButtonSliderSelectedborderradius0170_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.NONE; + this.selectedBorderRadius = $r('app.string.selectedBorderRadius') + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200.ets new file mode 100644 index 000000000..1320f252a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200.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 UIComponentButtonSliderSelectedborderradius0200 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State trackBorderRadius: Length = 1; + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Button('OutSet滑块在滑轨上') + .id("UIComponentButtonSliderSelectedborderradius0200_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.OutSet; + }) + Button('底板圆角') + .id("UIComponentButtonSliderSelectedborderradius0200_002") + .onClick(()=>{ + this.trackBorderRadius = '1vp'; + }) + Button('已滑动部分圆角半径') + .id("UIComponentButtonSliderSelectedborderradius0200_003") + .onClick(()=>{ + this.selectedBorderRadius = '10vp'; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .height(80) + .trackBorderRadius(this.trackBorderRadius) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210.ets new file mode 100644 index 000000000..2d8e1f3f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210.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 UIComponentButtonSliderSelectedborderradius0210 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State trackBorderRadius: Length = 1; + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Button('OutSet滑块在滑轨上') + .id("UIComponentButtonSliderSelectedborderradius0210_001") + .onClick(()=>{ + this.SliderStyle = SliderStyle.OutSet; + }) + Button('底板圆角') + .id("UIComponentButtonSliderSelectedborderradius0210_002") + .onClick(()=>{ + this.trackBorderRadius = '10vp'; + }) + Button('已滑动部分圆角半径') + .id("UIComponentButtonSliderSelectedborderradius0210_003") + .onClick(()=>{ + this.selectedBorderRadius = '5vp'; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .height(80) + .trackBorderRadius(this.trackBorderRadius) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120.ets new file mode 100644 index 000000000..19248f3a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120.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 UIComponentButtonSliderShun0120 { + @State isShowTips: boolean = true; + @State tipsContent: ResourceStr = 'tipsContent'; + @State sliderDirection: Axis = Axis.Vertical; + + build() { + Column({ space: 8 }) { + Button('showTips按钮[true,false]') + .id('UIComponentButtonSliderShun0120_001') + .onClick(() => { + this.isShowTips = true; + }) + Button('direction按钮【Horizontal,Vertical]') + .id('UIComponentButtonSliderShun0120_002') + .onClick(() => { + this.sliderDirection = Axis.Horizontal; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + direction: this.sliderDirection + }) + .showTips(this.isShowTips, this.tipsContent) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130.ets new file mode 100644 index 000000000..aa6e81512 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130.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 UIComponentButtonSliderShun0130 { + @State isShowTips: boolean = true; + @State tipsContent: ResourceStr = ''; + + build() { + Column({ space: 8 }) { + Button('showTips按钮[true,false]') + .id('UIComponentButtonSliderShun0130_001') + .onClick(() => { + this.isShowTips = true; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0130_002') + .onClick(() => { + this.tipsContent = 'aaaa'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0130_003') + .onClick(() => { + this.tipsContent = '你好'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0130_004') + .onClick(() => { + this.tipsContent = 'aaaaa'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0130_005') + .onClick(() => { + this.tipsContent = '1000%哈'; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .showTips(this.isShowTips, this.tipsContent) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190.ets new file mode 100644 index 000000000..a931523ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190.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 UIComponentButtonSliderShun0190 { + @State isShowTips: boolean = true; + @State tipsContent: ResourceStr = ''; + + build() { + Column({ space: 8 }) { + Button('showTips按钮[true,false]') + .id('UIComponentButtonSliderShun0190_001') + .onClick(() => { + this.isShowTips = true; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0190_002') + .onClick(() => { + this.tipsContent = 'aaaa'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0190_003') + .onClick(() => { + this.tipsContent = '你好'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0190_004') + .onClick(() => { + this.tipsContent = 'aaaaa'; + }) + Button('content内容按钮[aaaa,你好,aaaaa,1000%哈]') + .id('UIComponentButtonSliderShun0190_005') + .onClick(() => { + this.tipsContent = '1000%哈'; + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100 + }) + .showTips(this.isShowTips, this.tipsContent) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200.ets new file mode 100644 index 000000000..fd73b743d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200.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 UIComponentButtonSliderShun0200 { + @State isShowTips: boolean = true; + @State tipsContent: ResourceStr = 'tipsContent0200'; + + build() { + Column({ space: 8 }) { + Button('showTips按钮[true,false]') + .id('UIComponentButtonSliderShun0200_001') + .onClick(() => { + this.isShowTips = true; + }) + Row() { + Scroll(){ + Slider({ + value: 20, + min: 0, + max: 100 + }) + .showTips(this.isShowTips, this.tipsContent) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010.ets new file mode 100644 index 000000000..9a637c822 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0010 { + @State sliderValue: number = 0; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + style: undefined + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020.ets new file mode 100644 index 000000000..437853d9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0020 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + style: null + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030.ets new file mode 100644 index 000000000..c3a11cb9f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0030 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040.ets new file mode 100644 index 000000000..fc2abce0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0040 { + @State sliderValue: number = 0; + @State sliderInteraction: SliderInteraction = SliderInteraction.SLIDE_AND_CLICK; + + build() { + Column({ space: 8 }) { + Button('SliderInteractionMode') + .id('UIComponentButtonSliderSliderInteractionMode0040_001') + .onClick(() => { + this.sliderInteraction = SliderInteraction.SLIDE_ONLY; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .sliderInteractionMode(this.sliderInteraction) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050.ets new file mode 100644 index 000000000..4d58019ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0050 { + @State sliderValue: number = 0; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060.ets new file mode 100644 index 000000000..94c43277c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0060 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(-10) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080.ets new file mode 100644 index 000000000..a52386a23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0080 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(undefined) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090.ets new file mode 100644 index 000000000..996a7d002 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0090 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(-100) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100.ets new file mode 100644 index 000000000..24e4659f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0100 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(20) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110.ets new file mode 100644 index 000000000..803e9973f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0110 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(20) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120.ets new file mode 100644 index 000000000..1eb660e7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0120 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(20) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130.ets new file mode 100644 index 000000000..7ddb9619a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0130 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(20) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150.ets new file mode 100644 index 000000000..0e9812feb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150.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. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0150 { + @State sliderValue: number = 50; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(20) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170.ets new file mode 100644 index 000000000..818dc42b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentButtonSliderSliderInteractionMode0170 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + @State isFullScreen: boolean = false; + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 8 }) { + Button('horVerSwitch') + .id('UIComponentButtonSliderSliderInteractionMode0170_001') + .onClick(() => { + this.horVerSwitch() + }) + + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .minResponsiveDistance(100) + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010.ets new file mode 100644 index 000000000..6c8a91ea2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010.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 UIComponentButtonSliderTrackcolor0010 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030.ets new file mode 100644 index 000000000..46703d990 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030.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 UIComponentButtonSliderTrackcolor0030 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + @State selectedColor: ResourceColor = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0030_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Button('selectedColor') + .id('UIComponentButtonSliderTrackcolor0030_002') + .onClick(() => { + this.selectedColor = Color.Red + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .selectedColor(this.selectedColor) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040.ets new file mode 100644 index 000000000..39e35d53f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderTrackcolor0040 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = ''; + @State selectColor: ResourceColor = Color.Pink; + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0040_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Button('selectColor') + .id('UIComponentButtonSliderTrackcolor0040_002') + .onClick(() => { + this.selectColor = '#007dff' + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .slideRange({ + from: 10, + to: 10 + }) + .trackColor(this.trackColor) + .selectedColor(this.selectColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050.ets new file mode 100644 index 000000000..c853d6cbe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050.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 UIComponentButtonSliderTrackcolor0050 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0050_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + .selectedColor(Color.Red) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060.ets new file mode 100644 index 000000000..b1f323022 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060.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 UIComponentButtonSliderTrackcolor0060 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0060_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.Red, offset: 0.5 }]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070.ets new file mode 100644 index 000000000..9d9a46eec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070.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 UIComponentButtonSliderTrackcolor0070 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0070_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080.ets new file mode 100644 index 000000000..c8bd3b016 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080.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 UIComponentButtonSliderTrackcolor0080 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0080_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, {color: Color.Red, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090.ets new file mode 100644 index 000000000..69b146adf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090.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 UIComponentButtonSliderTrackcolor0090 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0090_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.1 } + , {color: Color.Red, offset: 0.8}, {color: Color.Green, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100.ets new file mode 100644 index 000000000..c37165da8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100.ets @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderTrackcolor0100 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0100_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.1 }, + { color: Color.Red, offset: 0.2 }, { color: Color.Green, offset: 0.3 }, { + color: Color.Yellow, + offset: 0.4 + }, + { color: Color.Brown, offset: 0.5 }, { color: Color.Orange, offset: 0.6 }, { + color: Color.Pink, + offset: 0.7 + }, + { color: '#ff1f88c9', offset: 0.8 }, { color: '#ff9f00d9', offset: 0.9 }, { + color: '#ffcc88c9', + offset: 1 + }]); + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110.ets new file mode 100644 index 000000000..559da9f8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110.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 UIComponentButtonSliderTrackcolor0110 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0110_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.33 } + , {color: Color.Red, offset: 0.66}, {color: Color.Green, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120.ets new file mode 100644 index 000000000..e7a15867d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120.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 UIComponentButtonSliderTrackcolor0120 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130.ets new file mode 100644 index 000000000..92babde24 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130.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 UIComponentButtonSliderTrackcolor0130 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('切换未滑动部分颜色') + .id('UIComponentButtonSliderTrackcolor0130_001') + .onClick(() => { + this.trackColor = Color.Blue; + }) + Button('切换颜色') + .id('UIComponentButtonSliderTrackcolor0130_002') + .onClick(() => { + this.trackColor = new LinearGradient([ { color: Color.Blue, offset: 0.5 }]); + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140.ets new file mode 100644 index 000000000..a275184cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140.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 UIComponentButtonSliderTrackcolor0140 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0140_001') + .onClick(() => { + this.trackColor = $r('app.string.Azure'); + }) + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0140_002') + .onClick(() => { + this.trackColor = new LinearGradient([ { color: $r('app.string.Azure'), offset: 0.5 }]); + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150.ets new file mode 100644 index 000000000..b1fbcd57b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150.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 UIComponentButtonSliderTrackcolor0150 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0150_001') + .onClick(() => { + this.trackColor = 'rgba(255,100,255,0.5)'; + }) + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0150_002') + .onClick(() => { + this.trackColor = new LinearGradient([ { color: 'rgba(255,100,255,0.5)', offset: 0.5 }]); + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160.ets new file mode 100644 index 000000000..dc18ad476 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160.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 UIComponentButtonSliderTrackcolor0160 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0160_001') + .onClick(() => { + this.trackColor = '0xfff0000'; + }) + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0160_002') + .onClick(() => { + this.trackColor = new LinearGradient([ { color: '0xfff0000', offset: 0.5 }]); + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170.ets new file mode 100644 index 000000000..a02829634 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170.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 UIComponentButtonSliderTrackcolor0170 { + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor('ccc') + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180.ets new file mode 100644 index 000000000..73e23db4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180.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 UIComponentButtonSliderTrackcolor0180 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient | undefined = undefined; + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190.ets new file mode 100644 index 000000000..e64089234 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190.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 UIComponentButtonSliderTrackcolor0190 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient | null = null; + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200.ets new file mode 100644 index 000000000..bf621ffd4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200.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 UIComponentButtonSliderTrackcolor0200 { + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + + build() { + Column({ space: 8 }) { + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(null) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220.ets new file mode 100644 index 000000000..11530205d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220.ets @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentButtonSliderTrackcolor0220 { + @State selectedBorderRadius: Dimension = 1; + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0220_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .blockColor(Color.Transparent) + .trackColor(this.trackColor) + .selectedBorderRadius(this.selectedBorderRadius) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230.ets new file mode 100644 index 000000000..2c7ea55b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230.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 UIComponentButtonSliderTrackcolor0230 { + @State SliderStyle: SliderStyle = SliderStyle.OutSet; + @State trackColor: ResourceColor | LinearGradient = '' + + build() { + Column({ space: 8 }) { + Button('trackColor') + .id('UIComponentButtonSliderTrackcolor0230_001') + .onClick(() => { + this.trackColor = new LinearGradient([{ color: Color.White, offset: 0 }, { color: Color.Blue, offset: 0.5 } + , {color: Color.Red, offset: 1}]) + }) + Row() { + Slider({ + value: 20, + min: 0, + max: 100, + style: this.SliderStyle + }) + .trackColor(this.trackColor) + .selectedColor(Color.Red) + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230.ets new file mode 100644 index 000000000..b70d3fe43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + instance.showTips(this.isClick, 'showTips') + } +} + +@Entry +@Component +struct UIComponentButtonStyle0230 { + @State sliderValue: number = 0; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0230_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240.ets new file mode 100644 index 000000000..5437669c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.stepSize(1) + } else { + instance.stepSize(10) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0240 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0240_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250.ets new file mode 100644 index 000000000..e173765e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = true; + + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.blockStyle({ type: SliderBlockType.DEFAULT }) + } else { + instance.blockStyle({ + type: SliderBlockType.SHAPE, + shape: new Path({ commands: 'M60 60 M30 30 L15 56 L45 56 Z' }) + }) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0250 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0250_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260.ets new file mode 100644 index 000000000..b9905bd22 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.blockSize({ width: 10, height: 10 }) + } else { + instance.blockSize({ width: 5, height: 5 }) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0260 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0260_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270.ets new file mode 100644 index 000000000..569ee3867 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.trackBorderRadius(10) + } else { + instance.trackBorderRadius(50) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0270 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0270_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290.ets new file mode 100644 index 000000000..4ad68cb8a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.blockBorderWidth(2) + } else { + instance.blockBorderWidth(5) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0290 { + @State sliderValue: number = 0; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0290_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .blockColor(Color.Green) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300.ets new file mode 100644 index 000000000..be306f21a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300.ets @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.blockBorderColor(Color.Green) + } else { + instance.blockBorderColor(Color.Red) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0300 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0300_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + .blockBorderWidth(2) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0310.ets new file mode 100644 index 000000000..6ade929a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0310.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.stepSize(1) + } else { + instance.stepSize(10) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0240 { + @State sliderValue: number = 0; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0240_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320.ets new file mode 100644 index 000000000..976b196e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.blockColor(Color.Blue) + } else { + instance.blockColor(Color.Orange) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0320 { + @State sliderValue: number = 0; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0320_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330.ets new file mode 100644 index 000000000..142da1655 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.trackColor(Color.Blue) + } else { + instance.trackColor(Color.Black) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0330 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0330_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340.ets new file mode 100644 index 000000000..8e64e7fc1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.selectedColor(Color.Green) + } else { + instance.selectedColor(Color.Pink) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0340 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0340_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350.ets new file mode 100644 index 000000000..5bae3ec0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + + applyNormalAttribute(instance: SliderAttribute): void { + instance.showSteps(this.isClick) + } +} + +@Entry +@Component +struct UIComponentButtonStyle0350 { + @State sliderValue: number = 10; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0350_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .stepSize(5) + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360.ets new file mode 100644 index 000000000..8defa7ad5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360.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 common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +class MySliderModifier implements AttributeModifier { + isClick: boolean = false + applyNormalAttribute(instance: SliderAttribute): void { + if (this.isClick) { + instance.trackThickness(10) + } else { + instance.trackThickness(20) + } + } +} + +@Entry +@Component +struct UIComponentButtonStyle0360 { + @State sliderValue: number = 0; + @State modifier: MySliderModifier = new MySliderModifier() + + build() { + Column({ space: 8 }) { + Button('changeModifier') + .id('UIComponentButtonStyle0360_001') + .onClick(() => { + this.modifier.isClick = !this.modifier.isClick; + }) + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .width('80%') + .attributeModifier(this.modifier) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010.ets new file mode 100644 index 000000000..171469067 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010.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 UIComponentOtherPanelAnalysis0010 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelAnalysis0010_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .borderRadius(70) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010.ets new file mode 100644 index 000000000..ab433a471 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010.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 UIComponentOtherPanelInteraction0010 { + @State show: boolean = false; + @State contentMode: number = 0; + @State mode: PanelMode = PanelMode.Full; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInteraction0010_001') + .onClick(() => { + this.show = !this.show; + }) + Text('changeMode1') + .id('UIComponentOtherPanelInteraction0010_002') + .onClick(() => { + this.mode = 1; + }) + Text('changeMode0') + .id('UIComponentOtherPanelInteraction0010_003') + .onClick(() => { + this.mode = 0; + }) + Text(this.contentMode + '') + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(this.mode) + .miniHeight(150) + .onChange((width: number, height: number, mode: PanelMode) => { + this.contentMode = mode; + console.info(`onHeightChange:${mode.toString()}`) + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020.ets new file mode 100644 index 000000000..1b011e932 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020.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 UIComponentOtherPanelInteraction0020 { + @State show: boolean = false; + @State contentHeight: number = 0; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInteraction0020_001') + .onClick(() => { + this.show = !this.show; + }) + Text(this.contentHeight + '') + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .id('UIComponentOtherPanelInteraction0020_002') + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(150) + .onHeightChange((value: number) => { + this.contentHeight = value; + console.info(`onHeightChange:${value.toString()}`) + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030.ets new file mode 100644 index 000000000..3ae4dafd3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030.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 UIComponentOtherPanelInteraction0030 { + @State show: boolean = false; + @State contentHeight: number = 0; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInteraction0030_001') + .onClick(() => { + this.show = !this.show; + }) + Text(this.contentHeight + '') + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(150) + .dragBar(false) + .onHeightChange((value: number) => { + this.contentHeight = value; + console.info(`onHeightChange:${value.toString()}`) + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010.ets new file mode 100644 index 000000000..bbb140c7c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010.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 UIComponentOtherPanelInterface0010 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0010_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .dragBar(false) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020.ets new file mode 100644 index 000000000..e80f49f0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020.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 UIComponentOtherPanelInterface0020 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0020_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundMask(Color.Pink) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030.ets new file mode 100644 index 000000000..e100d6ea0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030.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 UIComponentOtherPanelInterface0030 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0030_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundMask('#FFB6C1') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040.ets new file mode 100644 index 000000000..4cb670a19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040.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 UIComponentOtherPanelInterface0040 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0040_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundMask($r('app.color.Pink')) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050.ets new file mode 100644 index 000000000..9ea54fe8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050.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 UIComponentOtherPanelInterface0050 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0050_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060.ets new file mode 100644 index 000000000..d4698992d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060.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 UIComponentOtherPanelInterface0060 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0060_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .mode(PanelMode.Full) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070.ets new file mode 100644 index 000000000..68e92725d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070.ets @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentOtherPanelInterface0070 { + @State show: boolean = false; + @State type: PanelType = PanelType.Foldable; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0070_001') + .onClick(() => { + this.show = !this.show; + }) + Button('changeType') + .id('UIComponentOtherPanelInterface0070_002') + .onClick(()=>{ + this.type = PanelType.Temporary; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(this.type) + .mode(PanelMode.Full) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080.ets new file mode 100644 index 000000000..880414c07 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080.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 UIComponentOtherPanelInterface0080 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0080_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Minibar) + .mode(PanelMode.Half) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090.ets new file mode 100644 index 000000000..fa29ea666 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090.ets @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentOtherPanelInterface0090 { + @State show: boolean = false; + @State type: PanelType = PanelType.Minibar; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0090_001') + .onClick(() => { + this.show = !this.show; + }) + Text('changeType') + .id('UIComponentOtherPanelInterface0090_002') + .onClick(() => { + this.type = PanelType.Minibar; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(this.type) + .mode(PanelMode.Mini) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100.ets new file mode 100644 index 000000000..4f3bdf074 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100.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 UIComponentOtherPanelInterface0100 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0100_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Mini) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110.ets new file mode 100644 index 000000000..bc777331d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110.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 UIComponentOtherPanelInterface0110 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0110_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight(0) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120.ets new file mode 100644 index 000000000..e75403ded --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120.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 UIComponentOtherPanelInterface0120 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0120_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130.ets new file mode 100644 index 000000000..6f9d746bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130.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 UIComponentOtherPanelInterface0130 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0130_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight(-200) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140.ets new file mode 100644 index 000000000..8799e6562 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140.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 UIComponentOtherPanelInterface0140 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0140_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight('500px') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150.ets new file mode 100644 index 000000000..15776ac42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150.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 UIComponentOtherPanelInterface0150 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0150_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight(1120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160.ets new file mode 100644 index 000000000..73b056770 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160.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 UIComponentOtherPanelInterface0160 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0160_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .fullHeight('50%') + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170.ets new file mode 100644 index 000000000..a80896671 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170.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 UIComponentOtherPanelInterface0170 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0170_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + .halfHeight(0) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180.ets new file mode 100644 index 000000000..7548a0921 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180.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 UIComponentOtherPanelInterface0180 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0180_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + .halfHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190.ets new file mode 100644 index 000000000..f2747681e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190.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 UIComponentOtherPanelInterface0190 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0190_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + .halfHeight(-200) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200.ets new file mode 100644 index 000000000..10351ed6e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200.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 UIComponentOtherPanelInterface0200 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0200_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + .halfHeight('500px') + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210.ets new file mode 100644 index 000000000..c0e348fe0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210.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 UIComponentOtherPanelInterface0210 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0210_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + .halfHeight('50%') + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220.ets new file mode 100644 index 000000000..c04292c95 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220.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 UIComponentOtherPanelInterface0220 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0220_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230.ets new file mode 100644 index 000000000..c3fd63d44 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230.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 UIComponentOtherPanelInterface0230 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0230_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(0) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240.ets new file mode 100644 index 000000000..3fe546162 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240.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 UIComponentOtherPanelInterface0240 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0240_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250.ets new file mode 100644 index 000000000..1c4a72f54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250.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 UIComponentOtherPanelInterface0250 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0250_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(-200) + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260.ets new file mode 100644 index 000000000..1beec7048 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260.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 UIComponentOtherPanelInterface0260 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0260_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight('500px') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270.ets new file mode 100644 index 000000000..ab9fd0713 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270.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 UIComponentOtherPanelInterface0270 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0270_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight('50%') + .backgroundMask('rgb(255,200,255)') + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280.ets new file mode 100644 index 000000000..f50a99658 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280.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 UIComponentOtherPanelInterface0280 { + @State show: boolean = true; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0280_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290.ets new file mode 100644 index 000000000..f7f527b36 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290.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 UIComponentOtherPanelInterface0290 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0290_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300.ets new file mode 100644 index 000000000..591b81b14 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300.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 UIComponentOtherPanelInterface0300 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0300_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .dragBar(false) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310.ets new file mode 100644 index 000000000..9de3dd583 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310.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 UIComponentOtherPanelInterface0310 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0310_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Full) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320.ets new file mode 100644 index 000000000..2dbdf9da7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320.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 UIComponentOtherPanelInterface0320 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0320_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Half) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330.ets new file mode 100644 index 000000000..f795dd7d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330.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 UIComponentOtherPanelInterface0330 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0330_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Foldable) + .mode(PanelMode.Mini) + .miniHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340.ets new file mode 100644 index 000000000..f351cdfa2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340.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 UIComponentOtherPanelInterface0340 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0340_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Minibar) + .mode(PanelMode.Full) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350.ets new file mode 100644 index 000000000..8dee1bc1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350.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 UIComponentOtherPanelInterface0350 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0350_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Minibar) + .mode(PanelMode.Half) + .miniHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360.ets new file mode 100644 index 000000000..169ab1b4b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360.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 UIComponentOtherPanelInterface0360 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0360_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Minibar) + .mode(PanelMode.Mini) + .miniHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370.ets new file mode 100644 index 000000000..e94a1c7e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370.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 UIComponentOtherPanelInterface0370 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0370_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380.ets new file mode 100644 index 000000000..1d8f0b5b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380.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 UIComponentOtherPanelInterface0380 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0380_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Half) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390.ets new file mode 100644 index 000000000..2bbb926e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390.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 UIComponentOtherPanelInterface0390 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0390_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Mini) + .miniHeight(120) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400.ets new file mode 100644 index 000000000..915faf91a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400.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 UIComponentOtherPanelInterface0400 { + @State show: boolean = false; + + build() { + Column() { + Text('Panel') + .id('UIComponentOtherPanelInterface0400_001') + .onClick(() => { + this.show = !this.show; + }) + Panel(this.show) { + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .type(PanelType.Temporary) + .mode(PanelMode.Full) + .dragBar(true) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030.ets new file mode 100644 index 000000000..81da320c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0030 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:ShadowStyle.OUTER_DEFAULT_XS + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0030_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040.ets new file mode 100644 index 000000000..0f8240b4e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0040 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow: ShadowStyle.OUTER_FLOATING_MD + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0040_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050.ets new file mode 100644 index 000000000..0c9faeb2a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0050 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow: ShadowStyle.OUTER_FLOATING_SM + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0050_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060.ets new file mode 100644 index 000000000..a8e41cd36 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0060 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.string.loadingDialogRadius'), + type: ShadowType.COLOR, + color: Color.Black, + offsetX: $r('app.string.loadingDialogRadius'), + offsetY: $r('app.string.loadingDialogRadius'), + fill: true + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0060_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070.ets new file mode 100644 index 000000000..6da1966d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0070 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.integer.integer100'), + type: ShadowType.COLOR, + color: ColoringStrategy.AVERAGE, + offsetX: $r('app.integer.integer30'), + offsetY: $r('app.integer.integer30'), + fill: false + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0070_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080.ets new file mode 100644 index 000000000..27d294fac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0080 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.integer.integer100'), + type: ShadowType.COLOR, + color: ColoringStrategy.INVERT, + offsetX: $r('app.integer.integer100'), + offsetY: $r('app.integer.integer100'), + fill: false + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0080_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090.ets new file mode 100644 index 000000000..1828b63a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0090 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.integer.integer100'), + type: ShadowType.COLOR, + color: ColoringStrategy.PRIMARY, + offsetX: $r('app.integer.integer30'), + offsetY: $r('app.integer.integer30'), + fill: false + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0090_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110.ets new file mode 100644 index 000000000..d2757c185 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0110 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.integer.integer30'), + type: ShadowType.COLOR, + color: $r('app.color.color3'), + offsetX: $r('app.integer.integer100'), + offsetY: $r('app.integer.integer100'), + fill: false + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0110_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0820.ets new file mode 100644 index 000000000..0771e745b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0820.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 { LoadingDialog } from '@ohos.arkui.advanced.Dialog' + +@Entry +@Component +struct UIComponentPopupboxSpecificationsShadow0820 { + dialogControllerProgress: CustomDialogController = new CustomDialogController({ + builder: LoadingDialog({ + content: '文本文本文本文本文本...', + }), + shadow:{ + radius: $r('app.integer.integer100'), + type: ShadowType.COLOR, + color: ColoringStrategy.AVERAGE, + offsetX: $r('app.integer.integer30'), + offsetY: $r('app.integer.integer30'), + fill: true + } + }) + + build() { + Row() { + Stack() { + Column() { + Button("LoadingDialog") + .width(96) + .height(40) + .id('UIComponentPopupboxSpecificationsShadow0820_001') + .onClick(() => { + this.dialogControllerProgress.open() + }) + }.margin({ bottom: 300 }) + }.align(Alignment.Bottom) + .width('100%').height('100%') + } + .backgroundImageSize({ width: '100%', height: '100%' }) + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030.ets new file mode 100644 index 000000000..981a37c1e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030.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 UIComponentPopupboxMenuBindContextMenuIsShown0030 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Text('ClickTextShowMenu-0030') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0030_01") + .bindContextMenu(this.isShown, this.MyMenu, + {}) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050.ets new file mode 100644 index 000000000..d7b63bbe0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050.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 UIComponentPopupboxMenuBindContextMenuIsShown0050 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0050') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0050_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080.ets new file mode 100644 index 000000000..a86986e9f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080.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 UIComponentPopupboxMenuBindContextMenuIsShown0080 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0080') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0080_01") + .margin({ top: '200' }) + .backgroundColor(Color.Gray) + .bindContextMenu(this.isShown, this.MyMenu, + { + preview: MenuPreviewMode.IMAGE, + previewAnimationOptions: {scale: [0.8, 1.0]}, + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090.ets new file mode 100644 index 000000000..a32efb009 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090.ets @@ -0,0 +1,34 @@ +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0090 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('ClickTextShowMenu-0090') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0090_01") + .margin({ top: '20' }) + .backgroundColor(Color.Gray) + .bindContextMenu(this.isShown, this.MyMenu, + { + placement: Placement.Bottom + }) + }.height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100.ets new file mode 100644 index 000000000..9173bc4d8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0100 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0100') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0100_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + offset: { x: "1", y: "1" } + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110.ets new file mode 100644 index 000000000..cb83a5841 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0110 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0110') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0110_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + enableArrow: false + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120.ets new file mode 100644 index 000000000..1fa1ab5a8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0120 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0120') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0120_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + arrowOffset: 2 + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130.ets new file mode 100644 index 000000000..e8f269d10 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130.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 UIComponentPopupboxMenuBindContextMenuIsShown0130 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundColor(Color.Blue) + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0130') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0130_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140.ets new file mode 100644 index 000000000..0441a3a3f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140.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 { Position } from '@ohos.arkui.node' + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0140 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0140') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0140_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + {}) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150.ets new file mode 100644 index 000000000..7145710ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0150 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0150') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0150_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + placement: Placement.Right + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170.ets new file mode 100644 index 000000000..be808c285 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuBindContextMenuIsShown0170 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Column() { + Column() { + Text('ClickTextShowMenu-0170') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuBindContextMenuIsShown0170_01") + .margin(100) + .bindContextMenu(this.isShown, this.MyMenu, + { + placement: Placement.Left + }) + } + }.width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010.ets new file mode 100644 index 000000000..d01ba9842 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010.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 UIComponentPopupboxMenuCorner0010 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: -20, + topRight: -20, + bottomLeft: -20, + bottomRight: -20 + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0010') + .height(80) + .id("UIComponentPopupboxMenuCorner0010_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020.ets new file mode 100644 index 000000000..bcfdeaf53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020.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 UIComponentPopupboxMenuCorner0020 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: '10%', topRight: '20%', bottomLeft: '30%', bottomRight: '40%' }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0020') + .height(80) + .id("UIComponentPopupboxMenuCorner0020_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030.ets new file mode 100644 index 000000000..e1f323699 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030.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 UIComponentPopupboxMenuCorner0030 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: 20, topRight: 30, bottomLeft: 20, bottomRight: 10 }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0030') + .height(80) + .id("UIComponentPopupboxMenuCorner0030_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040.ets new file mode 100644 index 000000000..9dd907c26 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040.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 UIComponentPopupboxMenuCorner0040 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: 500, topRight: 500, bottomLeft: 500, bottomRight: 500 }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0040') + .height(80) + .id("UIComponentPopupboxMenuCorner0040_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050.ets new file mode 100644 index 000000000..8b74ed290 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050.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 UIComponentPopupboxMenuCorner0050 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: undefined, topRight: 20, bottomLeft: undefined, bottomRight: 30 }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0050') + .height(80) + .id("UIComponentPopupboxMenuCorner0050_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060.ets new file mode 100644 index 000000000..1f123b292 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060.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 UIComponentPopupboxMenuCorner0060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu2() }) + .id("UIComponentPopupboxMenuCorner0060_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu2() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + }) + MenuItem({ + content: "子菜单选项", builder: (): void => this.SubMenu3() + }).id("UIComponentPopupboxMenuCorner0060_03") + } + } + } + + @Builder + SubMenu3() { + Menu() { + MenuItem({ + content: "三级菜单选项", + }) + MenuItem({ + content: "三级菜单选项", + }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0060') + .height(80) + .id("UIComponentPopupboxMenuCorner0060_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070.ets new file mode 100644 index 000000000..861d56498 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070.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 UIComponentPopupboxMenuCorner0070 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu() }).id("UIComponentPopupboxMenuCorner0070_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + }) + MenuItem({ + content: "子菜单选项", + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0070') + .height(80) + .id("UIComponentPopupboxMenuCorner0070_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080.ets new file mode 100644 index 000000000..797ed37ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080.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 UIComponentPopupboxMenuCorner0080 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0080') + .height(80) + .id("UIComponentPopupboxMenuCorner0080_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090.ets new file mode 100644 index 000000000..dae015980 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090.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. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct UIComponentPopupboxMenuCorner0090 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0090') + .height(80) + .id("UIComponentPopupboxMenuCorner0090_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + { + enableArrow: true, + }) + Button("横竖屏切换") + .id('UIComponentPopupboxMenuCorner0090_02') + .onClick(() => { + this.horVerSwitch() + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100.ets new file mode 100644 index 000000000..af29a4d94 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100.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 UIComponentPopupboxMenuCorner0100 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0100') + .height(80) + .id("UIComponentPopupboxMenuCorner0100_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110.ets new file mode 100644 index 000000000..7745184c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110.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 UIComponentPopupboxMenuCorner0110 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius(50) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0110') + .height(80) + .id("UIComponentPopupboxMenuCorner0110_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120.ets new file mode 100644 index 000000000..9a8bdaef4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120.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 UIComponentPopupboxMenuCorner0120 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius(500) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0120') + .height(80) + .id("UIComponentPopupboxMenuCorner0120_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130.ets new file mode 100644 index 000000000..2e8a05d57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130.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 UIComponentPopupboxMenuCorner0130 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: $r('app.string.menu_radius_40px'), + topRight: $r('app.string.menu_radius_40px'), + bottomLeft: $r('app.string.menu_radius_40px'), + bottomRight: $r('app.string.menu_radius_40px') + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0130') + .height(80) + .id("UIComponentPopupboxMenuCorner0130_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140.ets new file mode 100644 index 000000000..5152529d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140.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 UIComponentPopupboxMenuCorner0140 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('-20.0vp') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0140') + .height(80) + .id("UIComponentPopupboxMenuCorner0140_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150.ets new file mode 100644 index 000000000..240bf887b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150.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 UIComponentPopupboxMenuCorner0150 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius('10fp') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0150') + .height(80) + .id("UIComponentPopupboxMenuCorner0150_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160.ets new file mode 100644 index 000000000..7f16792c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160.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 UIComponentPopupboxMenuCorner0160 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('10px') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0160') + .height(80) + .id("UIComponentPopupboxMenuCorner0160_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170.ets new file mode 100644 index 000000000..56a4655ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170.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 UIComponentPopupboxMenuCorner0170 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('10vp') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0170') + .height(80) + .id("UIComponentPopupboxMenuCorner0170_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180.ets new file mode 100644 index 000000000..719947e3a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180.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 UIComponentPopupboxMenuCorner0180 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius('20%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0180') + .height(80) + .id("UIComponentPopupboxMenuCorner0180_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190.ets new file mode 100644 index 000000000..ad5299edd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190.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 UIComponentPopupboxMenuCorner0190 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('30px') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0190') + .height(80) + .id("UIComponentPopupboxMenuCorner0190_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200.ets new file mode 100644 index 000000000..4e53455c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200.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 UIComponentPopupboxMenuCorner0200 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius(undefined) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0200') + .height(80) + .id("UIComponentPopupboxMenuCorner0200_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210.ets new file mode 100644 index 000000000..6874a320f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210.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 UIComponentPopupboxMenuCorner0210 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0210') + .height(80) + .id("UIComponentPopupboxMenuCorner0210_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220.ets new file mode 100644 index 000000000..5cc404373 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220.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 UIComponentPopupboxMenuCorner0220 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0220') + .height(80) + .id("UIComponentPopupboxMenuCorner0220_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230.ets new file mode 100644 index 000000000..80b8d6b6e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuCorner0230 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0230') + .height(80) + .id("UIComponentPopupboxMenuCorner0230_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + preview:MenuPreviewMode.IMAGE, + previewAnimationOptions: {scale: [0.8, 1.0]} + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240.ets new file mode 100644 index 000000000..98c1942db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240.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 UIComponentPopupboxMenuCorner0240 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: -20, + topRight: -20, + bottomLeft: -20, + bottomRight: -20 + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0240') + .height(80) + .id("UIComponentPopupboxMenuCorner0240_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250.ets new file mode 100644 index 000000000..86097f0fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250.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 UIComponentPopupboxMenuCorner0250 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: '10%', + topRight: '20%', + bottomLeft: '30%', + bottomRight: '40%' + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0250') + .height(80) + .id("UIComponentPopupboxMenuCorner0250_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260.ets new file mode 100644 index 000000000..e13466a54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260.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 UIComponentPopupboxMenuCorner0260 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: 20, topRight: 30, bottomLeft: 20, bottomRight: 10 }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0260') + .height(80) + .id("UIComponentPopupboxMenuCorner0260_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270.ets new file mode 100644 index 000000000..113a5bb61 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270.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 UIComponentPopupboxMenuCorner0270 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius({ topLeft: 500, topRight: 500, bottomLeft: 500, bottomRight: 500 }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0270') + .height(80) + .id("UIComponentPopupboxMenuCorner0270_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280.ets new file mode 100644 index 000000000..1b4f34f72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280.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 UIComponentPopupboxMenuCorner0280 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: undefined, + topRight: -20, + bottomLeft: undefined, + bottomRight: -20 + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0280') + .height(80) + .id("UIComponentPopupboxMenuCorner0280_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290.ets new file mode 100644 index 000000000..573e30f02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290.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 UIComponentPopupboxMenuCorner0290 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu2() }) + .id("UIComponentPopupboxMenuCorner0290_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu2() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + }) + MenuItem({ + content: "子菜单选项", builder: (): void => this.SubMenu3() + }).id("UIComponentPopupboxMenuCorner0290_03") + } + } + } + + @Builder + SubMenu3() { + Menu() { + MenuItem({ + content: "三级菜单选项", + }) + MenuItem({ + content: "三级菜单选项", + }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0290') + .height(80) + .id("UIComponentPopupboxMenuCorner0290_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300.ets new file mode 100644 index 000000000..fa7df6f6d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300.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 UIComponentPopupboxMenuCorner0300 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu2() }) + .id("UIComponentPopupboxMenuCorner0300_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu2() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + }) + MenuItem({ + content: "子菜单选项", + }).id("UIComponentPopupboxMenuCorner0300_03") + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0300') + .height(80) + .id("UIComponentPopupboxMenuCorner0300_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310.ets new file mode 100644 index 000000000..3011aaaf3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310.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 UIComponentPopupboxMenuCorner0310 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0310') + .height(80) + .id("UIComponentPopupboxMenuCorner0310_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320.ets new file mode 100644 index 000000000..70dfc86ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import StartOptions from '@ohos.app.ability.StartOptions'; + +@Entry +@Component +struct UIComponentPopupboxMenuCorner0320 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0320') + .height(80) + .id("UIComponentPopupboxMenuCorner0320_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.Top + }) + Button("横竖屏切换") + .id('UIComponentPopupboxMenuCorner0320_02') + .onClick(() => { + this.horVerSwitch() + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330.ets new file mode 100644 index 000000000..9d5f93c8c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330.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 UIComponentPopupboxMenuCorner0330 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0330') + .height(80) + .id("UIComponentPopupboxMenuCorner0330_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340.ets new file mode 100644 index 000000000..80f92226b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340.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 UIComponentPopupboxMenuCorner0340 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius(50) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0340') + .height(80) + .id("UIComponentPopupboxMenuCorner0340_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350.ets new file mode 100644 index 000000000..a28b32ad5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350.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 UIComponentPopupboxMenuCorner0350 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius(500) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0350') + .height(80) + .id("UIComponentPopupboxMenuCorner0350_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360.ets new file mode 100644 index 000000000..26dd96ab1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360.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 UIComponentPopupboxMenuCorner0360 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .radius({ + topLeft: $r('app.string.menu_radius_40px'), + topRight: $r('app.string.menu_radius_40px'), + bottomLeft: $r('app.string.menu_radius_40px'), + bottomRight: $r('app.string.menu_radius_40px') + }) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0360') + .height(80) + .id("UIComponentPopupboxMenuCorner0360_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370.ets new file mode 100644 index 000000000..789afef62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370.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 UIComponentPopupboxMenuCorner0370 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius(undefined) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0370') + .height(80) + .id("UIComponentPopupboxMenuCorner0370_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380.ets new file mode 100644 index 000000000..2933d1537 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380.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 UIComponentPopupboxMenuCorner0380 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('10fp') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0380') + .height(80) + .id("UIComponentPopupboxMenuCorner0380_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390.ets new file mode 100644 index 000000000..db5242af1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390.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 UIComponentPopupboxMenuCorner0390 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('10px') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0390') + .height(80) + .id("UIComponentPopupboxMenuCorner0390_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400.ets new file mode 100644 index 000000000..9f63a0637 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400.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 UIComponentPopupboxMenuCorner0400 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('10vp') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0400') + .height(80) + .id("UIComponentPopupboxMenuCorner0400_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410.ets new file mode 100644 index 000000000..fbd2131e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410.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 UIComponentPopupboxMenuCorner0410 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('20%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0410') + .height(80) + .id("UIComponentPopupboxMenuCorner0410_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420.ets new file mode 100644 index 000000000..d00068519 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420.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 UIComponentPopupboxMenuCorner0420 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius('30px') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0420') + .height(80) + .id("UIComponentPopupboxMenuCorner0420_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430.ets new file mode 100644 index 000000000..7f3d944f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430.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 UIComponentPopupboxMenuCorner0430 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.radius(undefined) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0430') + .height(80) + .id("UIComponentPopupboxMenuCorner0430_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440.ets new file mode 100644 index 000000000..ffbbd3611 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440.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 UIComponentPopupboxMenuCorner0440 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0440') + .height(80) + .id("UIComponentPopupboxMenuCorner0440_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450.ets new file mode 100644 index 000000000..9116f8459 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450.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 UIComponentPopupboxMenuCorner0450 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0450') + .height(80) + .id("UIComponentPopupboxMenuCorner0450_01") + .bindMenu(this.MyMenu, + { + enableArrow: true + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460.ets new file mode 100644 index 000000000..f604dec19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuCorner0460 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0460') + .height(80) + .id("UIComponentPopupboxMenuCorner0460_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + preview: MenuPreviewMode.IMAGE, + previewAnimationOptions: { scale: [0.8, 1.0] } + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010.ets new file mode 100644 index 000000000..e769dc3ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010.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 UIComponentPopupboxMenuDirect0010 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0010') + .height(80) + .id("UIComponentPopupboxMenuDirect0010_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: 0 + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030.ets new file mode 100644 index 000000000..3bc3ce40b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030.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 UIComponentPopupboxMenuDirect0030 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0030') + .height(80) + .id("UIComponentPopupboxMenuDirect0030_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: 1000 + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040.ets new file mode 100644 index 000000000..bd815ad98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040.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 UIComponentPopupboxMenuDirect0040 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0040') + .height(80) + .id("UIComponentPopupboxMenuDirect0040_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: 50 + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050.ets new file mode 100644 index 000000000..5cb7ed358 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050.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 UIComponentPopupboxMenuDirect0050 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0050') + .height(80) + .id("UIComponentPopupboxMenuDirect0050_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: $r('app.float.arrowOffset_1000') + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060.ets new file mode 100644 index 000000000..8691e22ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060.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 UIComponentPopupboxMenuDirect0060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0060') + .height(80) + .id("UIComponentPopupboxMenuDirect0060_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: $r('app.float.arrowOffset_50vp') + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070.ets new file mode 100644 index 000000000..f4ddb4690 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070.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 UIComponentPopupboxMenuDirect0070 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0070') + .height(80) + .id("UIComponentPopupboxMenuDirect0070_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: '1000%' + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080.ets new file mode 100644 index 000000000..5991cc4dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080.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 UIComponentPopupboxMenuDirect0080 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0080') + .height(80) + .id("UIComponentPopupboxMenuDirect0080_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: '1000px' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090.ets new file mode 100644 index 000000000..4ca38a31e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090.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 UIComponentPopupboxMenuDirect0090 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0090') + .height(80) + .id("UIComponentPopupboxMenuDirect0090_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100.ets new file mode 100644 index 000000000..a0cfeba29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100.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 UIComponentPopupboxMenuDirect0100 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0100') + .height(80) + .id("UIComponentPopupboxMenuDirect0100_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: '50px' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110.ets new file mode 100644 index 000000000..98bd63467 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110.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 UIComponentPopupboxMenuDirect0110 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0110') + .height(80) + .id("UIComponentPopupboxMenuDirect0110_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: undefined + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120.ets new file mode 100644 index 000000000..4cecef184 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120.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 UIComponentPopupboxMenuDirect0120 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0120') + .height(80) + .id("UIComponentPopupboxMenuDirect0120_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140.ets new file mode 100644 index 000000000..e67dd6f41 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140.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 UIComponentPopupboxMenuDirect0140 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0140') + .height(80) + .id("UIComponentPopupboxMenuDirect0140_01") + .bindMenu(this.MyMenu, + { + enableArrow: undefined, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150.ets new file mode 100644 index 000000000..44cae4ced --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150.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 UIComponentPopupboxMenuDirect0150 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0150') + .height(80) + .id("UIComponentPopupboxMenuDirect0150_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160.ets new file mode 100644 index 000000000..e8a346548 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160.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 UIComponentPopupboxMenuDirect0160 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0160') + .height(80) + .id("UIComponentPopupboxMenuDirect0160_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170.ets new file mode 100644 index 000000000..27f1f0b42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170.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 UIComponentPopupboxMenuDirect0170 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0170') + .height(80) + .id("UIComponentPopupboxMenuDirect0170_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180.ets new file mode 100644 index 000000000..0595d90a9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuDirect0180 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0180') + .height(80) + .width(8) + .id("UIComponentPopupboxMenuDirect0180_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190.ets new file mode 100644 index 000000000..4eaea1016 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190.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 UIComponentPopupboxMenuDirect0190 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0190') + .height(80) + .id("UIComponentPopupboxMenuDirect0190_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200.ets new file mode 100644 index 000000000..f917fdb19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200.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 UIComponentPopupboxMenuDirect0200 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0200') + .height(80) + .id("UIComponentPopupboxMenuDirect0200_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + arrowOffset: undefined + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210.ets new file mode 100644 index 000000000..fd69409c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210.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 UIComponentPopupboxMenuDirect0210 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('ClickShowMenu-0210') + .height(80) + .id("UIComponentPopupboxMenuDirect0210_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220.ets new file mode 100644 index 000000000..c30ac4b2d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +@Entry +@Component +struct UIComponentPopupboxMenuDirect0220 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('ClickShowMenu-0220') + .height(80) + .id("UIComponentPopupboxMenuDirect0220_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230.ets new file mode 100644 index 000000000..8c780661d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230.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 UIComponentPopupboxMenuDirect0230 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('80%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('ClickShowMenu-0230') + .height(80) + .id("UIComponentPopupboxMenuDirect0230_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240.ets new file mode 100644 index 000000000..1edbbd4f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240.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 UIComponentPopupboxMenuDirect0240 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('ClickShowMenu-0240') + .height(80) + .id("UIComponentPopupboxMenuDirect0240_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250.ets new file mode 100644 index 000000000..452221921 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250.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 UIComponentPopupboxMenuDirect0250 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0250') + .height(80) + .id("UIComponentPopupboxMenuDirect0250_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260.ets new file mode 100644 index 000000000..3988d7073 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260.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 UIComponentPopupboxMenuDirect0260 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0260') + .height(80) + .id("UIComponentPopupboxMenuDirect0260_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270.ets new file mode 100644 index 000000000..4729220b4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270.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 UIComponentPopupboxMenuDirect0270 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0270') + .height(80) + .id("UIComponentPopupboxMenuDirect0270_01") + .bindMenu(this.MyMenu, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001.ets new file mode 100644 index 000000000..c355e3c64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001.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 UIComponentPopupboxMenuEnhancement001 { + @State select: boolean = true + private iconStr: ResourceStr = $r("app.media.icon") + private iconStr2: ResourceStr = $r("app.media.icon") + @State listData: number[] = [] + + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.listData.push(1) + } + } + + @Builder + MyMenu(){ + Menu() { + ForEach(this.listData,(item:number) => { + MenuItem({ + startIcon: $r("app.media.icon"), + content: "菜单选项"+item}) + }) + } + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuEnhancement0010_001") + .bindMenu(this.MyMenu()) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008.ets new file mode 100644 index 000000000..eec69d71d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008.ets @@ -0,0 +1,173 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuEnhancement008 { + @State select: boolean = true + @State listData: number[] = [] + + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.listData.push(1) + } + } + @Builder + SubMenu() { + Menu() { + ForEach(this.listData,(item:number) => { + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项"+item }) + }) + } + } + + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuEnhancement0080_001") + .bindMenu([ + { + value: 'Menu1', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + }, + { + value: 'Menu2', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu3', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu4', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu5', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu6', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu7', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu8', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu9', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu10', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu11', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu12', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu13', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu14', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu15', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu16', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu17', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu18', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu19', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu20', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + }, + ]) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009.ets new file mode 100644 index 000000000..b97fae3ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009.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 UIComponentPopupboxMenuEnhancement009 { + @State select: boolean = true + @State listData: number[] = [] + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuEnhancement0090_001") + .bindMenu([ + { + value: 'Mefdassddddddddddddddddddddddddddddddddddddddddddddfdnu1', + action: () => { + console.info('handle Menu1 select'); + }, + } + ], { + onDisappear: () => { + console.log(`renyj bindMenu onDisappear`) + } + }) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010.ets new file mode 100644 index 000000000..295918511 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010.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 UIComponentPopupboxMenuEnhancement010 { + @State select: boolean = true + @State listData: number[] = [] + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuEnhancement0100_001") + .bindMenu([ + { + value: 'Mefdassddddddddddddddddddddddddddddddddddddddddddddfdnu1', + action: () => { + console.info('handle Menu1 select'); + }, + } + ], { + onDisappear: () => { + console.log(`renyj bindMenu onDisappear`) + } + }) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017.ets new file mode 100644 index 000000000..ba8ba4730 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017.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 UIComponentPopupboxMenuEnhancement017 { + private iconStr: ResourceStr = $r("app.media.icon") + @State listData: number[] = [0, 0, 0, 0, 0, 0, 0] + @Builder MenuBuilder() { + List(){ + ListItem() { + Column(){ + Image($r("app.media.icon")).width(30).height(30) + Text(`Menu00`) + TextInput() + }.padding(5).height(60) + } + .id('UIComponentPopupboxMenuEnhancement0170_002') + .width('100%') + .height(80) + .align(Alignment.Center) + .onClick(() => { + console.info(`Menu00 Clicked!`) + }) + ForEach(this.listData, (item:number, index) => { + ListItem() { + Column(){ + Image($r("app.media.icon")).width(30).height(30) + Text(`Menu${index as number + 1}`) + TextInput() + }.padding(5).height(60) + } + .width('100%') + .height(80) + .align(Alignment.Center) + .onClick(() => { + console.info(`Menu${index as number + 1} Clicked!`) + }) + }) + } + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuEnhancement0170_001") + .bindMenu(this.MenuBuilder) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010.ets new file mode 100644 index 000000000..3ae24fd64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0010 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItemGroup({ header: 'Menu Group' }) { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1 }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0010') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0010_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020.ets new file mode 100644 index 000000000..1e9679ed5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0020 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier1).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier1) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0020') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0020_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030.ets new file mode 100644 index 000000000..e833f4c3a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0030 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1 }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2 }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0030') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0030_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040.ets new file mode 100644 index 000000000..f2fe0c89d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0040 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, endIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0040') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0040_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050.ets new file mode 100644 index 000000000..bbd4a6a9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0050 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1 }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2 }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0050') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0050_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060.ets new file mode 100644 index 000000000..c8b03f4fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0060 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, startIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, startIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0060') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0060_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070.ets new file mode 100644 index 000000000..0494c3b21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0070 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, symbolStartIcon: this.symbolIconModifier1 }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, symbolStartIcon: this.symbolIconModifier2 }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0070') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0070_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080.ets new file mode 100644 index 000000000..c8a5e00b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0080 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier1).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier2).selected(true) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0080') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0080_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090.ets new file mode 100644 index 000000000..5179e475c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0090 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0090') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0090_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100.ets new file mode 100644 index 000000000..9369a768f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0100 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, endIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0100') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0100_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110.ets new file mode 100644 index 000000000..30b6f829b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0110 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0110') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0110_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120.ets new file mode 100644 index 000000000..ab5b26e08 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0120 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, startIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, startIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0120') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0120_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130.ets new file mode 100644 index 000000000..e23b5f239 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0130 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0130') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0130_01") + .bindMenu([ + { + value: 'Menu1', + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + { + value: 'Menu2', + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140.ets new file mode 100644 index 000000000..57746e46d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0140 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0140') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0140_01") + .bindMenu([ + { + value: 'Menu1', + icon: this.iconStr, + symbolIcon: null, + action: () => { + } + }, + { + value: 'Menu2', + icon: this.iconStr, + symbolIcon: null, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150.ets new file mode 100644 index 000000000..0d5a9bc7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0150 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0150') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0150_01") + .bindMenu([ + { + value: 'Menu1', + symbolIcon: undefined, + action: () => { + } + }, + { + value: 'Menu2', + symbolIcon: undefined, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160.ets new file mode 100644 index 000000000..0969205ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0160 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0160') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0160_01") + .bindMenu([ + { + value: 'Menu1', + icon: this.iconStr, + symbolIcon: undefined, + action: () => { + } + }, + { + value: 'Menu2', + icon: this.iconStr, + symbolIcon: undefined, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190.ets new file mode 100644 index 000000000..29ceeb880 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0190 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0190') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0190_01") + .bindMenu([ + { + value: 'Menu1', + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + { + value: 'Menu2', + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200.ets new file mode 100644 index 000000000..4c01108c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0200 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0200') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0200_01") + .bindMenu([ + { + value: 'Menu1', + icon: this.iconStr, + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + { + value: 'Menu2', + icon: this.iconStr, + symbolIcon: this.symbolIconModifier1, + action: () => { + } + }, + ]) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210.ets new file mode 100644 index 000000000..3aeda2ce3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0210 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(null).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier1) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0210') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0210_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220.ets new file mode 100644 index 000000000..922fddf59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0220 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(undefined).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(undefined).selected(true) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0220') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0220_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240.ets new file mode 100644 index 000000000..f946641fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0240 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selectIcon(this.symbolIconModifier1).selected(true) + MenuItem({ content: "菜单选项", }).selectIcon(this.iconStr).selected(true) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0240') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0240_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250.ets new file mode 100644 index 000000000..6422a60c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0250 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: null, }) + MenuItem({ content: "菜单选项", symbolEndIcon: null, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0250') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0250_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260.ets new file mode 100644 index 000000000..4f1b37337 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0260 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: null, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: null, endIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0260') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0260_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270.ets new file mode 100644 index 000000000..67ebb29f1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0270 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: null, }) + MenuItem({ content: "菜单选项", symbolEndIcon: null, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0270') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0270_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280.ets new file mode 100644 index 000000000..bc9975a11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0280 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: undefined, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: undefined, endIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0280') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0280_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310.ets new file mode 100644 index 000000000..5499b76c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0310 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0310') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0310_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320.ets new file mode 100644 index 000000000..cd326d5eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0320 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier2, endIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0320') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0320_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330.ets new file mode 100644 index 000000000..5d5fc6856 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0330 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: null, }) + MenuItem({ content: "菜单选项", symbolStartIcon: null, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0330') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0330_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340.ets new file mode 100644 index 000000000..f0deae01a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0340 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: null, startIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolStartIcon: null, startIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0340') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0340_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350.ets new file mode 100644 index 000000000..5deebed1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0350 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: undefined, }) + MenuItem({ content: "菜单选项", symbolStartIcon: undefined, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0350') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0350_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360.ets new file mode 100644 index 000000000..ef9dfa669 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0360 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: undefined, startIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolStartIcon: undefined, startIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0360') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0360_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390.ets new file mode 100644 index 000000000..2fcbfcd40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0390 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0390') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0390_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400.ets new file mode 100644 index 000000000..eeda2fba5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0400 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, startIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, startIcon: this.iconStr }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0400') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0400_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410.ets new file mode 100644 index 000000000..3c3c4ff9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410.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. + */ + +import { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0410 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0410_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier1, + symbolEndIcon: this.symbolIconModifier1 + }) + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier2, + symbolEndIcon: this.symbolIconModifier2 + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0410') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0410_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420.ets new file mode 100644 index 000000000..2510cd8ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420.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. + */ + +import { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0420 { + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0420_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + }).selectIcon(this.symbolIconModifier1).selected(true) + MenuItem({ + content: "子菜单选项", + }).selectIcon(this.iconStr).selected(true) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0420') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0420_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430.ets new file mode 100644 index 000000000..28cb5d176 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0430 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0430_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + symbolEndIcon: this.symbolIconModifier1 + }) + MenuItem({ + content: "子菜单选项", + symbolEndIcon: this.symbolIconModifier2 + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0430') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0430_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440.ets new file mode 100644 index 000000000..e4d6ebb86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440.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. + */ + +import { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0440 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0440_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + symbolEndIcon: this.symbolIconModifier1, + endIcon: this.iconStr + }) + MenuItem({ + content: "子菜单选项", + symbolEndIcon: this.symbolIconModifier2, + endIcon: this.iconStr + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0440') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0440_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450.ets new file mode 100644 index 000000000..f76cc804f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0450 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0450_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier1, + }) + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier2, + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0450') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0450_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460.ets new file mode 100644 index 000000000..8051df37a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460.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. + */ + +import { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0460 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + builder: (): void => this.SubMenu() + }).id("UIComponentPopupboxMenuHmsymbol0460_02") + } + } + + @Builder + SubMenu() { + Menu() { + MenuItemGroup({ header: '小标题Group' }) { + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier1, + startIcon: this.iconStr + }) + MenuItem({ + content: "子菜单选项", + symbolStartIcon: this.symbolIconModifier2, + startIcon: this.iconStr + }) + } + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0460') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0460_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470.ets new file mode 100644 index 000000000..35a24d6fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0470 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier1, }).enabled(false) + MenuItem({ content: "菜单选项", symbolStartIcon: this.symbolIconModifier2, }).enabled(false) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0470') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0470_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490.ets new file mode 100644 index 000000000..5f7041488 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0490 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isSeleected: boolean = true; + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + .selected($$this.isSeleected) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0490') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0490_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500.ets new file mode 100644 index 000000000..7aa338b59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500.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 { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0500 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State bgColor: ResourceColor = Color.Grey; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1}) + MenuItem({ content: "菜单选项", symbolEndIcon: this.symbolIconModifier1 }) + }.backgroundColor(this.bgColor) + + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0500') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0500_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + Button("change Properties") + .id("UIComponentPopupboxMenuHmsymbol0500_02") + .onClick(() => { + this.bgColor = Color.Pink; + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520.ets new file mode 100644 index 000000000..4288019ca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520.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. + */ + +import { SymbolGlyphModifier } from '@ohos.arkui.modifier'; + +@Entry +@Component +struct UIComponentPopupboxMenuHmsymbol0520 { + private iconStr: ResourceStr = $r("app.media.icon") + @State symbolIconModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State symbolIconModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_photo')).fontSize('24vp'); + @State fontColor: ResourceColor = Color.Black; + @State fontSize: number = -1; + @State menuHeight: number = -1; + @State menuWidth: number = -1; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", symbolEndIcon: null, endIcon: this.iconStr }) + MenuItem({ content: "菜单选项", symbolEndIcon: null, endIcon: this.iconStr }) + }.fontColor(this.fontColor) + .fontSize(this.fontSize) + .height(this.menuHeight) + .width(this.menuWidth) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Button('longPressShowMenu-0520') + .height(80) + .id("UIComponentPopupboxMenuHmsymbol0520_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + Button("change Properties") + .id("UIComponentPopupboxMenuHmsymbol0520_02") + .onClick(() => { + this.fontColor = Color.Pink; + this.fontSize = 24; + this.menuHeight = 100; + this.menuWidth = 200; + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010.ets new file mode 100644 index 000000000..5e07cf50c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010.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 UIComponentPopupboxMenuInterface0010 { + private iconStr: ResourceStr = "../media/icon.png" + + build() { + Column({ space: 50 }) { + Button("ClickMenu-0010") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0010_01") + .bindMenu([ + { + value: 'Menu1', + icon:this.iconStr, + action: () => { + console.info('handle Menu1 select'); + } + }, + { + value: 'Menu2', + icon:this.iconStr, + action: () => { + console.info('handle Menu2 select'); + } + }, + ]) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020.ets new file mode 100644 index 000000000..b59b3ce6e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020.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 UIComponentPopupboxMenuInterface002 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0020_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030.ets new file mode 100644 index 000000000..40efa2972 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030.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 UIComponentPopupboxMenuInterface0030 { + build() { + Column({ space: 50 }) { + Button("ClickMenu-0030") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0030_01") + .bindMenu([ + { + value: 'Menu1', + action: () => { + console.info('handle Menu1 select'); + } + }, + { + value: 'Menu2', + action: () => { + console.info('handle Menu2 select'); + } + }, + ], { + showInSubWindow: true + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040.ets new file mode 100644 index 000000000..f6ed87445 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040.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 UIComponentPopupboxMenuInterface004 { + @State listData: number[] = [0, 0, 0] + @Builder MenuBuilder() { + Flex({ direction: FlexDirection.Column, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + ForEach(this.listData, (item:number, index) => { + Column() { + Row() { + Image($r("app.media.icon")).width(20).height(20).margin({ right: 5 }) + Text(`Menu${index as number + 1}`).fontSize(20) + } + .width('100%') + .height(30) + .justifyContent(FlexAlign.Center) + .align(Alignment.Center) + .onClick(() => { + console.info(`Menu${index as number + 1} Clicked!`) + }) + + if (index != this.listData.length - 1) { + Divider().height(10).width('80%').color('#ccc') + } + }.padding(5).height(40) + }) + }.width(100) + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0040_001") + .bindMenu(this.MenuBuilder, { + showInSubWindow: false + }) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060.ets new file mode 100644 index 000000000..d50aaa708 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060.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 UIComponentPopupboxMenuInterface0060 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0060") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0060_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + offset: { x: "30px", y: "30px" } + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070.ets new file mode 100644 index 000000000..ef537923a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuInterface0070 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0070") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0070_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + offset: { x: "30px", y: "30px" } + }) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080.ets new file mode 100644 index 000000000..24cf8fa30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080.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 UIComponentPopupboxMenuInterface0080 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0080") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0080_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + offset: { x: $r("app.string.size_30_px"), y: $r("app.string.size_30_px") } + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100.ets new file mode 100644 index 000000000..6502aec20 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100.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 promptAction from '@ohos.promptAction' + +@Entry +@Component +struct UIComponentPopupboxMenuInterface0100 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0010") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0100_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + onAppear: () => { + promptAction.showToast({ + message: 'onAppear触发', + duration: 20000, + }); + } + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110.ets new file mode 100644 index 000000000..67b73bd4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110.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 '@ohos.promptAction' + +@Entry +@Component +struct UIComponentPopupboxMenuInterface011 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0110_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + onDisappear:() => { + console.log(`renyj bindContextMenu onDisappear`) + promptAction.showToast({ message: "renyj bindContextMenu onDisappear" }) + } + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120.ets new file mode 100644 index 000000000..0460701e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120.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 UIComponentPopupboxMenuInterface0120 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundColor(Color.Pink) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0120") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0120_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130.ets new file mode 100644 index 000000000..20cbc5e2d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130.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 UIComponentPopupboxMenuInterface0130 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundColor(0x008000) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0150") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0130_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140.ets new file mode 100644 index 000000000..bfb7a91b4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140.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 UIComponentPopupboxMenuInterface014 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + // .backgroundColor("#ee4508de") + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0140_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150.ets new file mode 100644 index 000000000..f44f45455 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150.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 UIComponentPopupboxMenuInterface0150 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundColor(Color.Gray) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0150") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0150_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170.ets new file mode 100644 index 000000000..67207184c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170.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 UIComponentPopupboxMenuInterface017 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.Thin) + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0170_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180.ets new file mode 100644 index 000000000..d8fe964c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180.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 UIComponentPopupboxMenuInterface0180 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.Regular) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0180") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0180_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190.ets new file mode 100644 index 000000000..1d2c0e24d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190.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 UIComponentPopupboxMenuInterface019 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.Thick) + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0190_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + // .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200.ets new file mode 100644 index 000000000..01bd1ee86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200.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 UIComponentPopupboxMenuInterface0200 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0200") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0200_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210.ets new file mode 100644 index 000000000..2d938ee19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210.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 UIComponentPopupboxMenuInterface0210 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0210") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0210_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220.ets new file mode 100644 index 000000000..dbcf2dad0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220.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 UIComponentPopupboxMenuInterface022 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK) + } + + build() { + Column({ space: 50 }) { + Button("BACKGROUND_THICK") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0220_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230.ets new file mode 100644 index 000000000..9a8c05297 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230.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 UIComponentPopupboxMenuInterface023 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column({ space: 50 }) { + Button("BACKGROUND_ULTRA_THICK") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0230_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + backgroundBlurStyle: BlurStyle.BACKGROUND_ULTRA_THICK + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240.ets new file mode 100644 index 000000000..50611b85f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240.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 UIComponentPopupboxMenuInterface0240 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.NONE) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0240") + .width('50%') + .margin({ top: 5 }) + .key("UIComponentPopupboxMenuInterface0240_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250.ets new file mode 100644 index 000000000..430a3fce4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250.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 UIComponentPopupboxMenuInterface025 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.COMPONENT_ULTRA_THIN) + } + + build() { + Column({ space: 50 }) { + Button("COMPONENT_ULTRA_THIN") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0250_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260.ets new file mode 100644 index 000000000..1f0bcab09 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260.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 UIComponentPopupboxMenuInterface026 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.COMPONENT_THIN) + } + + build() { + Column({ space: 50 }) { + Button("COMPONENT_THIN") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0260_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270.ets new file mode 100644 index 000000000..92a4df5b2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270.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 UIComponentPopupboxMenuInterface027 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.COMPONENT_REGULAR) + } + + build() { + Column({ space: 50 }) { + Button("COMPONENT_REGULAR") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0270_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280.ets new file mode 100644 index 000000000..1b923d723 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280.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 UIComponentPopupboxMenuInterface028 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + .backgroundBlurStyle(BlurStyle.COMPONENT_THICK) + } + + build() { + Column({ space: 50 }) { + Button("COMPONENT_THICK") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0280_001") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290.ets new file mode 100644 index 000000000..6ff30a42b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290.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 UIComponentPopupboxMenuInterface0290 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MenuBuilder() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.backgroundBlurStyle(BlurStyle.COMPONENT_ULTRA_THICK) + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0290") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuInterface0290_01") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress, { + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010.ets new file mode 100644 index 000000000..c8ff256c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010.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. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuPcheight0010 { + build() { + Column({ space: 50 }) { + Button("ClickMenu-0010") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuPcheight0010_01") + .bindMenu([ + { + value: 'Menu1', + action: () => { + console.info('handle Menu1 select'); + } + }, { + value: 'Menu2', + action: () => { + console.info('handle Menu2 select'); + } + }, { + value: 'Menu3', + action: () => { + console.info('handle Menu3 select'); + } + }, { + value: 'Menu4', + action: () => { + console.info('handle Menu4 select'); + } + }, { + value: 'Menu5', + action: () => { + console.info('handle Menu5 select'); + } + }, { + value: 'Menu6', + action: () => { + console.info('handle Menu6 select'); + } + }, { + value: 'Menu7', + action: () => { + console.info('handle Menu7 select'); + } + }, { + value: 'Menu8', + action: () => { + console.info('handle Menu8 select'); + } + }, { + value: 'Menu9', + action: () => { + console.info('handle Menu9 select'); + } + }, { + value: 'Menu10', + action: () => { + console.info('handle Menu10 select'); + } + }, { + value: 'Menu11', + action: () => { + console.info('handle Menu11 select'); + } + }, { + value: 'Menu12', + action: () => { + console.info('handle Menu12 select'); + } + }, { + value: 'Menu13', + action: () => { + console.info('handle Menu13 select'); + } + }, { + value: 'Menu14', + action: () => { + console.info('handle Menu14 select'); + } + }, { + value: 'Menu15', + action: () => { + console.info('handle Menu15 select'); + } + }, { + value: 'Menu16', + action: () => { + console.info('handle Menu16 select'); + } + }, { + value: 'Menu17', + action: () => { + console.info('handle Menu17 select'); + } + }, { + value: 'Menu18', + action: () => { + console.info('handle Menu18 select'); + } + }, { + value: 'Menu19', + action: () => { + console.info('handle Menu19 select'); + } + }, { + value: 'Menu20', + action: () => { + console.info('handle Menu20 select'); + } + }, + ], { + showInSubWindow: true + }) + } + .height('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020.ets new file mode 100644 index 000000000..7b43b661e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020.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 UIComponentPopupboxMenuPcheight002 { + @State select: boolean = true + private iconStr: ResourceStr = $r("app.media.icon") + private iconStr2: ResourceStr = $r("app.media.icon") + @State listData: number[] = [] + + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.listData.push(1) + } + } + + @Builder + MyMenu(){ + Menu() { + ForEach(this.listData,(item:number) => { + MenuItem({ + startIcon: $r("app.media.icon"), + content: "菜单选项"+item}) + }) + } + } + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuPcheight0020_001") + .bindMenu(this.MyMenu()) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070.ets new file mode 100644 index 000000000..ad31e3d5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070.ets @@ -0,0 +1,175 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuPcheight007 { + @State select: boolean = true + private iconStr: ResourceStr = $r("app.media.icon") + private iconStr2: ResourceStr = $r("app.media.icon") + @State listData: number[] = [] + + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.listData.push(1) + } + } + @Builder + SubMenu() { + Menu() { + ForEach(this.listData,(item:number) => { + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项"+item }) + }) + } + } + + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuPcheight0070_001") + .bindMenu([ + { + value: 'Menu1', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + }, + { + value: 'Menu2', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu3', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu4', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu5', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu6', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu7', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu8', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu9', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu10', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu11', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu12', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu13', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu14', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu15', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu16', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu17', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu18', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu19', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + },{ + value: 'Menu20', + action: () => { + this.SubMenu(); + console.info('handle Menu1 select'); + }, + }, + ]) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080.ets new file mode 100644 index 000000000..69b8bb8cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080.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 UIComponentPopupboxMenuPcheight008 { + @State select: boolean = true + private iconStr: ResourceStr = $r("app.media.icon") + private iconStr2: ResourceStr = $r("app.media.icon") + @State listData: number[] = [] + + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.listData.push(1) + } + } + @Builder + SubMenu() { + Menu() { + ForEach(this.listData,(item:number) => { + MenuItem({ startIcon: $r("app.media.icon"), content: "菜单选项"+item }) + }) + } + } + + @Builder + MyMenu(){ + Menu() { + MenuItem({ + startIcon: $r("app.media.icon"), + content: "11111", + builder: ():void=>this.SubMenu()}) + .id('UIComponentPopupboxMenuPcheight0080_002') + ForEach(this.listData,(item:number) => { + MenuItem({ + startIcon: $r("app.media.icon"), + content: "菜单选项"+item, + builder: ():void=>this.SubMenu()}) + }) + } + } + + + build() { + Column({ space: 50 }) { + Button("backgroundColor") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuPcheight0080_001") + .bindMenu(this.MyMenu()) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220.ets new file mode 100644 index 000000000..dea842096 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220.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 UIComponentPopupboxMenuPcheight0220 { + private iconStr: ResourceStr = $r("app.media.icon") + @State listData: number[] = [0, 0, 0, 0, 0, 0, 0] + @Builder MenuBuilder() { + List(){ + ForEach(this.listData, (item:number, index) => { + ListItem() { + Row(){ + Image($r("app.media.icon")).width(30).height(30) + Text(`Menu${index as number + 1}`) + TextInput() + }.padding(5).height(60) + } + .width('100%') + .height(80) + .align(Alignment.Center) + .onClick(() => { + console.info(`Menu${index as number + 1} Clicked!`); + }) + }) + }.id("UIComponentPopupboxMenuPcheight0220_01") + .height('85%') + } + + build() { + Column({ space: 50 }) { + Button("LongPressMenu-0220") + .width('50%') + .margin({ top: 5 }) + .id("UIComponentPopupboxMenuPcheight0220_02") + .bindContextMenu(this.MenuBuilder, ResponseType.LongPress) + } + .height('100%') + .width('100%') + .margin({ left: 20, right: 20 }) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370.ets new file mode 100644 index 000000000..f2c48921a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370.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 UIComponentPopupboxMenuScenarios0370 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-0370') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0370_01") + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380.ets new file mode 100644 index 000000000..8e5b600ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380.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 UIComponentPopupboxMenuScenarios0380 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('70%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0380') + .height('50%') + .width('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0380_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390.ets new file mode 100644 index 000000000..2cb27e6a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390.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 UIComponentPopupboxMenuScenarios0390 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-0390') + .height('50%') + .width('10%') + .margin({ right: '15%' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0390_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '30%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400.ets new file mode 100644 index 000000000..1d28504fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400.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 UIComponentPopupboxMenuScenarios0400 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Column() /*({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center })*/ { + Text('longPressShowMenu-0400') + .height('50%') + .width('10%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0400_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '0%' + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410.ets new file mode 100644 index 000000000..7ef821a73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410.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 UIComponentPopupboxMenuScenarios0410 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0410') + .height('50%') + .width('10%') + .margin({ left: '15%' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0410_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420.ets new file mode 100644 index 000000000..1a36f4218 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420.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 UIComponentPopupboxMenuScenarios0420 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0420') + .height('50%') + .width('10%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0420_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.BottomLeft, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430.ets new file mode 100644 index 000000000..0119ef70d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430.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 UIComponentPopupboxMenuScenarios0430 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0430') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0430_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.BottomRight, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440.ets new file mode 100644 index 000000000..18e9dca57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440.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 UIComponentPopupboxMenuScenarios0440 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0440') + .onClick(() => { + this.isShown = !this.isShown; + }) + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0440_01") + .bindContextMenu(this.isShown, this.MyMenu, + { + enableArrow: true, + placement:Placement.BottomRight, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450.ets new file mode 100644 index 000000000..ffb8d59be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450.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 UIComponentPopupboxMenuScenarios0450 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0450') + .height('50%') + .width('10%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0450_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460.ets new file mode 100644 index 000000000..e919b1c4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460.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 UIComponentPopupboxMenuScenarios0460 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0460') + .height('50%') + .width('10%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0460_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470.ets new file mode 100644 index 000000000..c62c19ebe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470.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 UIComponentPopupboxMenuScenarios0470 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0470') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0470_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopLeft, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480.ets new file mode 100644 index 000000000..99dca5ee2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480.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 UIComponentPopupboxMenuScenarios0480 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0480') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0480_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopLeft, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490.ets new file mode 100644 index 000000000..7627c8da8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490.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 UIComponentPopupboxMenuScenarios0490 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0490') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0490_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopRight, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500.ets new file mode 100644 index 000000000..9474dca82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500.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 UIComponentPopupboxMenuScenarios0500 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('30%').height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0500') + .height('50%') + .width('10%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0500_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.TopRight + }) + }.backgroundColor(Color.Black) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510.ets new file mode 100644 index 000000000..95a0e79b7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510.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 UIComponentPopupboxMenuScenarios0510 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0510') + .height('50%') + .width('10%') + .margin({ left: '15%' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0510_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520.ets new file mode 100644 index 000000000..004e6cd6a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520.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 UIComponentPopupboxMenuScenarios0520 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0520') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0520_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Top, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530.ets new file mode 100644 index 000000000..96c9f6403 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530.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 UIComponentPopupboxMenuScenarios0530 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0530') + .height('50%') + .width('10%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0530_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540.ets new file mode 100644 index 000000000..398ea7fef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540.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 UIComponentPopupboxMenuScenarios0540 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0540') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0540_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Top, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550.ets new file mode 100644 index 000000000..94381d5a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550.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 UIComponentPopupboxMenuScenarios0550 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%').width('30%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0550') + .height('50%') + .width('10%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0550_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Top, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560.ets new file mode 100644 index 000000000..e9a40a1d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560.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 UIComponentPopupboxMenuScenarios0560 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0560') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0560_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.LeftBottom, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570.ets new file mode 100644 index 000000000..939853844 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570.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 UIComponentPopupboxMenuScenarios0570 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0570') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0570_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580.ets new file mode 100644 index 000000000..420be27a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580.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 UIComponentPopupboxMenuScenarios0580 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0580') + .height('50%') + .margin({ right: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0580_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590.ets new file mode 100644 index 000000000..5402975c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590.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 UIComponentPopupboxMenuScenarios0590 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0590') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0590_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.LeftBottom, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600.ets new file mode 100644 index 000000000..a853c99ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600.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 UIComponentPopupboxMenuScenarios0600 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-0600') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0600_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610.ets new file mode 100644 index 000000000..04e24babf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610.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 UIComponentPopupboxMenuScenarios0610 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0610') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0610_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620.ets new file mode 100644 index 000000000..1a92f54b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620.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 UIComponentPopupboxMenuScenarios0620 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0620') + .height('50%') + .margin({ right: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0620_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630.ets new file mode 100644 index 000000000..6bb75ddbc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630.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 UIComponentPopupboxMenuScenarios0630 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0630') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0630_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640.ets new file mode 100644 index 000000000..6113e277d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640.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 UIComponentPopupboxMenuScenarios0640 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0640') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0640_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650.ets new file mode 100644 index 000000000..66ccbc5ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650.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 UIComponentPopupboxMenuScenarios0650 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0650') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0650_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Left, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660.ets new file mode 100644 index 000000000..3666bc71c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660.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 UIComponentPopupboxMenuScenarios0660 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0660') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0660_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670.ets new file mode 100644 index 000000000..7643564c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670.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 UIComponentPopupboxMenuScenarios0670 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0670') + .height('50%') + // .margin({top:'25%'}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0670_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Left, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680.ets new file mode 100644 index 000000000..639f367b1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680.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 UIComponentPopupboxMenuScenarios0680 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0680') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0680_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690.ets new file mode 100644 index 000000000..04665d803 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690.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 UIComponentPopupboxMenuScenarios0690 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0690') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0690_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700.ets new file mode 100644 index 000000000..32a119f4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700.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 UIComponentPopupboxMenuScenarios0700 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0700') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0700_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710.ets new file mode 100644 index 000000000..723407f51 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710.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 UIComponentPopupboxMenuScenarios0710 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0710') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0710_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.RightBottom, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720.ets new file mode 100644 index 000000000..390e75c0e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720.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 UIComponentPopupboxMenuScenarios0720 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0720') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0720_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730.ets new file mode 100644 index 000000000..a1fb29086 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730.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 UIComponentPopupboxMenuScenarios0730 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0730') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0730_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '10%', + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740.ets new file mode 100644 index 000000000..e1201b209 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740.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 UIComponentPopupboxMenuScenarios0740 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0740') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0740_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750.ets new file mode 100644 index 000000000..8330501ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750.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 UIComponentPopupboxMenuScenarios0750 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End }) { + Text('longPressShowMenu-0750') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0750_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760.ets new file mode 100644 index 000000000..2b6964a87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760.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 UIComponentPopupboxMenuScenarios0760 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0760') + .height('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0760_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Right, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770.ets new file mode 100644 index 000000000..0264ea4bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770.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 UIComponentPopupboxMenuScenarios0770 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0770') + .height('50%') + .margin({ right: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0770_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780.ets new file mode 100644 index 000000000..6567c32a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780.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 UIComponentPopupboxMenuScenarios0780 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0780') + .height('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0780_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790.ets new file mode 100644 index 000000000..2c56a56d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790.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 UIComponentPopupboxMenuScenarios0790 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0790') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0790_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800.ets new file mode 100644 index 000000000..314a7d439 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800.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 UIComponentPopupboxMenuScenarios0800 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0800') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0800_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810.ets new file mode 100644 index 000000000..bcfe7b5d8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810.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 UIComponentPopupboxMenuScenarios0810 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0810') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0810_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820.ets new file mode 100644 index 000000000..2ea6c7e63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820.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 UIComponentPopupboxMenuScenarios0820 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0820') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0820_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.LeftBottom, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830.ets new file mode 100644 index 000000000..65835d756 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830.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 UIComponentPopupboxMenuScenarios0830 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0830') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0830_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840.ets new file mode 100644 index 000000000..6f285f533 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840.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 UIComponentPopupboxMenuScenarios0840 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0840') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0840_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850.ets new file mode 100644 index 000000000..cc0faf484 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850.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 UIComponentPopupboxMenuScenarios0850 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0850') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0850_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860.ets new file mode 100644 index 000000000..0f0b9011e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860.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 UIComponentPopupboxMenuScenarios0860 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0860') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0860_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870.ets new file mode 100644 index 000000000..8ac71eb73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870.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 UIComponentPopupboxMenuScenarios0870 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0870') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0870_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880.ets new file mode 100644 index 000000000..a1c1bb019 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880.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 UIComponentPopupboxMenuScenarios0880 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0880') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0880_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Left, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890.ets new file mode 100644 index 000000000..51e00105e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890.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 UIComponentPopupboxMenuScenarios0890 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0890') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0890_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.Left, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900.ets new file mode 100644 index 000000000..e057e9ec8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900.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 UIComponentPopupboxMenuScenarios0900 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0900') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0900_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910.ets new file mode 100644 index 000000000..293cbf1b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910.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 UIComponentPopupboxMenuScenarios0910 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0910') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0910_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920.ets new file mode 100644 index 000000000..7013c7476 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920.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 UIComponentPopupboxMenuScenarios0920 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0920') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0920_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930.ets new file mode 100644 index 000000000..40884e6aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930.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 UIComponentPopupboxMenuScenarios0930 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0930') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0930_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940.ets new file mode 100644 index 000000000..7c55c85f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940.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 UIComponentPopupboxMenuScenarios0940 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0940') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0940_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950.ets new file mode 100644 index 000000000..2555695a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950.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 UIComponentPopupboxMenuScenarios0950 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0950') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0950_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960.ets new file mode 100644 index 000000000..6f2f9cb73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960.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 UIComponentPopupboxMenuScenarios0960 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0960') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0960_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970.ets new file mode 100644 index 000000000..f787ef831 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970.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 UIComponentPopupboxMenuScenarios0970 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-0970') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0970_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980.ets new file mode 100644 index 000000000..2f4d08c28 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980.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 UIComponentPopupboxMenuScenarios0980 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start,alignItems:ItemAlign.Center}) { + Text('longPressShowMenu-0980') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0980_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.RightTop, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990.ets new file mode 100644 index 000000000..0b889ef53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990.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 UIComponentPopupboxMenuScenarios0990 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center}) { + Text('longPressShowMenu-0990') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios0990_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000.ets new file mode 100644 index 000000000..df0b3a09a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000.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 UIComponentPopupboxMenuScenarios1000 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-1000') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1000_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '10%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010.ets new file mode 100644 index 000000000..6b77fdebe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010.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 UIComponentPopupboxMenuScenarios1010 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-1010') + .height('50%') + .margin({ left: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1010_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '100%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020.ets new file mode 100644 index 000000000..fd1c08f1d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020.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 UIComponentPopupboxMenuScenarios1020 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-1020') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1020_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right, + arrowOffset: '50%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030.ets new file mode 100644 index 000000000..b3f64c45b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030.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 UIComponentPopupboxMenuScenarios1030 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1030') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1030_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040.ets new file mode 100644 index 000000000..96f9d28dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040.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 UIComponentPopupboxMenuScenarios1040 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1040') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1040_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '10%', + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050.ets new file mode 100644 index 000000000..ba6cc2a17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050.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 UIComponentPopupboxMenuScenarios1050 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1050') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1050_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060.ets new file mode 100644 index 000000000..4f8bcad54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060.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 UIComponentPopupboxMenuScenarios1060 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1060') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1060_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070.ets new file mode 100644 index 000000000..7885c321c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070.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 UIComponentPopupboxMenuScenarios1070 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1070') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1070_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080.ets new file mode 100644 index 000000000..4b4d5f0c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080.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 UIComponentPopupboxMenuScenarios1080 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1080') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1080_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090.ets new file mode 100644 index 000000000..3c4262bc0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090.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 UIComponentPopupboxMenuScenarios1090 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1090') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1090_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100.ets new file mode 100644 index 000000000..ee8cd2fed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100.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 UIComponentPopupboxMenuScenarios1100 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Start, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1100') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1100_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%', + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110.ets new file mode 100644 index 000000000..72231e69c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110.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 UIComponentPopupboxMenuScenarios1110 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1110') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1110_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120.ets new file mode 100644 index 000000000..d27506cba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120.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 UIComponentPopupboxMenuScenarios1120 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1120') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1120_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130.ets new file mode 100644 index 000000000..4136e7d45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130.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 UIComponentPopupboxMenuScenarios1130 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1130') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1130_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140.ets new file mode 100644 index 000000000..5fc64afbd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140.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 UIComponentPopupboxMenuScenarios1140 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1140') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1140_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150.ets new file mode 100644 index 000000000..091b0b40b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150.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 UIComponentPopupboxMenuScenarios1150 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1150') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1150_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160.ets new file mode 100644 index 000000000..eb27f8f84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160.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 UIComponentPopupboxMenuScenarios1160 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1160') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1160_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopLeft, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170.ets new file mode 100644 index 000000000..c549ab6c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170.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 UIComponentPopupboxMenuScenarios1170 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1170') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1170_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180.ets new file mode 100644 index 000000000..fd1286fe3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180.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 UIComponentPopupboxMenuScenarios1180 { + private iconStr: ResourceStr = $r("app.media.icon") + @State isShown: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Column() { + Text('longPressShowMenu-1180') + .height(100) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1180_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%', + placement:Placement.TopLeft + }) + } + .height('100%') + .width('100%') + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190.ets new file mode 100644 index 000000000..ecf94e09b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190.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 UIComponentPopupboxMenuScenarios1190 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1190') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1190_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200.ets new file mode 100644 index 000000000..34574b525 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200.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 UIComponentPopupboxMenuScenarios1200 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1200') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1200_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopRight, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210.ets new file mode 100644 index 000000000..e6ddd9197 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210.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 UIComponentPopupboxMenuScenarios1210 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1210') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1210_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220.ets new file mode 100644 index 000000000..13d444fbf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220.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 UIComponentPopupboxMenuScenarios1220 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1220') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1220_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopRight, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230.ets new file mode 100644 index 000000000..73bf11837 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230.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 UIComponentPopupboxMenuScenarios1230 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1230') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1230_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240.ets new file mode 100644 index 000000000..679679a49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240.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 UIComponentPopupboxMenuScenarios1240 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1240') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1240_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250.ets new file mode 100644 index 000000000..588aacaa7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250.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 UIComponentPopupboxMenuScenarios1250 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Text('longPressShowMenu-1250') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1250_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260.ets new file mode 100644 index 000000000..93edada46 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260.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 UIComponentPopupboxMenuScenarios1260 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.End}) { + Text('longPressShowMenu-1260') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1260_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270.ets new file mode 100644 index 000000000..92c61f612 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270.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 UIComponentPopupboxMenuScenarios1270 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1270') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1270_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280.ets new file mode 100644 index 000000000..6e1b0c12a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280.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 UIComponentPopupboxMenuScenarios1280 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1280') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1280_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290.ets new file mode 100644 index 000000000..4a7835120 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290.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 UIComponentPopupboxMenuScenarios1290 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1290') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1290_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300.ets new file mode 100644 index 000000000..8f1869f5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300.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 UIComponentPopupboxMenuScenarios1300 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1300') + .height(80) + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1300_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310.ets new file mode 100644 index 000000000..ad6ac9cbc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310.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 UIComponentPopupboxMenuScenarios1310 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1310') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1310_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320.ets new file mode 100644 index 000000000..9113c2deb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320.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 UIComponentPopupboxMenuScenarios1320 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1320') + .height(80) + .width('50%') + .margin({right:'20'}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1320_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%', + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330.ets new file mode 100644 index 000000000..cbed7ce01 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330.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 UIComponentPopupboxMenuScenarios1330 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1330') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1330_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340.ets new file mode 100644 index 000000000..c9f0ae1d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340.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 UIComponentPopupboxMenuScenarios1340 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1340') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1340_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350.ets new file mode 100644 index 000000000..fe4d1d1dc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350.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 UIComponentPopupboxMenuScenarios1350 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1350') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1350_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360.ets new file mode 100644 index 000000000..b68e2ef35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360.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 UIComponentPopupboxMenuScenarios1360 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1360') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1360_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370.ets new file mode 100644 index 000000000..9f8d70b8c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370.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 UIComponentPopupboxMenuScenarios1370 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1370') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1370_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.LeftBottom, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380.ets new file mode 100644 index 000000000..eef7c8f27 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380.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 UIComponentPopupboxMenuScenarios1380 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1380') + .height(80) + .width('50%') + .margin({right:'15%'}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1380_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%', + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390.ets new file mode 100644 index 000000000..b203add40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390.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 UIComponentPopupboxMenuScenarios1390 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1390') + .height(80) + .width('50%') + .margin({right:'15%'}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1390_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400.ets new file mode 100644 index 000000000..b9464d9bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400.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 UIComponentPopupboxMenuScenarios1400 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End }) { + Text('LongPressShowMenu-1400') + .height(100) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .margin({right:'10%'}) + .id("UIComponentPopupboxMenuScenarios1400_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.LeftTop + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410.ets new file mode 100644 index 000000000..e3043dc04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410.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 UIComponentPopupboxMenuScenarios1410 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1410') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1410_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420.ets new file mode 100644 index 000000000..2910f50f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420.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 UIComponentPopupboxMenuScenarios1420 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1420') + .height(80) + .width('50%') + .margin({right:"20"}) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1420_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430.ets new file mode 100644 index 000000000..d47275d39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430.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 UIComponentPopupboxMenuScenarios1430 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1430') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1430_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440.ets new file mode 100644 index 000000000..f754cda60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440.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 UIComponentPopupboxMenuScenarios1440 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.End, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1440') + .height(80) + .width('50%') + .margin({ right: '20' }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1440_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450.ets new file mode 100644 index 000000000..96fd0f861 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450.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 UIComponentPopupboxMenuScenarios1450 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1450') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1450_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '0%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460.ets new file mode 100644 index 000000000..95fdd1ad1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460.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 UIComponentPopupboxMenuScenarios1460 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1460') + .height('50%') + .margin({ left: "20" }) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1460_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom, + arrowOffset: '30%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470.ets new file mode 100644 index 000000000..e0d0f79a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470.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 UIComponentPopupboxMenuScenarios1470 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.height('60%') + } + + build() { + Flex({justifyContent: FlexAlign.End,alignItems:ItemAlign.End}) { + Text('longPressShowMenu-1470') + .height('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1470_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.TopRight, + arrowOffset: '30%' + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480.ets new file mode 100644 index 000000000..a42976666 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480.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 UIComponentPopupboxMenuScenarios1480 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('80%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-1480') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1480_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '30%', + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490.ets new file mode 100644 index 000000000..2f800dee3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490.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 UIComponentPopupboxMenuScenarios1490 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1490') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1490_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500.ets new file mode 100644 index 000000000..a36e0f2b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500.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 UIComponentPopupboxMenuScenarios1500 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Text('longPressShowMenu-1500') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1500_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: false, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540.ets new file mode 100644 index 000000000..de59a2ae3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540.ets @@ -0,0 +1,29 @@ +@Entry +@Component +struct UIComponentPopupboxMenuScenarios1540 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1540') + .height(80) + .id("UIComponentPopupboxMenuScenarios1540_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '-1', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550.ets new file mode 100644 index 000000000..a69597937 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550.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 UIComponentPopupboxMenuScenarios1550 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1550') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1550_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: 0, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570.ets new file mode 100644 index 000000000..8c0abf761 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570.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 UIComponentPopupboxMenuScenarios1570 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Start}) { + Text('LongPressShowMenu-1570') + .height(100) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1570_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: 1000 + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580.ets new file mode 100644 index 000000000..ea44ea7bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580.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 UIComponentPopupboxMenuScenarios1580 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1580') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1580_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50vp', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590.ets new file mode 100644 index 000000000..d10bf6e97 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590.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 UIComponentPopupboxMenuScenarios1590 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1590') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1590_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '20px', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600.ets new file mode 100644 index 000000000..1c67b5f16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600.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 UIComponentPopupboxMenuScenarios1600 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1600') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1600_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '70px', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610.ets new file mode 100644 index 000000000..8d420628d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610.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 UIComponentPopupboxMenuScenarios1610 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1610') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1610_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '', + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620.ets new file mode 100644 index 000000000..6507d9b7c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620.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 UIComponentPopupboxMenuScenarios1620 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1620') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1620_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: $r('app.float.arrowOffset_1000'), + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630.ets new file mode 100644 index 000000000..15b806939 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630.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 UIComponentPopupboxMenuScenarios1630 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1630') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1630_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: $r('app.float.arrowOffset_50vp'), + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640.ets new file mode 100644 index 000000000..af4fb56ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640.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 UIComponentPopupboxMenuScenarios1640 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1640') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1640_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '120%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650.ets new file mode 100644 index 000000000..bf7e878b4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650.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 UIComponentPopupboxMenuScenarios1650 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1650') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1650_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '20%', + }) + } + .height('100%') + .width('100%') + } +} + + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660.ets new file mode 100644 index 000000000..703c88fc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660.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 UIComponentPopupboxMenuScenarios1660 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center }) { + Text('LongPressShowMenu-1660') + .height(100) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1660_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%' + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670.ets new file mode 100644 index 000000000..3f05e085f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670.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 UIComponentPopupboxMenuScenarios1670 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1670') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1670_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '70%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680.ets new file mode 100644 index 000000000..988478925 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680.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 UIComponentPopupboxMenuScenarios1680 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1680') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1680_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690.ets new file mode 100644 index 000000000..52059aa7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690.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 UIComponentPopupboxMenuScenarios1690 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1690') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1690_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '1000px', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700.ets new file mode 100644 index 000000000..b94d360c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700.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 UIComponentPopupboxMenuScenarios1700 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1700') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1700_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710.ets new file mode 100644 index 000000000..742e026e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710.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 UIComponentPopupboxMenuScenarios1710 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1710') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1710_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720.ets new file mode 100644 index 000000000..40214e5b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720.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 UIComponentPopupboxMenuScenarios1720 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1720') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1720_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730.ets new file mode 100644 index 000000000..a2934e1fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730.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 UIComponentPopupboxMenuScenarios1730 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1730') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1730_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.LeftBottom, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740.ets new file mode 100644 index 000000000..a2d5c979f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740.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 UIComponentPopupboxMenuScenarios1740 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1740') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1740_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750.ets new file mode 100644 index 000000000..611a9da21 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750.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 UIComponentPopupboxMenuScenarios1750 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1750') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1750_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement:Placement.BottomRight, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760.ets new file mode 100644 index 000000000..abb557605 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760.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 UIComponentPopupboxMenuScenarios1760 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1760') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1760_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770.ets new file mode 100644 index 000000000..70d0e7d16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770.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 UIComponentPopupboxMenuScenarios1770 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1770') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1770_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780.ets new file mode 100644 index 000000000..800efc560 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780.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 UIComponentPopupboxMenuScenarios1780 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1780') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1780_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '0%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790.ets new file mode 100644 index 000000000..b68e9cae4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790.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 UIComponentPopupboxMenuScenarios1790 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1790') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1790_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '10%', + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800.ets new file mode 100644 index 000000000..ff0aaa8ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800.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 UIComponentPopupboxMenuScenarios1800 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1800') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1800_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810.ets new file mode 100644 index 000000000..e73da136b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810.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 UIComponentPopupboxMenuScenarios1810 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1810') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1810_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820.ets new file mode 100644 index 000000000..53049cccd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820.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 UIComponentPopupboxMenuScenarios1820 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1820') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1820_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '10%', + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830.ets new file mode 100644 index 000000000..58b1b4200 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830.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 UIComponentPopupboxMenuScenarios1830 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1830') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1830_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840.ets new file mode 100644 index 000000000..ac2a15afa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840.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 UIComponentPopupboxMenuScenarios1840 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1840') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1840_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850.ets new file mode 100644 index 000000000..4183f1cdd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850.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 UIComponentPopupboxMenuScenarios1850 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1850') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1850_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860.ets new file mode 100644 index 000000000..948aaccf8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860.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 UIComponentPopupboxMenuScenarios1860 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1860') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1860_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight, + arrowOffset: '10%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870.ets new file mode 100644 index 000000000..753b6c16d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870.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 UIComponentPopupboxMenuScenarios1870 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1870') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1870_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight, + arrowOffset: '100%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880.ets new file mode 100644 index 000000000..be216ed5b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880.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 UIComponentPopupboxMenuScenarios1880 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start}) { + Text('longPressShowMenu-1880') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1880_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight, + arrowOffset: '50%', + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890.ets new file mode 100644 index 000000000..a5728428e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890.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 UIComponentPopupboxMenuScenarios1890 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1890') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1890_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '0%', + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900.ets new file mode 100644 index 000000000..526fdccfb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900.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 UIComponentPopupboxMenuScenarios1900 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1900') + .height(100) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1900_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '10%', + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910.ets new file mode 100644 index 000000000..16c6d1dfa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910.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 UIComponentPopupboxMenuScenarios1910 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1910') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1910_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '100%', + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920.ets new file mode 100644 index 000000000..e10de1b35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920.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 UIComponentPopupboxMenuScenarios1920 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + }.width('60%') + } + + build() { + Flex({justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-1920') + .height(80) + .width('50%') + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuScenarios1920_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + arrowOffset: '50%', + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060.ets new file mode 100644 index 000000000..4b5ac94c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0060') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0060_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080.ets new file mode 100644 index 000000000..843417daa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0080 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.fp(1.5), + startMargin: LengthMetrics.vp(50), + endMargin: LengthMetrics.vp(50) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0080') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0080_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090.ets new file mode 100644 index 000000000..48f1bd057 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0090 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(0), + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0090') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0090_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100.ets new file mode 100644 index 000000000..ad031aaf2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0100 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(-1.5), + endMargin: LengthMetrics.vp(-1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0100') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0100_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110.ets new file mode 100644 index 000000000..8cfa572c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0110 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(10), + startMargin: LengthMetrics.vp(0), + endMargin: LengthMetrics.vp(0) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0110') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0110_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120.ets new file mode 100644 index 000000000..952e89996 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0120 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.fp(1), + startMargin: LengthMetrics.vp(-10), + endMargin: LengthMetrics.vp(-10) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0120') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0120_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130.ets new file mode 100644 index 000000000..ed1ccd819 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0130 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: $r('app.string.menu_divider_color'), + strokeWidth: LengthMetrics.percent(20), + startMargin: LengthMetrics.lpx(120), + endMargin: LengthMetrics.lpx(120) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0130') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0130_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140.ets new file mode 100644 index 000000000..ee21c65fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0140 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0140') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0140_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150.ets new file mode 100644 index 000000000..ef73e916c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0150 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0150') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0150_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160.ets new file mode 100644 index 000000000..565cbc3a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160.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 { ColorMetrics, LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0160 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: ColorMetrics.rgba(57,47,73,0.2).color, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.fp(1.5), + endMargin: LengthMetrics.fp(1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0160') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0160_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170.ets new file mode 100644 index 000000000..285c62c59 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0170 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 0XFF3C4B34, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.px(10), + endMargin: LengthMetrics.px(10) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0170') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0170_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180.ets new file mode 100644 index 000000000..887253877 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0180 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: '#392F49', + strokeWidth: LengthMetrics.vp(60), + startMargin: LengthMetrics.vp(1), + endMargin: LengthMetrics.vp(1) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0180') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0180_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190.ets new file mode 100644 index 000000000..002403ce8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0190 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.vp(-10), + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0190') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0190_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200.ets new file mode 100644 index 000000000..5a753c4ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0200 { + private iconStr: ResourceStr = $r("app.media.icon"); + private strokeWidth: LengthMetrics = { value: 20, unit: -8 }; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: this.strokeWidth, + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0200') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0200_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210.ets new file mode 100644 index 000000000..5329a76e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0210 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(undefined) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0210') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0210_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220.ets new file mode 100644 index 000000000..aea79fda4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0220 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Color.Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0220') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0220_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230.ets new file mode 100644 index 000000000..c46887a9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0230 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0230') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0230_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240.ets new file mode 100644 index 000000000..fbbe23105 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0240 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItemGroup({ header: 'Group 小标题' }) { + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + } + + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0240') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0240_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250.ets new file mode 100644 index 000000000..9eae3ef32 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0250 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + MenuItem({ content: "菜单选项10", }).width(240).height(60) + MenuItem({ content: "菜单选项11", }).width(240).height(60) + MenuItem({ content: "菜单选项12", }).width(240).height(60) + MenuItem({ content: "菜单选项13", }).width(240).height(60) + MenuItem({ content: "菜单选项14", }).width(240).height(60) + MenuItem({ content: "菜单选项15", }).width(240).height(60) + MenuItem({ content: "菜单选项16", }).width(240).height(60) + MenuItem({ content: "菜单选项17", }).width(240).height(60) + MenuItem({ content: "菜单选项18", }).width(240).height(60) + MenuItem({ content: "菜单选项19", }).width(240).height(60) + MenuItem({ content: "菜单选项20", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0250') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0250_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260.ets new file mode 100644 index 000000000..93719583e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0260 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0260') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0260_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0270.ets new file mode 100644 index 000000000..2201b8a49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0270.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 window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0270 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement0270_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('longPressShowMenu-0270') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0270_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280.ets new file mode 100644 index 000000000..8d27d863b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280.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 UIComponentPopupboxMenuStyleEnhancement0280 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider( { + color: undefined, + strokeWidth: undefined, + startMargin: undefined, + endMargin: undefined + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0280') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0280_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0290.ets new file mode 100644 index 000000000..bb363ee1c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0290.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0290 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State dividers: DividerStyleOptions[] = [{ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }, {}]; + @State dividerIndex: number = 0; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(this.dividers[this.dividerIndex]) + } + + build() { + Column({ space: 30 }) { + Button('changeDividerStyle') + .id("UIComponentPopupboxMenuStyleEnhancement0290_02") + .onClick(() => { + this.dividerIndex++; + if (this.dividerIndex > this.dividers.length) { + this.dividerIndex = 0; + } + }) + Button('longPressShowMenu-0290') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0290_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310.ets new file mode 100644 index 000000000..29795f4e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0310 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(50), + endMargin: LengthMetrics.vp(50) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0310') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0310_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320.ets new file mode 100644 index 000000000..2665ea0d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0320 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(0), + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0320') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0320_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330.ets new file mode 100644 index 000000000..4659c12bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330.ets @@ -0,0 +1,35 @@ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0330 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(-1.5), + endMargin: LengthMetrics.vp(-1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0330') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0330_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340.ets new file mode 100644 index 000000000..04c70cf13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0340 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(10), + startMargin: LengthMetrics.vp(0), + endMargin: LengthMetrics.vp(0) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0340') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0340_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350.ets new file mode 100644 index 000000000..45e3baf2f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0350 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1), + startMargin: LengthMetrics.vp(-10), + endMargin: LengthMetrics.vp(-10) + }) + } + + build() { + Column({ space: 30 }) { + Button('LongPressShowMenu-0350') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0350_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360.ets new file mode 100644 index 000000000..302759516 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0360 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: $r('app.string.menu_divider_color'), + strokeWidth: LengthMetrics.percent(20), + startMargin: LengthMetrics.lpx(120), + endMargin: LengthMetrics.lpx(120) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0360') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0360_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370.ets new file mode 100644 index 000000000..56f0930d3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0370 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0370') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0370_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380.ets new file mode 100644 index 000000000..0c215e73f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0380 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0380') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0380_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390.ets new file mode 100644 index 000000000..af9052b50 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390.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 { ColorMetrics, LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0390 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: ColorMetrics.rgba(57,47,73,0.2).color, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.fp(1.5), + endMargin: LengthMetrics.fp(1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0390') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0390_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400.ets new file mode 100644 index 000000000..cbf415d99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0400 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 0xFF3C4B34, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.px(10), + endMargin: LengthMetrics.px(10) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0400') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0400_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410.ets new file mode 100644 index 000000000..5b5edbea2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0410 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: '#392F49', + strokeWidth: LengthMetrics.vp(60), + startMargin: LengthMetrics.vp(1), + endMargin: LengthMetrics.vp(1) + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0410') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0410_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420.ets new file mode 100644 index 000000000..862ea0360 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0420 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(-10), + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0420') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0420_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430.ets new file mode 100644 index 000000000..51c27180e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0430 { + private iconStr: ResourceStr = $r("app.media.icon"); + private strokeWidth: LengthMetrics = { value: 20, unit: -8 }; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: this.strokeWidth, + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0430') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0430_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440.ets new file mode 100644 index 000000000..d961c9e64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0440 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(undefined) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0440') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0440_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450.ets new file mode 100644 index 000000000..f0daad89d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0450 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Color.Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0450') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0450_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460.ets new file mode 100644 index 000000000..7ae4d8bc3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0460 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('longPressShowMenu-0460') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0460_01") + .bindContextMenu(this.MyMenu,ResponseType.LongPress, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470.ets new file mode 100644 index 000000000..8ed166d15 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0470 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItemGroup({ header: 'Group 小标题' }) { + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + } + + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0470') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0470_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480.ets new file mode 100644 index 000000000..ade597c73 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0480 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + MenuItem({ content: "菜单选项10", }).width(240).height(60) + MenuItem({ content: "菜单选项11", }).width(240).height(60) + MenuItem({ content: "菜单选项12", }).width(240).height(60) + MenuItem({ content: "菜单选项13", }).width(240).height(60) + MenuItem({ content: "菜单选项14", }).width(240).height(60) + MenuItem({ content: "菜单选项15", }).width(240).height(60) + MenuItem({ content: "菜单选项16", }).width(240).height(60) + MenuItem({ content: "菜单选项17", }).width(240).height(60) + MenuItem({ content: "菜单选项18", }).width(240).height(60) + MenuItem({ content: "菜单选项19", }).width(240).height(60) + MenuItem({ content: "菜单选项20", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0480') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0480_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0490.ets new file mode 100644 index 000000000..52739f70f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0490.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 window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0490 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement0490_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('ClickShowMenu-0490') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0490_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0500.ets new file mode 100644 index 000000000..b573f7a18 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0500.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. + */ + + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0500 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement0500_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('ClickShowMenu-0500') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0500_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510.ets new file mode 100644 index 000000000..5bbb74cef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0510 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: undefined, + strokeWidth: undefined, + startMargin: undefined, + endMargin: undefined + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0510') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0510_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520.ets new file mode 100644 index 000000000..ca2779146 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0520 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(2), + startMargin: LengthMetrics.vp(-10), + endMargin: LengthMetrics.vp(-10) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0520') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0520_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540.ets new file mode 100644 index 000000000..07afbd58a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540.ets @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0540 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(50), + endMargin: LengthMetrics.vp(50) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0540') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0540_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550.ets new file mode 100644 index 000000000..96d099bfc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0550 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(0), + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0550') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0550_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560.ets new file mode 100644 index 000000000..1198a7a62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0560 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(-1.5), + endMargin: LengthMetrics.vp(-1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0560') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0560_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570.ets new file mode 100644 index 000000000..2a9185ffc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0570 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(10), + startMargin: LengthMetrics.vp(0), + endMargin: LengthMetrics.vp(0) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0570') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0570_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580.ets new file mode 100644 index 000000000..53228ae93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0580 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1), + startMargin: LengthMetrics.vp(-10), + endMargin: LengthMetrics.vp(-10) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0580') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0580_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590.ets new file mode 100644 index 000000000..d27906162 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0590 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: $r('app.string.menu_divider_color'), + strokeWidth: LengthMetrics.percent(20), + startMargin: LengthMetrics.lpx(120), + endMargin: LengthMetrics.lpx(120) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0590') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0590_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600.ets new file mode 100644 index 000000000..1166f839a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0600 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0600') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0600_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610.ets new file mode 100644 index 000000000..503c1ec0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0610 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0610') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0610_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620.ets new file mode 100644 index 000000000..d63b640d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620.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 { ColorMetrics, LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0620 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: ColorMetrics.rgba(57,47,73,0.2).color, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.fp(1.5), + endMargin: LengthMetrics.fp(1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0620') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0620_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630.ets new file mode 100644 index 000000000..6eb70d123 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0630 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 0xFF3C4B34, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.px(10), + endMargin: LengthMetrics.px(10) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0630') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0630_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640.ets new file mode 100644 index 000000000..afaceb31f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0640 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: '#392F49', + strokeWidth: LengthMetrics.vp(60), + startMargin: LengthMetrics.vp(1), + endMargin: LengthMetrics.vp(1) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0640') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0640_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650.ets new file mode 100644 index 000000000..2c2b8f72d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0650 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(-10), + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0650') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0650_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660.ets new file mode 100644 index 000000000..ee5e81f23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0660 { + private iconStr: ResourceStr = $r("app.media.icon"); + private strokeWidth: LengthMetrics = { value: 20, unit: -8 }; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: this.strokeWidth, + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0660') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0660_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670.ets new file mode 100644 index 000000000..cb4a69a57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670.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 UIComponentPopupboxMenuStyleEnhancement0670 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(undefined) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0670') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0670_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680.ets new file mode 100644 index 000000000..b9be6f043 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680.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 UIComponentPopupboxMenuStyleEnhancement0680 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Color.Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0680') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0680_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690.ets new file mode 100644 index 000000000..ea3be2253 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0690 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0690') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0690_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700.ets new file mode 100644 index 000000000..6417b7e19 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0700 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItemGroup({ header: 'Group 小标题' }) { + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + } + + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0700') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0700_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710.ets new file mode 100644 index 000000000..486267556 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710.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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0710 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + MenuItem({ content: "菜单选项4", }).width(240).height(60) + MenuItem({ content: "菜单选项5", }).width(240).height(60) + MenuItem({ content: "菜单选项6", }).width(240).height(60) + MenuItem({ content: "菜单选项7", }).width(240).height(60) + MenuItem({ content: "菜单选项8", }).width(240).height(60) + MenuItem({ content: "菜单选项9", }).width(240).height(60) + MenuItem({ content: "菜单选项10", }).width(240).height(60) + MenuItem({ content: "菜单选项11", }).width(240).height(60) + MenuItem({ content: "菜单选项12", }).width(240).height(60) + MenuItem({ content: "菜单选项13", }).width(240).height(60) + MenuItem({ content: "菜单选项14", }).width(240).height(60) + MenuItem({ content: "菜单选项15", }).width(240).height(60) + MenuItem({ content: "菜单选项16", }).width(240).height(60) + MenuItem({ content: "菜单选项17", }).width(240).height(60) + MenuItem({ content: "菜单选项18", }).width(240).height(60) + MenuItem({ content: "菜单选项19", }).width(240).height(60) + MenuItem({ content: "菜单选项20", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0710') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0710_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0720.ets new file mode 100644 index 000000000..33a3b70af --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0720.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. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0720 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement0720_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('ClickShowMenu-0720') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0720_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0730.ets new file mode 100644 index 000000000..4ffbe95a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0730.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 window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0730 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement0730_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('ClickShowMenu-0730') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0730_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740.ets new file mode 100644 index 000000000..fd715c496 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740.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. + */ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0740 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: undefined, + strokeWidth: undefined, + startMargin: undefined, + endMargin: undefined + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0740') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0740_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0750.ets new file mode 100644 index 000000000..728cb1741 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0750.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0750 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State dividers: DividerStyleOptions[] = [{ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(2), + endMargin: LengthMetrics.vp(2) + }, {}]; + @State dividerIndex: number = 0; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(this.dividers[this.dividerIndex]) + } + + build() { + Column({ space: 30 }) { + Button('changeDividerStyle') + .id("UIComponentPopupboxMenuStyleEnhancement0750_02") + .onClick(() => { + this.dividerIndex++; + if (this.dividerIndex > this.dividers.length) { + this.dividerIndex = 0; + } + }) + Button('ClickShowMenu-0750') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0750_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770.ets new file mode 100644 index 000000000..267ec5272 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0770 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(50), + endMargin: LengthMetrics.vp(50) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0770') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0770_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780.ets new file mode 100644 index 000000000..3031f19f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0780 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(0), + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0780') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0780_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790.ets new file mode 100644 index 000000000..dbe15c23a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0790 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(1.5), + startMargin: LengthMetrics.vp(-1.5), + endMargin: LengthMetrics.vp(-1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0790') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0790_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800.ets new file mode 100644 index 000000000..68f8f5ddc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0800 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Orange, + strokeWidth: LengthMetrics.vp(10), + startMargin: LengthMetrics.vp(0), + endMargin: LengthMetrics.vp(0) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0800') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0800_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810.ets new file mode 100644 index 000000000..8eaa595a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0810 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Pink, + strokeWidth: LengthMetrics.vp(1), + startMargin: LengthMetrics.vp(-10), + endMargin: LengthMetrics.vp(-10) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0810') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0810_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820.ets new file mode 100644 index 000000000..132001eb6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0820 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: $r('app.string.menu_divider_color'), + strokeWidth: LengthMetrics.percent(20), + startMargin: LengthMetrics.lpx(120), + endMargin: LengthMetrics.lpx(120) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0820') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0820_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830.ets new file mode 100644 index 000000000..7ea813bc6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0830 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: LengthMetrics.fp(3), + startMargin: LengthMetrics.vp(60), + endMargin: LengthMetrics.vp(60) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0830') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0830_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840.ets new file mode 100644 index 000000000..9dc0ca89f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0840 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Green, + strokeWidth: LengthMetrics.lpx(3), + startMargin: LengthMetrics.percent(30), + endMargin: LengthMetrics.percent(30) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0840') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0840_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850.ets new file mode 100644 index 000000000..72ae48b57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850.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 { ColorMetrics, LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0850 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: ColorMetrics.rgba(57,47,73,0.2).color, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.fp(1.5), + endMargin: LengthMetrics.fp(1.5) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0850') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0850_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860.ets new file mode 100644 index 000000000..dede0e402 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0860 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 0XFF3C4B344, + strokeWidth: LengthMetrics.px(3), + startMargin: LengthMetrics.px(10), + endMargin: LengthMetrics.px(10) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0860') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0860_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870.ets new file mode 100644 index 000000000..db1ea0df2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0870 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: '#392F49', + strokeWidth: LengthMetrics.vp(60), + startMargin: LengthMetrics.vp(1), + endMargin: LengthMetrics.vp(1) + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0870') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0870_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880.ets new file mode 100644 index 000000000..a134ab1bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0880 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + strokeWidth: LengthMetrics.vp(-10), + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0880') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0880_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890.ets new file mode 100644 index 000000000..494b1d93b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0890 { + private iconStr: ResourceStr = $r("app.media.icon"); + private strokeWidth: LengthMetrics = { value: 20, unit: -8 }; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: Color.Red, + strokeWidth: this.strokeWidth, + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0890') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0890_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900.ets new file mode 100644 index 000000000..c12d00e87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0900 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider(undefined) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0900') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0900_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910.ets new file mode 100644 index 000000000..be835fe7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0910 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Color.Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0910') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0910_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920.ets new file mode 100644 index 000000000..f6708324c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920.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 { LengthMetrics } from '@ohos.arkui.node'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0920 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + .menuItemDivider({ + color: 'Pink', + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0920') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0920_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930.ets new file mode 100644 index 000000000..ab62cc9d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930.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 UIComponentPopupboxMenuStyleEnhancement0930 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0930_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + .enabled(false) + .id('UIComponentPopupboxMenuStyleEnhancement0930_03') + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0930') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0930_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940.ets new file mode 100644 index 000000000..5a54d2780 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940.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 UIComponentPopupboxMenuStyleEnhancement0940 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0940_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(SubMenuExpandingMode.EMBEDDED_EXPAND) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0940') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0940_01") + .bindMenu(this.MyMenu, + { + }) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950.ets new file mode 100644 index 000000000..aaf040ba1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0950 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0950_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(SubMenuExpandingMode.STACK_EXPAND) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }).id('UIComponentPopupboxMenuStyleEnhancement0950_03') + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }).id('UIComponentPopupboxMenuStyleEnhancement0950_04') + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0950') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0950_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960.ets new file mode 100644 index 000000000..b572b8a43 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0960 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0960_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(SubMenuExpandingMode.STACK_EXPAND) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0960') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0960_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970.ets new file mode 100644 index 000000000..20093946f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0970 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0970_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(undefined) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0970') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0970_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980.ets new file mode 100644 index 000000000..94db64740 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980.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. + */ + +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT 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 UIComponentPopupboxMenuStyleEnhancement0980 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0980_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(-1) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0980') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0980_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990.ets new file mode 100644 index 000000000..402fbd127 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement0990 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement0990_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(SubMenuExpandingMode.SIDE_EXPAND) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0990') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement0990_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000.ets new file mode 100644 index 000000000..6826e0bb9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000.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 UIComponentPopupboxMenuStyleEnhancement1000 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement1000_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + /* + SubMenuExpandingMode.EMBEDDED_EXPAND 无法正常弹出二级菜单 + */ + }.subMenuExpandingMode(SubMenuExpandingMode.SIDE_EXPAND /*SubMenuExpandingMode.EMBEDDED_EXPAND*/) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", builder: (): void => this.SubMenu3() }) + .id('UIComponentPopupboxMenuStyleEnhancement1000_03') + MenuItem({ content: "二级菜单选项3", }) + }.subMenuExpandingMode(SubMenuExpandingMode.STACK_EXPAND) + } + + @Builder + SubMenu3() { + Menu() { + MenuItem({ content: "三级菜单选项1", }) + MenuItem({ content: "三级菜单选项2", }).id('UIComponentPopupboxMenuStyleEnhancement1000_04') + MenuItem({ content: "三级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-1000') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement1000_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030.ets new file mode 100644 index 000000000..2f52170a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030.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 UIComponentPopupboxMenuStyleEnhancement1030 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", builder: (): void => this.SubMenu() }) + .id('UIComponentPopupboxMenuStyleEnhancement1030_02') + .width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + }.subMenuExpandingMode(SubMenuExpandingMode.EMBEDDED_EXPAND) + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项1", }) + MenuItem({ content: "二级菜单选项2", }) + MenuItem({ content: "二级菜单选项3", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-1030') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement1030_01") + .bindMenu(this.MyMenu, + { + }) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060.ets new file mode 100644 index 000000000..d3bd3f659 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060.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. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct UIComponentPopupboxMenuStyleEnhancement1060 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项1", }).width(240).height(60) + MenuItem({ content: "菜单选项2", }).width(240).height(60) + MenuItem({ content: "菜单选项3", }).width(240).height(60) + } + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 30 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuStyleEnhancement1060_02') + .onClick(() => { + this.horVerSwitch() + }) + Button('ClickShowMenu-1060') + .height(80) + .id("UIComponentPopupboxMenuStyleEnhancement1060_01") + .bindMenu(this.MyMenu, + { + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010.ets new file mode 100644 index 000000000..43a205e05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010.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 UIComponentPopupboxMenuTouch0010 { + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).enabled(false) + MenuItem({ content: "菜单选项", }).enabled(false) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0010') + .height(80) + .id("UIComponentPopupboxMenuTouch0010_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020.ets new file mode 100644 index 000000000..72d05af86 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020.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 UIComponentPopupboxMenuTouch0020 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State menuCloseMsg: string = ""; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0020_02") + } + .draggable(true) + .onDisAppear(() => { + this.menuCloseMsg = "Menu onDisAppear called !!!!!" + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0020') + .height(80) + .id("UIComponentPopupboxMenuTouch0020_01") + .bindMenu(this.MyMenu, + {}) + Text(this.menuCloseMsg).fontColor(Color.Red) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030.ets new file mode 100644 index 000000000..0dd368e4d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030.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 UIComponentPopupboxMenuTouch0030 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State menuCloseMsg: string = ""; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + .onDisAppear(() => { + this.menuCloseMsg = "Menu onDisAppear called !!!!!" + }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0030') + .height(80) + .id("UIComponentPopupboxMenuTouch0030_01") + .bindMenu(this.MyMenu, + {}) + Text(this.menuCloseMsg).fontColor(Color.Red) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040.ets new file mode 100644 index 000000000..0d2608b66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040.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 UIComponentPopupboxMenuTouch0040 { + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).selected(true) + MenuItem({ content: "菜单选项", }).selected(false) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('ClickShowMenu-0040') + .height(80) + .id("UIComponentPopupboxMenuTouch0040_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060.ets new file mode 100644 index 000000000..077e00dfd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060.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 UIComponentPopupboxMenuTouch0060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0060_02") + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0060_03") + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0060') + .height(80) + .id("UIComponentPopupboxMenuTouch0060_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070.ets new file mode 100644 index 000000000..1f428ee55 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070.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 UIComponentPopupboxMenuTouch0070 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu() }).id("UIComponentPopupboxMenuTouch0070_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项", }) + MenuItem({ content: "二级菜单选项", }).id("UIComponentPopupboxMenuTouch0070_03") + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0070') + .height(80) + .id("UIComponentPopupboxMenuTouch0070_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090.ets new file mode 100644 index 000000000..e57fd73e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090.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 UIComponentPopupboxMenuTouch0090 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State menuCloseMsg: string = ""; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu() }).id("UIComponentPopupboxMenuTouch0090_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项", }).id("UIComponentPopupboxMenuTouch0090_04") + MenuItem({ content: "二级菜单选项", }).id("UIComponentPopupboxMenuTouch0090_03") + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0090') + .height(80) + .id("UIComponentPopupboxMenuTouch0090_01") + .bindMenu(this.MyMenu, + {}) + Text(this.menuCloseMsg).fontColor(Color.Red) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100.ets new file mode 100644 index 000000000..7e860d943 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100.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. + */ + +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; + +@Entry +@Component +struct UIComponentPopupboxMenuTouch0100 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State isFullScreen: boolean = false + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id('UIComponentPopupboxMenuTouch0100_03') + } + } + + horVerSwitch() { + let context = getContext(this) as common.UIAbilityContext; + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(this.isFullScreen ? window.Orientation.PORTRAIT : window.Orientation.LANDSCAPE) + this.isFullScreen = !this.isFullScreen + }) + } + + build() { + Column({ space: 200 }) { + Button("横竖屏切换") + .id('UIComponentPopupboxMenuTouch0100_02') + .onClick(() => { + this.horVerSwitch() + }) + + Button('ClickShowMenu-0100') + .height(80) + .id("UIComponentPopupboxMenuTouch0100_01") + .bindMenu(this.MyMenu, + {}) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110.ets new file mode 100644 index 000000000..d9c170f8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110.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 UIComponentPopupboxMenuTouch0110 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0110_02") + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0110') + .height(80) + .id("UIComponentPopupboxMenuTouch0110_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120.ets new file mode 100644 index 000000000..dc5738a2e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120.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 UIComponentPopupboxMenuTouch0120 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0120_02") + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0120') + .height(80) + .id("UIComponentPopupboxMenuTouch0120_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130.ets new file mode 100644 index 000000000..f022a1611 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130.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 UIComponentPopupboxMenuTouch0130 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State testButtonBg:ResourceColor = Color.Gray; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0130_02") + } + } + + build() { + Column({ space: 30 }) { + Button('test-0130') + .id("UIComponentPopupboxMenuTouch0130_03") + .backgroundColor(this.testButtonBg) + .onTouch((event:TouchEvent)=>{ + this.testButtonBg = Color.Pink; + }) + + Button('ClickShowMenu-0130') + .height(80) + .id("UIComponentPopupboxMenuTouch0130_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140.ets new file mode 100644 index 000000000..b647d1788 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140.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 UIComponentPopupboxMenuTouch0140 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", builder: (): void => this.SubMenu() }).id("UIComponentPopupboxMenuTouch0140_02") + MenuItem({ content: "菜单选项", }) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项", }) + MenuItem({ content: "二级菜单选项", }).id("UIComponentPopupboxMenuTouch0140_03") + MenuItem({ content: "二级菜单选项", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0140') + .height(80) + .id("UIComponentPopupboxMenuTouch0140_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150.ets new file mode 100644 index 000000000..fc404cd72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150.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 UIComponentPopupboxMenuTouch0150 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0150_02") + }.padding(80) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0150') + .height(80) + .id("UIComponentPopupboxMenuTouch0150_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160.ets new file mode 100644 index 000000000..7664036b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160.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 UIComponentPopupboxMenuTouch0160 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0160_02") + }.margin({ left: 80, right: 80 }) + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0160') + .height(80) + .id("UIComponentPopupboxMenuTouch0160_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170.ets new file mode 100644 index 000000000..f9d4d6cc1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170.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 UIComponentPopupboxMenuTouch0170 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }).id("UIComponentPopupboxMenuTouch0170_02") + }.width('70%') + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0170') + .height(80) + .id("UIComponentPopupboxMenuTouch0170_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180.ets new file mode 100644 index 000000000..5baea0e53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180.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 UIComponentPopupboxMenuTouch0180 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项33333333333", builder: (): void => this.SubMenu() }).id("UIComponentPopupboxMenuTouch0180_02") + MenuItem({ content: "菜单选项222", }) + } + } + + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "二级菜单选项2333333333", }) + MenuItem({ content: "二级菜单选项3333333", }).id("UIComponentPopupboxMenuTouch0180_03") + MenuItem({ content: "二级菜单选项444", }) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0180') + .height(80) + .id("UIComponentPopupboxMenuTouch0180_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190.ets new file mode 100644 index 000000000..92135cd5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190.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 UIComponentPopupboxMenuTouch0190 { + private iconStr: ResourceStr = $r("app.media.icon") + @State menuItemHeight: number = -1; + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }).height(this.menuItemHeight) + MenuItem({ content: "菜单选项", }).height(this.menuItemHeight) + .id("UIComponentPopupboxMenuTouch0190_03") + } + } + + build() { + Column({ space: 30 }) { + Button("设置Item高度 90") + .id("UIComponentPopupboxMenuTouch0190_02") + .onClick(() => { + this.menuItemHeight = 90; + }) + Button('ClickShowMenu-0190') + .height(80) + .id("UIComponentPopupboxMenuTouch0190_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010.ets new file mode 100644 index 000000000..280cd667f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010.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 UIComponentPopupboxMenuUxconsistency0010 { + build() { + Column() { + Button('clickMenu-0010') + .id("UIComponentPopupboxMenuUxconsistency0010_01") + .bindMenu([ + { + value: 'Menu1', + enabled:true, + action: () => { + } + }, + { + value: 'Menu2', + enabled:true, + action: () => { + } + }, + ]) + } + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030.ets new file mode 100644 index 000000000..b24d5cb34 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030.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 UIComponentPopupboxMenuUxconsistency0030 { + build() { + Column() { + Button('clickMenu-0030') + .id("UIComponentPopupboxMenuUxconsistency0030_01") + .bindMenu([ + { + value: '百度', + action: () => { + } + }, + { + value: 'Menu2', + action: () => { + } + }, + ]) + } + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040.ets new file mode 100644 index 000000000..b9f01d8e2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuUxconsistency0040 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-0040') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuUxconsistency0040_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050.ets new file mode 100644 index 000000000..1504a6f78 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050.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 UIComponentPopupboxMenuUxconsistency0050 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0050') + .height(80) + .backgroundColor(Color.Gray) + .id("UIComponentPopupboxMenuUxconsistency0050_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070.ets new file mode 100644 index 000000000..4da96415e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuUxconsistency0070 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Text('longPressShowMenu-0070') + .height(80) + .backgroundColor(Color.Gray) + .textAlign(TextAlign.Center) + .id("UIComponentPopupboxMenuUxconsistency0070_01") + .bindContextMenu(this.MyMenu, ResponseType.RightClick, + { + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080.ets new file mode 100644 index 000000000..0705dfb6d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080.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 UIComponentPopupboxMenuUxconsistency0080 { + private iconStr: ResourceStr = $r("app.media.icon") + + @Builder + MyMenu() { + Menu() { + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + MenuItem({ startIcon: this.iconStr, content: "菜单选项" }) + } + } + + build() { + Column() { + Button('preview-builder-0080') + .width(200) + .id("UIComponentPopupboxMenuUxconsistency0080_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + preview: MenuPreviewMode.NONE + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900.ets new file mode 100644 index 000000000..49c957b76 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0900 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0900') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0900_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910.ets new file mode 100644 index 000000000..cddd9335d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0910 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0910') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0910_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920.ets new file mode 100644 index 000000000..ae0d92671 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0920 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0920') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0920_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930.ets new file mode 100644 index 000000000..c5b6d8366 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0930 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0930') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0930_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940.ets new file mode 100644 index 000000000..f38c553ae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0940 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0940') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0940_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950.ets new file mode 100644 index 000000000..1d3611e5d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0950 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-0950') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0950_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960.ets new file mode 100644 index 000000000..952e6f471 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0960 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0960') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0960_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970.ets new file mode 100644 index 000000000..b36dba455 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0970 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0970') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0970_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980.ets new file mode 100644 index 000000000..bbbdef555 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0980 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0980') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0980_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990.ets new file mode 100644 index 000000000..a2e9d94ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux0990 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-0990') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux0990_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000.ets new file mode 100644 index 000000000..df009b5d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1000 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1000') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1000_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010.ets new file mode 100644 index 000000000..136c7c9e9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1010 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1010') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1010_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Top + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020.ets new file mode 100644 index 000000000..e004469f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1020 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1020') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1020_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030.ets new file mode 100644 index 000000000..29fa4daae --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1030 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1030') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1030_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040.ets new file mode 100644 index 000000000..598a8f0e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1040 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1040') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1040_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050.ets new file mode 100644 index 000000000..6fff95229 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1050 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1050') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1050_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060.ets new file mode 100644 index 000000000..6a8b9218c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1060 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1060') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1060_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070.ets new file mode 100644 index 000000000..00626b912 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1070 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1070') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1070_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080.ets new file mode 100644 index 000000000..91eb00fa3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1080 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1080') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1080_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090.ets new file mode 100644 index 000000000..f629ded3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1090 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1090') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1090_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.TopRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100.ets new file mode 100644 index 000000000..87691900a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1100 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1100') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1100_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110.ets new file mode 100644 index 000000000..9d700717b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1110 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1110') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1110_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120.ets new file mode 100644 index 000000000..2c45456aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1120 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1120') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1120_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130.ets new file mode 100644 index 000000000..02afa3168 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1130 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1130') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1130_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140.ets new file mode 100644 index 000000000..ae9839145 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1140 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1140') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1140_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150.ets new file mode 100644 index 000000000..7413b7552 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1150 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1150') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1150_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160.ets new file mode 100644 index 000000000..29c2835e7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1160 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1160') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1160_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170.ets new file mode 100644 index 000000000..b1a2435bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1170 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1170') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1170_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180.ets new file mode 100644 index 000000000..4f7c2928a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1180 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1180') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1180_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190.ets new file mode 100644 index 000000000..fa59a3d38 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1190 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1190') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1190_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200.ets new file mode 100644 index 000000000..4857ec4eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1200 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1200') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1200_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210.ets new file mode 100644 index 000000000..e6cb1d032 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1210 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1210') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1210_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220.ets new file mode 100644 index 000000000..aac17012e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1220 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1220') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1220_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230.ets new file mode 100644 index 000000000..5e9cf90d5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1230 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1230') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1230_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240.ets new file mode 100644 index 000000000..dcd23ab4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1240 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1240') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1240_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250.ets new file mode 100644 index 000000000..848986f92 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1250 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1250') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1250_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260.ets new file mode 100644 index 000000000..37a2e5ed9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260.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 UIComponentPopupboxMenuWidthAndPlacementConformux1260 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1260') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1260_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270.ets new file mode 100644 index 000000000..7b6f60e04 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1270 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1270') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1270_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280.ets new file mode 100644 index 000000000..0fe5c267b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280.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 UIComponentPopupboxMenuWidthAndPlacementConformux1280 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1280') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1280_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290.ets new file mode 100644 index 000000000..a9cb01d65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290.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 UIComponentPopupboxMenuWidthAndPlacementConformux1290 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1290') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1290_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300.ets new file mode 100644 index 000000000..93834a738 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1300 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1300') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1300_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310.ets new file mode 100644 index 000000000..437012ed4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1310 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1310') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1310_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320.ets new file mode 100644 index 000000000..376620e98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1320 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1320') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1320_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330.ets new file mode 100644 index 000000000..8a4930cc7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1330 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1330') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1330_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Left + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340.ets new file mode 100644 index 000000000..870f49904 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1340 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1340') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1340_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350.ets new file mode 100644 index 000000000..f6d20c5d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1350 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1350') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1350_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360.ets new file mode 100644 index 000000000..dfdaf864b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1360 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1360') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1360_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370.ets new file mode 100644 index 000000000..e6f01cbc9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1370 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1370') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1370_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Right + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380.ets new file mode 100644 index 000000000..61f497e79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1380 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1380') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1380_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390.ets new file mode 100644 index 000000000..cba261b82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1390 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1390') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1390_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400.ets new file mode 100644 index 000000000..3861f8b65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1400 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1400') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1400_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410.ets new file mode 100644 index 000000000..e45260948 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1410 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1410') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1410_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.Bottom + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420.ets new file mode 100644 index 000000000..1254b945d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1420 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1420') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1420_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430.ets new file mode 100644 index 000000000..1886dd3ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1430 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1430') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1430_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440.ets new file mode 100644 index 000000000..2ae5236bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1440 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1440') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1440_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450.ets new file mode 100644 index 000000000..df9239ee2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1450 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1450') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1450_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomLeft + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460.ets new file mode 100644 index 000000000..a35a73ce8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1460 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1460') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1460_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470.ets new file mode 100644 index 000000000..a04ba53f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1470 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1470') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1470_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480.ets new file mode 100644 index 000000000..aad4859eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1480 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1480') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1480_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490.ets new file mode 100644 index 000000000..14f6d619e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1490 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1490') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1490_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.BottomRight + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500.ets new file mode 100644 index 000000000..f306e035c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1500 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1500') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1500_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510.ets new file mode 100644 index 000000000..c11714c18 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1510 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1510') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1510_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520.ets new file mode 100644 index 000000000..20cb62b00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1520 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1520') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1520_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530.ets new file mode 100644 index 000000000..5eaafdcdb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1530 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1530') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1530_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540.ets new file mode 100644 index 000000000..0ca942024 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1540 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1540') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1540_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550.ets new file mode 100644 index 000000000..0733e1376 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1550 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1550') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1550_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560.ets new file mode 100644 index 000000000..7688b8050 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1560 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1560') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1560_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570.ets new file mode 100644 index 000000000..6f406ddab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1570 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1570') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1570_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.LeftBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580.ets new file mode 100644 index 000000000..a73134bfe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1580 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1580') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1580_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590.ets new file mode 100644 index 000000000..a56403680 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1590 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1590') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1590_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600.ets new file mode 100644 index 000000000..bb9efc4cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1600 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1600') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1600_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610.ets new file mode 100644 index 000000000..7f58e8794 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1610 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1610') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1610_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620.ets new file mode 100644 index 000000000..fbd9dd0fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1620 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1620') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1620_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630.ets new file mode 100644 index 000000000..1fccdf61f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1630 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1630') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1630_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640.ets new file mode 100644 index 000000000..cc16474e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1640 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1640') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1640_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650.ets new file mode 100644 index 000000000..073a56a83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650.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 UIComponentPopupboxMenuWidthAndPlacementConformux1650 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1650') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1650_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightBottom + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660.ets new file mode 100644 index 000000000..3cfeed6ab --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660.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 UIComponentPopupboxMenuWidthAndPlacementConformux1660 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(100) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1660') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1660_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670.ets new file mode 100644 index 000000000..9baabc68b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670.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 UIComponentPopupboxMenuWidthAndPlacementConformux1670 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(48) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1670') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1670_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680.ets new file mode 100644 index 000000000..986b0673b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680.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 UIComponentPopupboxMenuWidthAndPlacementConformux1680 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width(64) + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Start }) { + Button('longPressShowMenu-1680') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1680_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690.ets new file mode 100644 index 000000000..27a28a53c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690.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 UIComponentPopupboxMenuWidthAndPlacementConformux1690 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + } + } + + build() { + Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.End }) { + Button('longPressShowMenu-1690') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1690_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700.ets new file mode 100644 index 000000000..9ea8f5366 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700.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 UIComponentPopupboxMenuWidthAndPlacementConformux1700 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('20%').height('50%') + } + + build() { + Column() { + Row().width('100%').height('66%') + Button('longPressShowMenu-1700') + .height(80) + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1700_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710.ets new file mode 100644 index 000000000..9410a5cc9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentPopupboxMenuWidthAndPlacementConformux1710 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + Menu() { + MenuItem({ content: "菜单选项", }) + MenuItem({ content: "菜单选项", }) + }.width('20%').height('70%') + } + + build() { + Column() { + Row().width('100%').height('80%') + Button('longPressShowMenu-1710') + .width(64) + .id("UIComponentPopupboxMenuWidthAndPlacementConformux1710_01") + .bindContextMenu(this.MyMenu, ResponseType.LongPress, + { + enableArrow: true, + placement: Placement.RightTop + }) + } + .height('100%') + .width('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002.ets new file mode 100644 index 000000000..5050accff --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002.ets @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import common from '@ohos.app.ability.common'; +import window from '@ohos.window'; + +@Entry +@Component +struct UIComponentSliderSliderInterface002 { + @State sliderValue: number = 0; + @State sliderChangeMode: SliderChangeMode = SliderChangeMode.Begin; + + build() { + Column({ space: 8 }) { + Slider({ + value: this.sliderValue, + min: 0, + max: 100 + }) + .onChange((value, mode) => { + this.sliderValue = value; + }) + .width('80%') + Text('sliderValue:'+this.sliderValue) + Text('sliderChangeMode:'+this.sliderChangeMode) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570.ets new file mode 100644 index 000000000..3c97bad4c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentUISupportColor0570 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State colorMode: ThemeColorMode[] = [ThemeColorMode.LIGHT, ThemeColorMode.LIGHT]; + @State colorModeIndex: number = 0; + + @Builder + MyMenu() { + WithTheme({ colorMode: this.colorMode[this.colorModeIndex] }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button("SwitchColorMode") + .onClick(() => { + this.colorModeIndex++; + if (this.colorModeIndex > this.colorMode.length) { + this.colorModeIndex = 0; + } + }).id("UIComponentUISupportColor0570_02") + Button('ClickShowMenu-0570') + .height(80) + .id("UIComponentUISupportColor0570_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580.ets new file mode 100644 index 000000000..b12c3b74f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentUISupportColor0580 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State colorMode: ThemeColorMode[] = [ThemeColorMode.LIGHT, ThemeColorMode.DARK]; + @State colorModeIndex: number = 0; + + @Builder + MyMenu() { + WithTheme({ colorMode: this.colorMode[this.colorModeIndex] }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button("SwitchColorMode") + .onClick(() => { + this.colorModeIndex++; + if (this.colorModeIndex > this.colorMode.length) { + this.colorModeIndex = 0; + } + }).id("UIComponentUISupportColor0580_02") + Button('ClickShowMenu-0580') + .height(80) + .id("UIComponentUISupportColor0580_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590.ets new file mode 100644 index 000000000..86ca38d2e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentUISupportColor0590 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State colorMode: ThemeColorMode[] = [ThemeColorMode.DARK, ThemeColorMode.LIGHT]; + @State colorModeIndex: number = 0; + + @Builder + MyMenu() { + WithTheme({ colorMode: this.colorMode[this.colorModeIndex] }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button("SwitchColorMode") + .onClick(() => { + this.colorModeIndex++; + if (this.colorModeIndex > this.colorMode.length) { + this.colorModeIndex = 0; + } + }).id("UIComponentUISupportColor0590_02") + Button('ClickShowMenu-0590') + .height(80) + .id("UIComponentUISupportColor0590_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600.ets new file mode 100644 index 000000000..c190c33f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentUISupportColor0600 { + private iconStr: ResourceStr = $r("app.media.icon"); + @State colorMode: ThemeColorMode[] = [ThemeColorMode.DARK, ThemeColorMode.DARK]; + @State colorModeIndex: number = 0; + + @Builder + MyMenu() { + WithTheme({ colorMode: this.colorMode[this.colorModeIndex] }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button("SwitchColorMode") + .onClick(() => { + this.colorModeIndex++; + if (this.colorModeIndex > this.colorMode.length) { + this.colorModeIndex = 0; + } + }).id("UIComponentUISupportColor0600_02") + Button('ClickShowMenu-0600') + .height(80) + .id("UIComponentUISupportColor0600_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610.ets new file mode 100644 index 000000000..91f141342 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610.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 UIComponentUISupportColor0610 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0610') + .height(80) + .id("UIComponentUISupportColor0610_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620.ets new file mode 100644 index 000000000..5fee12cb8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620.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 UIComponentUISupportColor0620 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0620') + .height(80) + .id("UIComponentUISupportColor0620_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630.ets new file mode 100644 index 000000000..416e04ac6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630.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 UIComponentUISupportColor0630 { + private iconStr: ResourceStr = $r("app.media.icon"); + + @Builder + MyMenu() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Menu() { + MenuItem({ content: "菜单选项1", }) + MenuItem({ content: "菜单选项2", }) + MenuItem({ content: "菜单选项3", }) + }.backgroundColor($r('sys.color.background_primary')) + } + } + + build() { + Column({ space: 30 }) { + Button('ClickShowMenu-0630') + .height(80) + .id("UIComponentUISupportColor0630_01") + .bindMenu(this.MyMenu, + {}) + }.justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780.ets new file mode 100644 index 000000000..814b60d17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780.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 UIComponentUISupportColor0780 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0780_001') + .onClick(() => { + this.show = !this.show; + }) + Button('changeMode') + .id('UIComponentUISupportColor0780_002') + .onClick(() => { + this.colorMode = ThemeColorMode.LIGHT; + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790.ets new file mode 100644 index 000000000..8863ef2e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790.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 UIComponentUISupportColor0790 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0790_001') + .onClick(() => { + this.show = !this.show; + }) + Button('changeMode') + .id('UIComponentUISupportColor0790_002') + .onClick(() => { + this.colorMode = ThemeColorMode.DARK; + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800.ets new file mode 100644 index 000000000..ccfaf1459 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800.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 UIComponentUISupportColor0800 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0800_001') + .onClick(() => { + this.show = !this.show; + }) + Button('changeMode') + .id('UIComponentUISupportColor0800_002') + .onClick(() => { + this.colorMode = ThemeColorMode.LIGHT; + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810.ets new file mode 100644 index 000000000..50ac23fcf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810.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 UIComponentUISupportColor0810 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0810_001') + .onClick(() => { + this.show = !this.show; + }) + Button('changeMode') + .id('UIComponentUISupportColor0810_002') + .onClick(() => { + this.colorMode = ThemeColorMode.DARK; + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820.ets new file mode 100644 index 000000000..2d5e63b55 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820.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 UIComponentUISupportColor0820 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0820_001') + .onClick(() => { + this.show = !this.show + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830.ets new file mode 100644 index 000000000..3027e7494 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830.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 UIComponentUISupportColor0830 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0830_001') + .onClick(() => { + this.show = !this.show + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840.ets new file mode 100644 index 000000000..91f5c4e7c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840.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 UIComponentUISupportColor0840 { + @State colorMode: ThemeColorMode = ThemeColorMode.SYSTEM; + @State show: boolean = false; + + build() { + Column() { + Button('Panel') + .id('UIComponentUISupportColor0840_001') + .onClick(() => { + this.show = !this.show + }) + WithTheme({ colorMode: this.colorMode }){ + Panel(this.show){ + Column() { + Text('Today Calendar') + Divider() + Text('1. afternoon 4:00 The project meeting') + } + } + .backgroundColor($r('sys.color.background_primary')) + } + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480.ets new file mode 100644 index 000000000..bea6f70c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480.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 UIComponentUISupportColor1480 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + + build() { + Column({ space: 8 }) { + Button('ThemeColorMode') + .id("UIComponentUISupportColor1480_001") + .onClick(()=>{ + this.colorMode = ThemeColorMode.LIGHT; + }) + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490.ets new file mode 100644 index 000000000..908939bba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490.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 UIComponentUISupportColor1490 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + + build() { + Column({ space: 8 }) { + Button('ThemeColorMode') + .id("UIComponentUISupportColor1490_001") + .onClick(()=>{ + this.colorMode = ThemeColorMode.DARK; + }) + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500.ets new file mode 100644 index 000000000..b6a2e9dbb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500.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 UIComponentUISupportColor1500 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + + build() { + Column({ space: 8 }) { + Button('ThemeColorMode') + .id("UIComponentUISupportColor1500_001") + .onClick(()=>{ + this.colorMode = ThemeColorMode.LIGHT; + }) + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510.ets new file mode 100644 index 000000000..cddbf1e3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510.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 UIComponentUISupportColor1510 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + + build() { + Column({ space: 8 }) { + Button('ThemeColorMode') + .id("UIComponentUISupportColor1510_001") + .onClick(()=>{ + this.colorMode = ThemeColorMode.DARK; + }) + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520.ets new file mode 100644 index 000000000..9d0648ccc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520.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 UIComponentUISupportColor1520 { + @State colorMode: ThemeColorMode = ThemeColorMode.LIGHT; + + build() { + Column({ space: 8 }) { + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530.ets new file mode 100644 index 000000000..ad2ecdc30 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530.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 UIComponentUISupportColor1530 { + @State colorMode: ThemeColorMode = ThemeColorMode.DARK; + + build() { + Column({ space: 8 }) { + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540.ets new file mode 100644 index 000000000..85a6cbc3d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540.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 UIComponentUISupportColor1540 { + @State colorMode: ThemeColorMode = ThemeColorMode.SYSTEM; + + build() { + Column({ space: 8 }) { + Row() { + WithTheme({ colorMode: this.colorMode }){ + Slider({ + value: 20, + min: 0, + max: 100, + style: SliderStyle.OutSet + }).backgroundColor($r('sys.color.background_primary')) + } + } + .width('80%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json index 4038f619b..e07e11d0b 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json @@ -11,6 +11,14 @@ { "name": "bbb", "value": "5" + }, + { + "name": "arrowOffset_50vp", + "value": "50.0vp" + }, + { + "name": "arrowOffset_1000", + "value": "1000" } ] } \ 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 ce65c09bf..001c80b77 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,22 @@ { "name": "20string", "value": "20" + }, + { + "name": "size_30_px", + "value": "30px" + }, + { + "name": "menu_radius_40px", + "value": "40px" + }, + { + "name": "menu_divider_color", + "value": "#66ff0000" + }, + { + "name": "loadingDialogRadius", + "value": "30vp" } ] } \ 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 5cc05ce92..59408f544 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 @@ -1788,6 +1788,687 @@ "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010", "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011", "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0020", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0040", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0110", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0140", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0170", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0190", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0220", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0230", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0250", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0260", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0270", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0280", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0240", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0210", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0290", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0080", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0120", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0060", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0100", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0010", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0070", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0030", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0180", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0200", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0150", + "testability/pages/UIComponentPopupboxMenuInterface/UIComponentPopupboxMenuInterface0130", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0050", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0080", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0090", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0170", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0030", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0130", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0110", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0100", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0120", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0150", + "testability/pages/UIComponentPopupboxMenuBindContextMenuIsShown/UIComponentPopupboxMenuBindContextMenuIsShown0140", + "testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0080", + "testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0070", + "testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0020", + "testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0220", + "testability/pages/UIComponentPopupboxMenuPcheight/UIComponentPopupboxMenuPcheight0010", + + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1400", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1660", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0750", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1180", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1900", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0670", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1470", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0710", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0420", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1570", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1210", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1480", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1500", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1250", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1850", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0500", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1550", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0730", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1670", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0920", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1820", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1540", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0400", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0820", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1040", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1790", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1030", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1760", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1310", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0790", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1190", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1610", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1380", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1910", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1650", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0910", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1390", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1800", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1090", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1720", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0390", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1100", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0410", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0510", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0630", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1450", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1890", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1320", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1150", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0860", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1920", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1590", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0930", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0810", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0450", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0720", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1050", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0530", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0970", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0850", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1700", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1020", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0840", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1360", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1280", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0780", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0570", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1270", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0610", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0640", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1330", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1420", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1460", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0700", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1000", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0960", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0460", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1110", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1830", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0950", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1870", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1230", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1490", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1240", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0680", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0830", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1810", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1600", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0440", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1200", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0520", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0990", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1220", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0870", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1680", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1160", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0580", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1370", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1730", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1750", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1410", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1130", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0480", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1580", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1170", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0600", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0380", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1350", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0620", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0430", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1080", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1140", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0770", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0550", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0980", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0760", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1120", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0470", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0650", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1640", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0800", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1070", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1300", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0940", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0740", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1010", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1740", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1860", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0900", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1880", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0690", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1690", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1840", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0490", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0560", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1630", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1430", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0540", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0370", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1780", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0880", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0890", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1620", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1260", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1340", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1290", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0590", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1770", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1710", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios0660", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1440", + "testability/pages/UIComponentPopupboxMenuScenarios/UIComponentPopupboxMenuScenarios1060", + "testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement001", + "testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement008", + "testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement009", + "testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement010", + "testability/pages/UIComponentPopupboxMenuEnhancement/UIComponentPopupboxMenuEnhancement017", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0040", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0070", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0010", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0050", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0080", + "testability/pages/UIComponentPopupboxMenuUxconsistency/UIComponentPopupboxMenuUxconsistency0030", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0570", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0610", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0600", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0630", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0590", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0580", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0620", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1510", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1500", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1480", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1520", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1530", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1540", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor1490", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0830", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0820", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0780", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0790", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0840", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0800", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor0810", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0200", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0020", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0210", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0010", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0170", + "testability/pages/UIComponentButtonSliderSelectedborderradius/UIComponentButtonSliderSelectedborderradius0030", + "testability/pages/UIComponentButtonSliderLayout/UIComponentButtonSliderLayout0020", + "testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0120", + "testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0130", + "testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0190", + "testability/pages/UIComponentButtonSliderShun/UIComponentButtonSliderShun0200", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0200", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0230", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0170", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0220", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0030", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0090", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0180", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0190", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0010", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0110", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0040", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0080", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0070", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0050", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0060", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0140", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0120", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0130", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0100", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0160", + "testability/pages/UIComponentButtonSliderTrackcolor/UIComponentButtonSliderTrackcolor0150", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0030", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0070", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0040", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0130", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0050", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0020", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0140", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0010", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0150", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0160", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0060", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0090", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0100", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0110", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0080", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0120", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0190", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0200", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0210", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0240", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0250", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0220", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0260", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0520", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0270", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0310", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0280", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0340", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0330", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0350", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0360", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0320", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0390", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0400", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0420", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0410", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0430", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0440", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0450", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0460", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0470", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0490", + "testability/pages/UIComponentPopupboxMenuHmsymbol/UIComponentPopupboxMenuHmsymbol0500", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0020", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0030", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0040", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0140", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0070", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0080", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0120", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0160", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0170", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0060", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0190", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0050", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0100", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0130", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0010", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0150", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0180", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0200", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0110", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0210", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0220", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0230", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0340", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0330", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0320", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0270", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0360", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0310", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0260", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0240", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0280", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0290", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0400", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0390", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0300", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0380", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0410", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0350", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0420", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0430", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0370", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0440", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0460", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0450", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0250", + "testability/pages/UIComponentPopupboxMenuCorner/UIComponentPopupboxMenuCorner0090", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0090", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0020", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0030", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0050", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0060", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0070", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0080", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0100", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0110", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0120", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0130", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0140", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0150", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0160", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0170", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0180", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0190", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0210", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0240", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0230", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0260", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0220", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0250", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0280", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0200", + "testability/pages/UIComponentButtonSliderRange/UIComponentButtonSliderRange0290", + "testability/pages/UIComponentSliderSliderInterface/UIComponentSliderSliderInterface002", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0020", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0040", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0120", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0050", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0010", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0080", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0100", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0090", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0170", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0060", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0110", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0130", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0030", + "testability/pages/UIComponentButtonSliderSliderInteractionMode/UIComponentButtonSliderSliderInteractionMode0150", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0240", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0330", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0260", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0230", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0270", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0300", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0340", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0350", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0310", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0250", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0360", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0320", + "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle0290", + "testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0030", + "testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0020", + "testability/pages/UIComponentOtherPanelInteraction/UIComponentOtherPanelInteraction0010", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0300", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0160", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0360", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0190", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0070", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0250", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0110", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0130", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0320", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0100", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0140", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0340", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0290", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0380", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0330", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0280", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0370", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0080", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0120", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0400", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0270", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0350", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0040", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0240", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0220", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0390", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0180", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0230", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0170", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0090", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0150", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0060", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0020", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0030", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0260", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0050", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0210", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0310", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0010", + "testability/pages/UIComponentOtherPanelInterface/UIComponentOtherPanelInterface0200", + "testability/pages/UIComponentOtherPanelAnalysis/UIComponentOtherPanelAnalysis0010", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0060", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0050", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0070", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0080", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0110", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0040", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0090", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0030", + "testability/pages/UIComponentPopupboxSpecificationsShadow/UIComponentPopupboxSpecificationsShadow0820", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1490", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1250", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1510", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0970", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1100", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1000", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1570", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1200", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1190", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1480", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1400", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1660", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1390", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1690", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1130", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1110", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1430", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1080", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0980", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1420", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1590", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1410", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1710", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0920", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1440", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1230", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1670", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0910", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1260", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1700", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1460", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1140", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1290", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0960", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0900", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1170", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1280", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1330", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1470", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1540", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1310", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0950", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1550", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1020", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1450", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1350", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1370", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1050", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1070", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1560", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0940", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1630", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0930", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1500", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1580", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1160", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1610", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1520", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1240", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1090", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1300", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1120", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1360", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1600", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1150", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1320", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1620", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1340", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1270", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1060", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1030", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1680", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1380", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1210", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux0990", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1650", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1010", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1220", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1530", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1640", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1040", + "testability/pages/UIComponentPopupboxMenuWidthAndPlacementConformux/UIComponentPopupboxMenuWidthAndPlacementConformux1180", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0010", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0070", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0060", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0100", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0050", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0080", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0090", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0110", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0200", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0040", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0030", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0150", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0140", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0190", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0180", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0160", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0170", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0210", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0120", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0220", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0240", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0230", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0260", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0250", + "testability/pages/UIComponentPopupboxMenuDirect/UIComponentPopupboxMenuDirect0270", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0130", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0010", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0020", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0030", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0040", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0060", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0080", + "testability/pages/ArkUIComponentFunctionSpecialComponentsMenuInterface/ArkUIComponentFunctionSpecialComponentsMenuInterface0120", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0010", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0020", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0040", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0030", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0070", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0110", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0090", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0160", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0120", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0130", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0060", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0150", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0100", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0140", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0170", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0180", + "testability/pages/UIComponentPopupboxMenuTouch/UIComponentPopupboxMenuTouch0190", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0060", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0100", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0110", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0140", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0090", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0080", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0120", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0130", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0150", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0160", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0600", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0550", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0560", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0510", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0580", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0520", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0570", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0540", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0640", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0610", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0620", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0650", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0630", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0590", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0660", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1060", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1030", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0170", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0180", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0190", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0200", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0210", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0220", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0250", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0240", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0230", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0260", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0270", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0280", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0290", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0680", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0670", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0310", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0710", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0700", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0320", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0740", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0750", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0690", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0730", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0720", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0770", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0780", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0790", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0800", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0340", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0810", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0330", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0820", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0370", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0380", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0360", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0350", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0400", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0410", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0390", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0420", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0440", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0430", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0840", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0450", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0460", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0470", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0480", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0870", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0880", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0900", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0910", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0860", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0830", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0850", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0890", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0920", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0940", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0930", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0490", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0970", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0950", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0960", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0980", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0500", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement0990", + "testability/pages/UIComponentPopupboxMenuStyleEnhancement/UIComponentPopupboxMenuStyleEnhancement1000", + "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001", "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002", "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003", -- Gitee