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 0000000000000000000000000000000000000000..c79d953eb73e905581fd98c234672aadcd79a6cb --- /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 0860e1238b7d5125d3247205585c174e61e3e827..f860e2a5dd3056a99105c1778d69a2a7780cecf8 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 0000000000000000000000000000000000000000..123a1cf4d229354e2491eac74e57bc3846008ccf --- /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 0000000000000000000000000000000000000000..f05fe7b505da49f7f663d26825967856362c3486 --- /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 0000000000000000000000000000000000000000..1505865bf032145d0c490a656626688fd60ebb14 --- /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 0000000000000000000000000000000000000000..485a89dd9067addff9388ac0008ce5650541cde1 --- /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 0000000000000000000000000000000000000000..80d2d21e3206561b106a9eddc0c0900052119c87 --- /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 0000000000000000000000000000000000000000..449502cc2f6701fae5ce9d96eb5020310d645ecf --- /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 2a1735642225454f0b6c2f4d37c91715d145b1e2..86b4f98b0ba7584e84933f6290c3565c4859e6ce 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 0000000000000000000000000000000000000000..c38691a1f85c722d7f4d6a4d0234f3f978c83c58 --- /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 0000000000000000000000000000000000000000..5ebeacae1d4a7a16550ae342b9bd0c20fb9c7765 --- /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 0000000000000000000000000000000000000000..166e210f6a815c2f60e388cbb3ac13222dd52230 --- /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 d1ef9fb3eb5b5fd0fd601ff3a9108f0bbdf14aec..7007482597456d295a078934e5d6349ac1f7b741 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 0000000000000000000000000000000000000000..e67e88497e62c4abb67f173efb2667a952da71f4 --- /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 0000000000000000000000000000000000000000..e9e39866673b3bdeeb9400bbcbb2b93f0966ccb8 --- /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 0000000000000000000000000000000000000000..ad3d20952dd01f2b237c7377f7b48776ca2ea561 --- /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 0000000000000000000000000000000000000000..538e59fc9c338173dd929c30f5cafaa4f53dc88b --- /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 0000000000000000000000000000000000000000..1ba787f1163517ea19dc05812a69bf04183d17eb --- /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 0000000000000000000000000000000000000000..9d266ef5258043caf59e4077524039653804b197 --- /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 0000000000000000000000000000000000000000..ec753b516e800591516030354abf00d279e2eea1 --- /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 0000000000000000000000000000000000000000..5e10cc9e90a1f044ccee1d168fa660d54061159c --- /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 0000000000000000000000000000000000000000..c46412f4859d2b2bef635fdba94b5c13d9361903 --- /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 0000000000000000000000000000000000000000..ad8cb7bea86ab28f167865bee7e0de7f7295b9e9 --- /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 0000000000000000000000000000000000000000..a18a9b3a92e3964ad809bdd53045786a26922628 --- /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 0000000000000000000000000000000000000000..deeac45e0d3297d8a7982f700a887677457cc8e0 --- /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 0000000000000000000000000000000000000000..37ebf9debc03f91e27e3ada714cb740abdf9db63 --- /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 daf797ea095d73d75a47ee5fe88209d0fec33dae..8dd7e655059d3ab183a63a0c2e45257b0b444022 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 0000000000000000000000000000000000000000..438a75a78d5288f469994d802550dd66a2531438 --- /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 0000000000000000000000000000000000000000..1388676efe4a07be2f4db67adcaf5b8705b90ccf --- /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 0000000000000000000000000000000000000000..34540b48e58a896f4b1db5680ffebd0d76cca926 --- /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 0000000000000000000000000000000000000000..f48bf7a131c70a6bd69a89f121cb901e8daa7e93 --- /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 0000000000000000000000000000000000000000..37367a1aab0ab987c364ebcdccb00366872499cc --- /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 0000000000000000000000000000000000000000..2fa74df9715826b3690a79cde212a6afbd9765ea --- /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 0000000000000000000000000000000000000000..313708e68efbce552ba5efb91b80d15aa607a5f7 --- /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 0000000000000000000000000000000000000000..67b173ea5fd4e075e01c32b644249d32edcc472d --- /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 0000000000000000000000000000000000000000..96a26d351d5b2d10af7d019a26cf8bc8177c1411 --- /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 0000000000000000000000000000000000000000..505bf3338983b71659db0c2ff1d2d6b17d7faa88 --- /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 0000000000000000000000000000000000000000..5c8adae646875afd4b320512ca96489f76585014 --- /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 0000000000000000000000000000000000000000..37f04a894443509bb67a6063d5debf06a7cd0bdc --- /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 0000000000000000000000000000000000000000..81e4886b80e575a71545bac38c11acd6f27764a4 --- /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 0000000000000000000000000000000000000000..7030532179c1dd6e2baf00e7697add501c2ff3ff --- /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 0000000000000000000000000000000000000000..3229025acc3b86d31e982831a2f0e21c930ce1fd --- /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 0000000000000000000000000000000000000000..8e769a25cea6e848f79c63bf35e4acaf6984a7e0 --- /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 0000000000000000000000000000000000000000..fe063b4ce22a2328feabd40e2df1c4d8e6ea66a9 --- /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 0000000000000000000000000000000000000000..54f4b5cddd6c1ec68fa4182adf71dcdfe2edffae --- /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 0000000000000000000000000000000000000000..1230c7d720979475958bebabffdf7883482b6d50 --- /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 0000000000000000000000000000000000000000..c55dd47ec7015fe1f48f216208ffb023d7655fcb --- /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 0000000000000000000000000000000000000000..ee561e3e146bfe55670b8f0e9b7f82829456f357 --- /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 0000000000000000000000000000000000000000..517a62b7160a7acf1fe14c90779a2485a4c0f02d --- /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 0000000000000000000000000000000000000000..9cd5cf9b7bbb5731dd98dc18b12f50b2c28433c3 --- /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 0000000000000000000000000000000000000000..adb9dbea94101b7d913bbb6535e033f2b47bbc4b --- /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 0000000000000000000000000000000000000000..6b8a02e538584c1f69d6ef462f455f2387e6a8cc --- /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 0000000000000000000000000000000000000000..5f15dd170c10cac03936e50e5f58ef419d24bea1 --- /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 0000000000000000000000000000000000000000..1374e549f275c9c4956d919b9800317f617acc68 --- /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 0000000000000000000000000000000000000000..8f9c06264fb1cedfaf0c2a69e8129cb2d2f7f6f9 --- /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 0000000000000000000000000000000000000000..8c2479733f8c68730f2cca7c8946b221c85f7476 --- /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 0000000000000000000000000000000000000000..038c5abcdc0388a1a9bef60217eb891e47adfc5f --- /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 0000000000000000000000000000000000000000..81aa28527d895d1d0a76bea8807a8db611b81a74 --- /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 0000000000000000000000000000000000000000..cedd62fcbf1f9fc8242460f10463ad1a8ec4dde3 --- /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 0000000000000000000000000000000000000000..2eacaa41bf84181499e0d468aeba67fee7649e02 --- /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 0000000000000000000000000000000000000000..368b8a8a6a426659c560ddc8e9f8a5b20dbb1773 --- /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 0000000000000000000000000000000000000000..481c9f4ac2e8c1e063b3cbde97171e2ff10f514f --- /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 0000000000000000000000000000000000000000..e051414cbcc952aee64b4acb3dd411fba70c6c5c --- /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 0000000000000000000000000000000000000000..f079a6ff7384ca0d299357aab2b6fea713af42b6 --- /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 0000000000000000000000000000000000000000..d4e9c682d2451dd667832e0a08622e6106d9fcc6 --- /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 0000000000000000000000000000000000000000..91d574c211234103f1f374f1c8fe425019a538f0 --- /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 0000000000000000000000000000000000000000..1320f252a784a6376120c5314f8bccdc06605723 --- /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 0000000000000000000000000000000000000000..2d8e1f3f1b791ea8819a1e1e66e140fb2bd9e9e7 --- /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 0000000000000000000000000000000000000000..19248f3a40aca1ce4c82c5bc0a06b8691f8829ee --- /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 0000000000000000000000000000000000000000..aa6e81512e9f6ce23d9584df5064570dfcf48435 --- /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 0000000000000000000000000000000000000000..a931523ced814560a25f18c7e48ec90d4cd066a4 --- /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 0000000000000000000000000000000000000000..fd73b743da3b8ba7c702352781bf45a77f3b71cc --- /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 0000000000000000000000000000000000000000..9a637c822f8cda21d1c33d738acc5f9eb2b6cd2a --- /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 0000000000000000000000000000000000000000..437853d9a2eddf094210e6a1e8288ce1287404e2 --- /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 0000000000000000000000000000000000000000..c3a11cb9f34093cdbc652f5ab9fbf7727c45c858 --- /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 0000000000000000000000000000000000000000..fc2abce0c7ed9858b8a08b4338d2d3af2afc45e4 --- /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 0000000000000000000000000000000000000000..4d58019eaf8bb12235c5470fbd97b938670bb6c0 --- /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 0000000000000000000000000000000000000000..94c43277c8550c62cf70ad124c9e8955e9c71f14 --- /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 0000000000000000000000000000000000000000..a52386a232b19f3e1c595be07e4d432113c54199 --- /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 0000000000000000000000000000000000000000..996a7d00238b001ea387263bda22750a0b458562 --- /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 0000000000000000000000000000000000000000..24e4659f20dbd2664cbde25a8ca098955d32a850 --- /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 0000000000000000000000000000000000000000..803e9973ff0d358b8638bf17df46f264c782b6c4 --- /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 0000000000000000000000000000000000000000..1eb660e7ac3ce49904acb64cc7d7fcdd549b22f5 --- /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 0000000000000000000000000000000000000000..7ddb9619a2f69977e8d3967287e96856b497c447 --- /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 0000000000000000000000000000000000000000..0e9812febca9465a7bc2ed35b55da2bb424349ef --- /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 0000000000000000000000000000000000000000..818dc42b8aa991c50cc764a76a86cea047b1245b --- /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 0000000000000000000000000000000000000000..6c8a91ea29a33ecd480dbe430e74294702460535 --- /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 0000000000000000000000000000000000000000..46703d990a7fe36e4cb47e0eb8cc6dc8d573e3d9 --- /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 0000000000000000000000000000000000000000..39e35d53f19342958fb411d3a3c3a0a833be067b --- /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 0000000000000000000000000000000000000000..c853d6cbefcd19de612e24498d242e5ca4a058e3 --- /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 0000000000000000000000000000000000000000..b1f323022426897606035908c7cf9ac5f62d64c4 --- /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 0000000000000000000000000000000000000000..9d9a46eecea52305243ff939c5f63297ad5eb48d --- /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 0000000000000000000000000000000000000000..c8bd3b01658326faf2a7d4a3ea836482af3e0af1 --- /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 0000000000000000000000000000000000000000..69b146adf5710890bcc9d67675dac733888b83d4 --- /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 0000000000000000000000000000000000000000..c37165da8764dfd10254e881897f855c46bff346 --- /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 0000000000000000000000000000000000000000..559da9f8d2f02c5d7764092c4fdb0f92caa17c7d --- /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 0000000000000000000000000000000000000000..e7a15867dd6ce7aad9575227924524b675434b1e --- /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 0000000000000000000000000000000000000000..92babde24c9d4ab2a00d92221d3c0d06e0447f33 --- /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 0000000000000000000000000000000000000000..a275184cd5803aee52d8df1271c23ce2ab97466c --- /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 0000000000000000000000000000000000000000..b1fbcd57ba2008445a8f05414dcf9cbfe8a67a05 --- /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 0000000000000000000000000000000000000000..dc18ad476d63d0f088ecd3ac52a97a6b8013a2a6 --- /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 0000000000000000000000000000000000000000..a02829634ba960470e7399500d52f0fc18eea9ce --- /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 0000000000000000000000000000000000000000..73e23db4c4bab125f22788d42f2c02c1286610f5 --- /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 0000000000000000000000000000000000000000..e640892341525b437c73b209c1c441caa611a0de --- /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 0000000000000000000000000000000000000000..bf621ffd4962ec96ebcaac985c98aa336f484c64 --- /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 0000000000000000000000000000000000000000..11530205d3eda25ff0b8f994d1153b9e8290683b --- /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 0000000000000000000000000000000000000000..2c7ea55b2ce39cc3a4c71c59ccc32d23daebd27f --- /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 0000000000000000000000000000000000000000..b70d3fe4320043d04e743d357ed744ef3e706b24 --- /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 0000000000000000000000000000000000000000..5437669c56b3747097a1bdc7fe33350ea09701b1 --- /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 0000000000000000000000000000000000000000..e173765e9ebee1934d63e0d18fbff2f0ce0f9ab3 --- /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 0000000000000000000000000000000000000000..b9905bd229e57bfe44386c1af6df10b36251ad2c --- /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 0000000000000000000000000000000000000000..569ee3867c849653412983dffe77712c365ef8c3 --- /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 0000000000000000000000000000000000000000..4ad68cb8ad669f0b36753c2fad5617ca76f249fe --- /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 0000000000000000000000000000000000000000..be306f21a0b2dc496b301750b356ff1fb5deac21 --- /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 0000000000000000000000000000000000000000..6ade929a7565b4e2ff5b72ff09c3991f2742e9f9 --- /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 0000000000000000000000000000000000000000..976b196e227e69d5a7498157cf7c51387aae0117 --- /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 0000000000000000000000000000000000000000..142da165519b313cb19db927c27a50f09b834331 --- /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 0000000000000000000000000000000000000000..8e64e7fc18faf6efe1cc974fdb4820254fbf819a --- /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 0000000000000000000000000000000000000000..5bae3ec0ad9d6073215eb1029256effd2ccb9f39 --- /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 0000000000000000000000000000000000000000..8defa7ad55622cd47e6c61ca02443cdf71b6e941 --- /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 0000000000000000000000000000000000000000..1714690678c2ca9238ed36cd2a06cde0c72c1522 --- /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 0000000000000000000000000000000000000000..ab433a4718152c4444f6b24fec4aeca82fa8af7e --- /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 0000000000000000000000000000000000000000..1b011e932dd4ee446f4c3521b7931741db23678f --- /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 0000000000000000000000000000000000000000..3ae4dafd3285dc36d0e51dcfc3ea1599ec1210d3 --- /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 0000000000000000000000000000000000000000..bbb140c7c18a19e697a410ac4621337d11c7b9b0 --- /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 0000000000000000000000000000000000000000..e80f49f0b73d0fc4e8eb1fc312671236ac2ddd3d --- /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 0000000000000000000000000000000000000000..e100d6ea0f8f9b92b05005eaf2ea8356f9f20985 --- /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 0000000000000000000000000000000000000000..4cb670a19bc8eab678f9d673b1e97e94888e4c3b --- /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 0000000000000000000000000000000000000000..9ea54fe8bd466c05e05ed4d05c1c2547a79e596e --- /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 0000000000000000000000000000000000000000..d4698992d5f945ab1eae7384db45deb26f1ab4d6 --- /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 0000000000000000000000000000000000000000..68e92725d2b9c566eb9c56cfb813e538fafd981f --- /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 0000000000000000000000000000000000000000..880414c07dc1502a84dac66f2a9ed8cfa2387ee4 --- /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 0000000000000000000000000000000000000000..fa29ea6663dc567bf87ead87f1947bf01599183f --- /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 0000000000000000000000000000000000000000..4f3bdf07474ad75fe487f32d3a28fe60a39e4a54 --- /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 0000000000000000000000000000000000000000..bc777331d5c54c523c0d4b3aad10648cd8e226a4 --- /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 0000000000000000000000000000000000000000..e75403ded432959a3e8fb5102b21cdbeb7a7d8ae --- /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 0000000000000000000000000000000000000000..6f9d746bd449832dc1f3ab6c447cde9175551216 --- /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 0000000000000000000000000000000000000000..8799e6562ba3d03bea3638fbdb1b7e16590e0e12 --- /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 0000000000000000000000000000000000000000..15776ac424ff4af7f0cbb17274a5c8336caab4b2 --- /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 0000000000000000000000000000000000000000..73b056770a2840a5989aaf34b6688e919826c4e1 --- /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 0000000000000000000000000000000000000000..a80896671007d1eca830667480c299886f26607e --- /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 0000000000000000000000000000000000000000..7548a0921ef7c624f02fc9c5678ff3a031d2a015 --- /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 0000000000000000000000000000000000000000..f2747681e528a8a964f62082b72432884ffbebe4 --- /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 0000000000000000000000000000000000000000..10351ed6e5c92b59ab9971f3e6db1098b7620705 --- /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 0000000000000000000000000000000000000000..c0e348fe02e3caa748b2020477bb522b0be318bc --- /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 0000000000000000000000000000000000000000..c04292c95da59db1951f44379239c399e8f108b9 --- /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 0000000000000000000000000000000000000000..c3fd63d440461fd4021906f3ba3fa019b33ceb64 --- /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 0000000000000000000000000000000000000000..3fe5461621eb847513fc30aa1806ae034476d8cf --- /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 0000000000000000000000000000000000000000..1c4a72f54d15d4448a183ba5958fc002d3bfcad8 --- /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 0000000000000000000000000000000000000000..1beec7048b0b7f685dd01e6e78e27c217f2835db --- /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 0000000000000000000000000000000000000000..ab9fd0713cce38caae5c807d3f8771ac34cae784 --- /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 0000000000000000000000000000000000000000..f50a9965833a3b0240da87d2dba96cb427ae364a --- /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 0000000000000000000000000000000000000000..f7f527b36026be9dd7cfdaa71afbb243e9c25ff2 --- /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 0000000000000000000000000000000000000000..591b81b14afd31d584def6628e99821122ad2326 --- /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 0000000000000000000000000000000000000000..9de3dd583f57e0a00c114179e353c13437b5bca5 --- /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 0000000000000000000000000000000000000000..2dbdf9da768c938a3b26d10922be0e71d46c7674 --- /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 0000000000000000000000000000000000000000..f795dd7d4dedf4c5a2375e44bccde96b46448496 --- /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 0000000000000000000000000000000000000000..f351cdfa2f4c3071e21e58b6d183d654c65b9e0b --- /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 0000000000000000000000000000000000000000..8dee1bc1adc85b42ef6177a0fd2c2e8453a8e5e1 --- /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 0000000000000000000000000000000000000000..169ab1b4bda5a77b0cc4cfa64bc47507dca8b655 --- /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 0000000000000000000000000000000000000000..e94a1c7e0a63e6ba886528914e47ac7dbcfc5eab --- /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 0000000000000000000000000000000000000000..1d8f0b5b9ae1ead0699cfddb8b4486228a7d27a5 --- /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 0000000000000000000000000000000000000000..2bbb926e8500e1f5dcdaab322baa4e852df6a371 --- /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 0000000000000000000000000000000000000000..915faf91a7f056d8fec1cd77e266ff1760007111 --- /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 0000000000000000000000000000000000000000..81da320c977b4269fb28ea7e71b1dad35117fe09 --- /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 0000000000000000000000000000000000000000..0f8240b4ecb92790baaea60b6b08b7029e986de0 --- /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 0000000000000000000000000000000000000000..0c9faeb2af3bd6c1f09d190474b192fc5cf31f05 --- /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 0000000000000000000000000000000000000000..a8e41cd36f635b048eae0be18513f7cda82ae5d0 --- /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 0000000000000000000000000000000000000000..6da1966d61bbd1c4369b89fa36ab255a6c2c0ede --- /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 0000000000000000000000000000000000000000..27d294fac59c8c49415b7bc76763815c863eca7f --- /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 0000000000000000000000000000000000000000..1828b63a3d663cd574c48f8c56399b7954e6754d --- /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 0000000000000000000000000000000000000000..d2757c1852cb4e9462873d7b5edf317821fe8ff5 --- /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 0000000000000000000000000000000000000000..0771e745b1fc50e7d7809f9fc908965ed4f0443e --- /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 0000000000000000000000000000000000000000..981a37c1e5971758f3c8da5be62c5bdb18570388 --- /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 0000000000000000000000000000000000000000..d7b63bbe013a8da236b6427b0fb8633d9ae40763 --- /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 0000000000000000000000000000000000000000..a86986e9f7ebc6aafdc4b110a0a012954e63f8cb --- /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 0000000000000000000000000000000000000000..a32efb0097099a74981119d5f8d53e50be978110 --- /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 0000000000000000000000000000000000000000..9173bc4d89625d7be22274b03834bc1c374ce194 --- /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 0000000000000000000000000000000000000000..cb83a58410cedf8d21ae2c8aba51c2b8fb7619a9 --- /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 0000000000000000000000000000000000000000..1fa1ab5a8d777387f61c3e3c53ab4c13f6eae21a --- /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 0000000000000000000000000000000000000000..e8f269d10c03eee3bc66ab6276fd22acd24f6bef --- /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 0000000000000000000000000000000000000000..0441a3a3f0e1ca80cb16c5aa25d7f15148db9847 --- /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 0000000000000000000000000000000000000000..7145710ab0ab6059a2069d7aae22f22e1ce464bb --- /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 0000000000000000000000000000000000000000..be808c285a9df11b263933d512f7d03136d70911 --- /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 0000000000000000000000000000000000000000..d01ba98421c74db7011e8b1805ab5190e3bf73cd --- /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 0000000000000000000000000000000000000000..bcfdeaf53f3482bd0bc22170a0fbd40a381084f6 --- /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 0000000000000000000000000000000000000000..e1f3236997b32f8ae44d2288f68e16eae8471a84 --- /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 0000000000000000000000000000000000000000..9dd907c267c23c0875343623367993fd8f8bacef --- /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 0000000000000000000000000000000000000000..8b74ed290679503ac5ace61185b8a7018976af4b --- /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 0000000000000000000000000000000000000000..1f123b292a9fb18245e45e257f40cc22cd1168cf --- /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 0000000000000000000000000000000000000000..861d5649828b3b4020fbe79cace78a42cb8e2366 --- /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 0000000000000000000000000000000000000000..797ed37ce5f762d7e9bbaefe39b90705ab0130de --- /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 0000000000000000000000000000000000000000..dae0159809dac432dce1440323493d0f61a99f0d --- /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 0000000000000000000000000000000000000000..af29a4d947c250f97d2a573009dfb364f3d8a506 --- /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 0000000000000000000000000000000000000000..7745184c34c1329c1e5da85a2f44fb2476fb2998 --- /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 0000000000000000000000000000000000000000..9a8bdaef45b1894206a170ef1ba8d7f5f12c6abf --- /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 0000000000000000000000000000000000000000..2e8a05d57ae03b0ca9943d6ac655ca6f652f63de --- /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 0000000000000000000000000000000000000000..5152529d461e47cde1bb762240f2378f8d1f992d --- /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 0000000000000000000000000000000000000000..240bf887b02a8fbfe1266b85893b142782425b80 --- /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 0000000000000000000000000000000000000000..7f16792c8cd2009a5750278d213a38214e17cb81 --- /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 0000000000000000000000000000000000000000..56a4655ed9230988b8059d4789a40ff7a282bd16 --- /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 0000000000000000000000000000000000000000..719947e3aa5fda25d539dc606bb4afcfb14a9234 --- /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 0000000000000000000000000000000000000000..ad5299edddd4a4161b0b6eb06d8d5ddb89292066 --- /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 0000000000000000000000000000000000000000..4e53455c913903d9d8ce146d106628c659c00f89 --- /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 0000000000000000000000000000000000000000..6874a320f026685a3c0d532b332ef1f8e33f4925 --- /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 0000000000000000000000000000000000000000..5cc404373166f9264ad660b495794d1762786b95 --- /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 0000000000000000000000000000000000000000..80b8d6b6e293cd34b7e661d1d43883bfdac2da86 --- /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 0000000000000000000000000000000000000000..98c1942db561fcefbc1ba9d321601c57359b29fb --- /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 0000000000000000000000000000000000000000..86097f0fcffb07cfecb3d0e9fb512ddc34b61b61 --- /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 0000000000000000000000000000000000000000..e13466a54d284a81a582326c7c67f4ab407f4d0d --- /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 0000000000000000000000000000000000000000..113a5bb61a849545d3b33011331e322e90739c6f --- /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 0000000000000000000000000000000000000000..1b4f34f72100c12c5820e682e8a2774304aa42d8 --- /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 0000000000000000000000000000000000000000..573e30f020554444875166a075173e61726b4071 --- /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 0000000000000000000000000000000000000000..fa7df6f6d9d5db4b3cb2852497ed3fc795ab3bfd --- /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 0000000000000000000000000000000000000000..3011aaaf311ab464676a52534e0f45889b30f5e7 --- /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 0000000000000000000000000000000000000000..70dfc86ad0fc14d9ab1b1cf2082fe453398d260f --- /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 0000000000000000000000000000000000000000..9d5f93c8cf5d4ddf8bc9b8302023115d79370337 --- /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 0000000000000000000000000000000000000000..80f92226b2c0c281c514370a24b5a7f829e0b5f9 --- /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 0000000000000000000000000000000000000000..a28b32ad5eb7e458b4d4f005ada5cde8c14eff85 --- /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 0000000000000000000000000000000000000000..26dd96ab1a1167a632978bd24aa52c6d951afce7 --- /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 0000000000000000000000000000000000000000..789afef62cdd9a26b91313dc8db5d9cf038548bc --- /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 0000000000000000000000000000000000000000..2933d1537a04271fc8ac7e4192d159df551116f1 --- /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 0000000000000000000000000000000000000000..db5242af1ab54cf96b828ab44fb3372cab813d77 --- /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 0000000000000000000000000000000000000000..9f63a063779de5a4d1436348adb4b7eb2f36b75f --- /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 0000000000000000000000000000000000000000..fbd2131e61500231a98d519f91ba31539a0fd752 --- /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 0000000000000000000000000000000000000000..d00068519f4f14e12bbe0273c5f82753a619b4f5 --- /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 0000000000000000000000000000000000000000..7f3d944f305f625c6294467db74fa8c5bcdf6885 --- /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 0000000000000000000000000000000000000000..ffbbd3611cde7ef5aa47935d446c8c101726e840 --- /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 0000000000000000000000000000000000000000..9116f8459e05112a90bca4947788ee3d70cd524a --- /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 0000000000000000000000000000000000000000..f604dec19848a11cc31cb484c2887b63423f486e --- /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 0000000000000000000000000000000000000000..e769dc3acbf8afc5d412d2f611589bb8a87aa0a4 --- /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 0000000000000000000000000000000000000000..3bc3ce40b2d6ec16663f104e4aa5375ff546b80e --- /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 0000000000000000000000000000000000000000..bd815ad9833eb7976ed78c615a8093a7928cf218 --- /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 0000000000000000000000000000000000000000..5cb7ed358716364d1c3e1ecd644db93ca61e8b14 --- /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 0000000000000000000000000000000000000000..8691e22ed5009bb445ee3eb4a041d6145637c6c0 --- /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 0000000000000000000000000000000000000000..f4ddb4690062bb718f1563d680819bfbf3a9bd8f --- /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 0000000000000000000000000000000000000000..5991cc4dd0c32961f54989afd5eabbb758c0dbff --- /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 0000000000000000000000000000000000000000..4ca38a31ed0f38d772289f9061c4a2902e147187 --- /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 0000000000000000000000000000000000000000..a0cfeba2982f5bee10633cbc52ab201b57f6710b --- /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 0000000000000000000000000000000000000000..98bd63467e1d40aeb88b9bdccdf6065709e2e67d --- /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 0000000000000000000000000000000000000000..4cecef184e449ec4e642bd690cc31024e06acf73 --- /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 0000000000000000000000000000000000000000..e67dd6f410d5e3c24efad07aac303d3b69b6f08c --- /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 0000000000000000000000000000000000000000..44cae4cedb8d40fdce98fa54091462b66818c0c8 --- /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 0000000000000000000000000000000000000000..e8a3465487927e2eda26b0c26eaa298603fb568b --- /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 0000000000000000000000000000000000000000..27f1f0b423212a7484946c2ff38a25b381d36554 --- /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 0000000000000000000000000000000000000000..0595d90a95131ee95af4d653457fcbbc78de48dc --- /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 0000000000000000000000000000000000000000..4eaea1016a2f2444e7c004490d11697809e6b71b --- /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 0000000000000000000000000000000000000000..f917fdb1972e1652880cbee0a3277e76a5451a5b --- /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 0000000000000000000000000000000000000000..fd69409c0fd083c928de20e013f72a7f234cd4c1 --- /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 0000000000000000000000000000000000000000..c30ac4b2d71fcd6d1105e1b296be4b05d4a0b594 --- /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 0000000000000000000000000000000000000000..8c780661d844fe8c19c6027dc5c3e0fb4b199406 --- /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 0000000000000000000000000000000000000000..1edbbd4f29c49305500329c287430a4d12cc7381 --- /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 0000000000000000000000000000000000000000..4522219215fd6c4c49aa4456ec8f7d6d178e7432 --- /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 0000000000000000000000000000000000000000..3988d7073dbf602e43df75c3e483c1882be7cdda --- /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 0000000000000000000000000000000000000000..4729220b4d3aeaebcae32df372e2576967daaf67 --- /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 0000000000000000000000000000000000000000..c355e3c6449e3e1fbb0ee0e89f43ff7ce5089ec9 --- /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 0000000000000000000000000000000000000000..eec69d71d22d566fdd84433fff9ba88cec240424 --- /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 0000000000000000000000000000000000000000..b97fae3ca84f624f6a4222325086ac21de13d0fe --- /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 0000000000000000000000000000000000000000..295918511409faf24664be55956a30843d81e32c --- /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 0000000000000000000000000000000000000000..ba8ba4730621591ecdaf9ef74b470c0af9faff5d --- /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 0000000000000000000000000000000000000000..3ae24fd64920c4c745c8cbd4c1131d7f25956eff --- /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 0000000000000000000000000000000000000000..1e9679ed51f637af6887bf503784296fddcd0068 --- /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 0000000000000000000000000000000000000000..e833f4c3ab939fc09bfe42ff96e610ba9b63d91c --- /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 0000000000000000000000000000000000000000..f2fe0c89dba4082cbfbff63fcfa5c253b16d4c70 --- /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 0000000000000000000000000000000000000000..bbd4a6a9afaebae2a43ad56345d0a81425b0516c --- /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 0000000000000000000000000000000000000000..c8b03f4fb3b2e0284da6e50f0c513a1f4fb13395 --- /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 0000000000000000000000000000000000000000..0494c3b216c01253ef1d0d2e732b8f86b903872a --- /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 0000000000000000000000000000000000000000..c8a5e00b207cf54f91a321cd8ff4e299a1930aa5 --- /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 0000000000000000000000000000000000000000..5179e475ceed3c448fb44be09a127330ac4c7774 --- /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 0000000000000000000000000000000000000000..9369a768fed803bed9f5d6ab89bfac5c9645cefa --- /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 0000000000000000000000000000000000000000..30b6f829b02c92e398e47b0bfbb63ec4cb8ede31 --- /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 0000000000000000000000000000000000000000..ab5b26e08b69c0d3bfba21c575501f153eca6537 --- /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 0000000000000000000000000000000000000000..e23b5f23958b4cf04946736d096d2d74a9851122 --- /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 0000000000000000000000000000000000000000..57746e46d6295ad219a0a8d7cf1602dcb530b47d --- /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 0000000000000000000000000000000000000000..0d5a9bc7a3ea3a0e8f85689e1a1a9b8a2b41e8e1 --- /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 0000000000000000000000000000000000000000..0969205ad289849f10f890a7f2a1975351b10bb6 --- /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 0000000000000000000000000000000000000000..29ceeb8809a54907d0d7b097861c8b246d56b893 --- /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 0000000000000000000000000000000000000000..4c01108c9a8957222f980d35634ad1819bd4b55e --- /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 0000000000000000000000000000000000000000..3aeda2ce356805d7573a61a2abb5d1087b13692b --- /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 0000000000000000000000000000000000000000..922fddf591df3fae052b29e1c8130640bb92e684 --- /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 0000000000000000000000000000000000000000..f946641fab4c94e8caf5039e3095f5c0f3cc3d2f --- /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 0000000000000000000000000000000000000000..6422a60c9a4c11e34074882050e17092111c5fa3 --- /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 0000000000000000000000000000000000000000..4f1b373379cd704429da59463e3b40de89f1106e --- /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 0000000000000000000000000000000000000000..67ebb29f19f628b3cb5dcf19bbae59e809683d41 --- /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 0000000000000000000000000000000000000000..bc9975a11a3c472d94ac38829f127952c0e487a1 --- /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 0000000000000000000000000000000000000000..5499b76c837063940749b77c57eb20dbaa29551b --- /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 0000000000000000000000000000000000000000..cd326d5eb13b7cbfa7d5314a594a4c9eafba5a04 --- /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 0000000000000000000000000000000000000000..5d5fc68563a6486529daa04a946ecdc78198ddb8 --- /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 0000000000000000000000000000000000000000..f0deae01a33ec7343bc49e1477a0843f4d3b9fb4 --- /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 0000000000000000000000000000000000000000..5deebed1a953cbfc90d12afdaef776215c6f9557 --- /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 0000000000000000000000000000000000000000..ef9dfa669a052a802387e69ce277cbad780d5ca7 --- /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 0000000000000000000000000000000000000000..2fcbfcd4030ad07d48bfac859aabb3582aca3cc4 --- /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 0000000000000000000000000000000000000000..eeda2fba571b199593001e48107291486ccdebe5 --- /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 0000000000000000000000000000000000000000..3c3c4ff9bc18c2f9df2e5eaebd2a5d79b27b8067 --- /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 0000000000000000000000000000000000000000..2510cd8edd9853dc4849cd8459252dd642fde6ef --- /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 0000000000000000000000000000000000000000..28cb5d176cc02fb2dd5d12f349f11da4cf205e15 --- /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 0000000000000000000000000000000000000000..e4d6ebb863a8ddacf61e5f531afe802d1c4b5a8f --- /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 0000000000000000000000000000000000000000..f76cc804f583268418c839fd7c12aff7b66807c4 --- /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 0000000000000000000000000000000000000000..8051df37ae19ebb853ca9a14c791a66b87e12e03 --- /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 0000000000000000000000000000000000000000..35a24d6fb3bcce375e58ac560b9e2a62aba0c697 --- /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 0000000000000000000000000000000000000000..5f7041488b4c236543b0d58984b8576b7b8bf666 --- /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 0000000000000000000000000000000000000000..7aa338b591b28f120074a0084d59830d6f5bff7c --- /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 0000000000000000000000000000000000000000..4288019cad2f0c490426d00edb914eb355b99aca --- /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 0000000000000000000000000000000000000000..5e07cf50c804f210076e76b73695dcecf6dd39dc --- /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 0000000000000000000000000000000000000000..b59b3ce6e446729c91fb4440e7634c56a7e596e4 --- /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 0000000000000000000000000000000000000000..40efa29720381cacb67b7d25c9b5e0592d8c571d --- /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 0000000000000000000000000000000000000000..f6ed874450ebbf0ac390ab399c2c8947f7dc8e66 --- /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 0000000000000000000000000000000000000000..d50aaa708559c87549a5f2f6fccab579080673aa --- /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 0000000000000000000000000000000000000000..ef537923afe94e9081ee6a65680292cfd73e285b --- /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 0000000000000000000000000000000000000000..24cf8fa307a930aa20756420398c81089095d111 --- /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 0000000000000000000000000000000000000000..6502aec203b5d5d7191d4222b18b510a23b86def --- /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 0000000000000000000000000000000000000000..67b73bd4c440b9ff6813594cd0c2c8a835a51356 --- /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 0000000000000000000000000000000000000000..0460701e4ead7ea46aff2bbbf7fe075fa9ee7040 --- /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 0000000000000000000000000000000000000000..20cbc5e2d5b812ab46829533b9166c39ad7bc641 --- /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 0000000000000000000000000000000000000000..bfb7a91b4d8baf880a1910feaef877f3ed66f375 --- /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 0000000000000000000000000000000000000000..f44f45455f114313f478f5884e63bc3a45b677ed --- /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 0000000000000000000000000000000000000000..67207184c049b6bb2a9c9bec04e0528f75e36a86 --- /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 0000000000000000000000000000000000000000..d8fe964c543b4e891fb7e6fb3967cd6baf7da144 --- /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 0000000000000000000000000000000000000000..1d2c0e24d0412d5290ec7dd4907ad79523469ae9 --- /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 0000000000000000000000000000000000000000..01bd1ee86255b97b9e853be672478f5612c010b2 --- /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 0000000000000000000000000000000000000000..2d938ee1983a7c88d9ffbb5291a4b363f542eccd --- /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 0000000000000000000000000000000000000000..dbcf2dad0fcc3048e215cdaafb14791a11bae151 --- /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 0000000000000000000000000000000000000000..9a8c052978f4ad45492c5c66f0d951a2f598c57b --- /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 0000000000000000000000000000000000000000..50611b85ff5fa412c8c6b4337058d3678546c3e0 --- /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 0000000000000000000000000000000000000000..430a3fce48a2e05226bdd2307062b5615a05f39c --- /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 0000000000000000000000000000000000000000..1f0bcab09ee56c2f6f52b91d59e7ba3559c089b8 --- /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 0000000000000000000000000000000000000000..92a4df5b27741ceb99e6c0008f813dc134155dee --- /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 0000000000000000000000000000000000000000..1b923d72319fcd17cbf496ca5403634fa8b71785 --- /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 0000000000000000000000000000000000000000..6ff30a42b33e889201dcbf9d7abd97ea93d8a43c --- /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 0000000000000000000000000000000000000000..c8ff256c2b0b368b26833e48a7f790d11cdbf362 --- /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 0000000000000000000000000000000000000000..7b43b661ed188d7a5e17b229221dcbb0a279216b --- /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 0000000000000000000000000000000000000000..ad31e3d5f19f4442db1a821aee103ce46b5ab64b --- /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 0000000000000000000000000000000000000000..69b8bb8cc5da2e61c92c6fc8956f2f9de0d361f0 --- /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 0000000000000000000000000000000000000000..dea842096148e8d51c71d0555da91edef178fe90 --- /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 0000000000000000000000000000000000000000..f2c48921acadaa45070337177cba0223ccb5161b --- /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 0000000000000000000000000000000000000000..8e5b600adee3e93c96e5ee6224383704e0a57470 --- /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 0000000000000000000000000000000000000000..2cb27e6a2c9f50f8112b286219fdac269511a1ae --- /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 0000000000000000000000000000000000000000..1d28504fe6fbe538aa15020cc77d6746f291a4f6 --- /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 0000000000000000000000000000000000000000..7ef821a73ae991e03b0e66f32173b7c9e737fffe --- /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 0000000000000000000000000000000000000000..1a36f42189b389b4ece9d22d6f9c0ae2b4e5ea55 --- /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 0000000000000000000000000000000000000000..0119ef70d77724122b92b6d966d14b72f6ba81ae --- /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 0000000000000000000000000000000000000000..18e9dca57a006f8f6c0089429b13fbdefa57c74e --- /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 0000000000000000000000000000000000000000..ffb8d59be11cde2bba0f27025159d1293a973874 --- /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 0000000000000000000000000000000000000000..e919b1c4df74bb6affb99782b0c4b50743180651 --- /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 0000000000000000000000000000000000000000..c62c19ebebf4939281520d5f957d8c68f61703bc --- /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 0000000000000000000000000000000000000000..99dca5ee218f22dd1d705bde01a54e3c47703abc --- /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 0000000000000000000000000000000000000000..7627c8da85bcccfaf92c33bc532f2d1559fdde81 --- /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 0000000000000000000000000000000000000000..9474dca82763acb5a9d10952164bc52c08dee397 --- /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 0000000000000000000000000000000000000000..95a0e79b7ab25c6390f0d5902ad3dcdaade91a2a --- /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 0000000000000000000000000000000000000000..004e6cd6af94982efa8d5ea184bdee6ace2313d8 --- /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 0000000000000000000000000000000000000000..96c9f6403b525fe669d529c3f9d4325eac5c8ecc --- /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 0000000000000000000000000000000000000000..398ea7feff33e82d8a766c008f9506e8c42ff1c4 --- /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 0000000000000000000000000000000000000000..94381d5a71414b341773a4e44d3f134fe114dc4b --- /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 0000000000000000000000000000000000000000..e9a40a1d40b8773e027690c7b5bf7eac4aac61b2 --- /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 0000000000000000000000000000000000000000..939853844573bd1e46a0c9ddd2e99c9781c8fec0 --- /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 0000000000000000000000000000000000000000..420be27a5a41317d8cf46af10c7878d30c0a81d6 --- /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 0000000000000000000000000000000000000000..5402975c4ed6638ec9c10eb3acd9551d8dcbdda5 --- /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 0000000000000000000000000000000000000000..a853c99aea56c455e08ba5f5535bd07ac5960b30 --- /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 0000000000000000000000000000000000000000..04e24babfab8e107a73871aaf04c9a3461759dc8 --- /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 0000000000000000000000000000000000000000..1a92f54b32ce1e0111242ae9789cc561c76e840c --- /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 0000000000000000000000000000000000000000..6bb75ddbccf4e50df9e82e6e8db1a7e3c4fe40d6 --- /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 0000000000000000000000000000000000000000..6113e277d61e9d8a2d89c1276c13e77fce822481 --- /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 0000000000000000000000000000000000000000..66ccbc5abefeba15c2ff8b7cde122e7b88dc4cef --- /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 0000000000000000000000000000000000000000..3666bc71cf042f0699d23124e269f2a9a88dce2b --- /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 0000000000000000000000000000000000000000..7643564c67570a8c23acfc0d1afd24087a22d44f --- /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 0000000000000000000000000000000000000000..639f367b1e34733d114c806ab9716097c66a6d56 --- /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 0000000000000000000000000000000000000000..04665d803aed530c26e82a723335e10a6eb6e24b --- /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 0000000000000000000000000000000000000000..32a119f4d5583e2d3a767c093fb60a36700a5cad --- /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 0000000000000000000000000000000000000000..723407f51f8daaacd96c56d0fa267d78bd4c89c3 --- /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 0000000000000000000000000000000000000000..390e75c0e69764e3304241a516c3cbcd46262f78 --- /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 0000000000000000000000000000000000000000..a1fb290862ab931421df9cb59c0f92e679577df2 --- /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 0000000000000000000000000000000000000000..e1201b209d2bcadcabed30cd3f7167808156fd9b --- /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 0000000000000000000000000000000000000000..8330501ecacd3b9a41bb0f7ea5632fd3721694cb --- /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 0000000000000000000000000000000000000000..2b6964a87f922ab3bb19b4c57dbd23b96eb9a3c2 --- /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 0000000000000000000000000000000000000000..0264ea4bcc59cd92d3a56f12548a67af5805a29a --- /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 0000000000000000000000000000000000000000..6567c32a5a67e1dc16ac130bae549668936573cc --- /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 0000000000000000000000000000000000000000..2c56a56d9960729e9b8c07265aac59661f8f33e9 --- /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 0000000000000000000000000000000000000000..314a7d4398cda5bcd3a80b5d8dd779e882cd1817 --- /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 0000000000000000000000000000000000000000..bcfe7b5d81578c1aba9c53c5748477769942efc0 --- /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 0000000000000000000000000000000000000000..2ea6c7e636c2f7302815516867f553c5cb1d369f --- /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 0000000000000000000000000000000000000000..65835d7564c2de2de287c8c2c7e7e6da3ff53d58 --- /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 0000000000000000000000000000000000000000..6f285f5338f21a0c3890a92fbb8a6f15f69312a1 --- /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 0000000000000000000000000000000000000000..cc0faf4847b34e45da2721df3a3ec03821d2ba55 --- /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 0000000000000000000000000000000000000000..0f0b9011e99f5103bb4ae9952a4bab18ab8264ec --- /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 0000000000000000000000000000000000000000..8ac71eb73fe1f0430d499fb117b2c0f72231fe78 --- /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 0000000000000000000000000000000000000000..a1c1bb0195cadc7f049470456ef82b2b95b4bd8e --- /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 0000000000000000000000000000000000000000..51e00105e20dbdfb6eb027ac6495d3a4d0df462f --- /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 0000000000000000000000000000000000000000..e057e9ec81daf34324629c0112935eb75f1de847 --- /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 0000000000000000000000000000000000000000..293cbf1b56684eab20ce202664b8c1042a166a5e --- /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 0000000000000000000000000000000000000000..7013c74768aed03c259732856c33feb52e4b9dfb --- /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 0000000000000000000000000000000000000000..40884e6aa46fce8e72c019448c3ddcf8e25c695c --- /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 0000000000000000000000000000000000000000..7c55c85f5f0567f7eb83cdafc93f57ac34b7bfa4 --- /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 0000000000000000000000000000000000000000..2555695a243a2fa17e977ec5faa62ca51844f972 --- /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 0000000000000000000000000000000000000000..6f2f9cb732cce1702e56f0696b71146aa13cce16 --- /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 0000000000000000000000000000000000000000..f787ef83163e27b87e1aa6a407bdcb2fa0cc0521 --- /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 0000000000000000000000000000000000000000..2f4d08c28ea8c9baacbd58ba721e658c607cd6ba --- /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 0000000000000000000000000000000000000000..0b889ef534617a60549e3d798fa2de0d8a030feb --- /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 0000000000000000000000000000000000000000..df0b3a09ade17b90f8340c96f923ab8c9a0ab1aa --- /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 0000000000000000000000000000000000000000..6b77fdebe6f7a55cd425565269f6a9397d854514 --- /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 0000000000000000000000000000000000000000..fd1c08f1d7ea5d1890bf7b59acb070eb05c31b84 --- /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 0000000000000000000000000000000000000000..b3f64c45bcb1df622d0cf705d2262595216c8ffd --- /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 0000000000000000000000000000000000000000..96f9d28dc4ea58f6d6aae4e6e42a45c9187b7953 --- /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 0000000000000000000000000000000000000000..ba6cc2a17c8fce7c7cb3387f4276f79b8bd45258 --- /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 0000000000000000000000000000000000000000..4f8bcad5411dfc76aa061efff79f5b2d888cf782 --- /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 0000000000000000000000000000000000000000..7885c321c9cd7678ca38c32e0f29092e71695b88 --- /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 0000000000000000000000000000000000000000..4b4d5f0c04398a8377cf91d35fc521bb91148310 --- /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 0000000000000000000000000000000000000000..3c4262bc01e0d302efd8daee87a706dab0e8fd87 --- /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 0000000000000000000000000000000000000000..ee8cd2fed9cb8b114817fabbd709315c6918383d --- /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 0000000000000000000000000000000000000000..72231e69c2b3bcfcced0abe0765e722a93736791 --- /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 0000000000000000000000000000000000000000..d27506cba1b597fdeee83900ddd14da1ffba4dcb --- /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 0000000000000000000000000000000000000000..4136e7d4502cb530930f74d68d3e089b4fea5444 --- /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 0000000000000000000000000000000000000000..5fc64afbd471d7471476a86cbebf0d64a38b77da --- /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 0000000000000000000000000000000000000000..091b0b40bf6f4620719a85bf85749cbf28ae3d24 --- /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 0000000000000000000000000000000000000000..eb27f8f840597b36a9404c1c0fc507ff22bef367 --- /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 0000000000000000000000000000000000000000..c549ab6c5c622096e37678672e9074c5f304b0bb --- /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 0000000000000000000000000000000000000000..fd1286fe353c8b4152a612902a8b40f99332285c --- /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 0000000000000000000000000000000000000000..ecf94e09be2feaa275ace5ffecaa8ded9e31ada1 --- /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 0000000000000000000000000000000000000000..34574b525423865ff15287452e923d9a918adfab --- /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 0000000000000000000000000000000000000000..e6ddd9197f520375b5febbd76136bbe597fb985a --- /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 0000000000000000000000000000000000000000..13d444fbf7d544afcc9eaabd4040c80d23563bb4 --- /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 0000000000000000000000000000000000000000..73bf11837d166ffcad48dd2c16bbae2b3d135488 --- /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 0000000000000000000000000000000000000000..679679a4954e6584ffb578fbc3ba8f19f2367314 --- /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 0000000000000000000000000000000000000000..588aacaa787c5f41bfd5919754e8b7c6a56be8d4 --- /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 0000000000000000000000000000000000000000..93edada467c14e854c770d2d0b2547a090952089 --- /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 0000000000000000000000000000000000000000..92c61f6123111c623ab130668484953780ab95b1 --- /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 0000000000000000000000000000000000000000..6e1b0c12a7c84295c71d041f2cca4b8f05e3ea86 --- /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 0000000000000000000000000000000000000000..4a7835120b6680ca0afff7fdb61a4a98a998d8b5 --- /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 0000000000000000000000000000000000000000..8f1869f5ed93bc0f0e88d71854ee585f13490600 --- /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 0000000000000000000000000000000000000000..ad6ac9cbcf8ef2a2ca521e0695b5164539880157 --- /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 0000000000000000000000000000000000000000..9113c2deb69145bf4b4df7e1b4a15e7b401f2fad --- /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 0000000000000000000000000000000000000000..cbed7ce01be157459452a54a087edd0949645a48 --- /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 0000000000000000000000000000000000000000..c9f0ae1d1328c6d0d08924201ba86ee3f3b52f6c --- /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 0000000000000000000000000000000000000000..fe4d1d1dc7e36f0827181248fca16eb0dc13d796 --- /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 0000000000000000000000000000000000000000..b68e2ef35c80d948e4706bfd411cd1b82a8c6800 --- /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 0000000000000000000000000000000000000000..9f8d70b8ca93ae9ad04a188f57133c38a0339e98 --- /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 0000000000000000000000000000000000000000..eef7c8f27a84bbb3ce8a9ada3f1f7a01e027a4b7 --- /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 0000000000000000000000000000000000000000..b203add40545c41e4dfff6b9de7f13221620cf43 --- /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 0000000000000000000000000000000000000000..b9464d9bf5c237bc61110039e1b1d5f8121b495f --- /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 0000000000000000000000000000000000000000..e3043dc047f908df50282c37db0dd1dd9d0c3f5a --- /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 0000000000000000000000000000000000000000..2910f50f9091a19ef3a36b0f1a45f9201bef039e --- /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 0000000000000000000000000000000000000000..d47275d3917c8feb6db6eacdddac9fd2a7d1718a --- /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 0000000000000000000000000000000000000000..f754cda602561a16825b4b810c77af648f5d38ed --- /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 0000000000000000000000000000000000000000..96fd0f861577ef4f1d971fbaefc2c2f133d8e277 --- /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 0000000000000000000000000000000000000000..95fdd1ad141ff8f949d730c79b5340a078052e1d --- /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 0000000000000000000000000000000000000000..e0d0f79a3b214ff935782387d13557e004772025 --- /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 0000000000000000000000000000000000000000..a4297666671ddf9f0a2614d46b835909480e3b36 --- /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 0000000000000000000000000000000000000000..2f800dee3d7294c05f8d2099f49c39e44abaceb8 --- /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 0000000000000000000000000000000000000000..a36e0f2b87d4ab22fe3c846e46b91521803f1ab2 --- /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 0000000000000000000000000000000000000000..de59a2ae34a2a31daca15abd98db08f37c31fb9e --- /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 0000000000000000000000000000000000000000..a695979371948295a57d9acfcb51b55afd065a87 --- /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 0000000000000000000000000000000000000000..8c0abf76195a86935f69e74f9fdcb9543db6a41e --- /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 0000000000000000000000000000000000000000..ea44ea7bdefc35b9b518633c553394655b24f0f8 --- /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 0000000000000000000000000000000000000000..d10bf6e97a3469837353f4a406ef375d42012359 --- /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 0000000000000000000000000000000000000000..1c67b5f16feaf68aa9b8f893bcf0e719bf57fd3c --- /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 0000000000000000000000000000000000000000..8d420628d4388a2596ea96a653a8e632c9db214d --- /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 0000000000000000000000000000000000000000..6507d9b7cc2891dd4cd1eeadfe75a859ca79e2d0 --- /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 0000000000000000000000000000000000000000..15b806939de6ce2524a8ae34595f88ce2dcfa431 --- /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 0000000000000000000000000000000000000000..af4fb56ceec9ed710351a589013141548d8efdab --- /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 0000000000000000000000000000000000000000..bf7e878b4203cd30c1fb5cd663010f44a5a47870 --- /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 0000000000000000000000000000000000000000..703c88fc5ba383aa73cae98e9ca457459680c79d --- /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 0000000000000000000000000000000000000000..3f05e085f58bcdf78b1bda535ffef7d23c4679a6 --- /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 0000000000000000000000000000000000000000..988478925c29ef42c81813e76071003b63db389b --- /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 0000000000000000000000000000000000000000..52059aa7a64bab3087abc234c6d3573bfbc7ff86 --- /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 0000000000000000000000000000000000000000..b94d360c8bd4e585648eb7f89080d76ad3ca288d --- /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 0000000000000000000000000000000000000000..742e026e6c7efaf91a0a37ed308d9b11659de80e --- /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 0000000000000000000000000000000000000000..40214e5b9ff5f6c95de523b8e8ffc742ff96bcea --- /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 0000000000000000000000000000000000000000..a2934e1fc9e9abd46d9f95aa6fd92847d07dfd6d --- /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 0000000000000000000000000000000000000000..a2d5c979f55e82346da03e002d4021fb41265f33 --- /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 0000000000000000000000000000000000000000..611a9da21bfe7a28dfc4aa7f8a2e5879934974a5 --- /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 0000000000000000000000000000000000000000..abb557605a6b602bbe22f22620260fc80f229d42 --- /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 0000000000000000000000000000000000000000..70d0e7d16e5e761e49bb124c6e7348561f9b27cc --- /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 0000000000000000000000000000000000000000..800efc560a6e1c10adc18980db5c80deade84523 --- /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 0000000000000000000000000000000000000000..b68e9cae4859641ac7faeea0550607f2b877709a --- /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 0000000000000000000000000000000000000000..ff0aaa8ec6d244339ce49654f733217c2448d279 --- /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 0000000000000000000000000000000000000000..e73da136bd357482cd301278552764c23e4cb72f --- /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 0000000000000000000000000000000000000000..53049cccde9a89197fd69f3d0ccb18ab1fe8b21c --- /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 0000000000000000000000000000000000000000..58b1b4200605109f0d1be267fc69f606f356d2e8 --- /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 0000000000000000000000000000000000000000..ac2a15afa0c3d946484d2a145011745ca493ba15 --- /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 0000000000000000000000000000000000000000..4183f1cdd3c8330785d2284730f795fe152e8d65 --- /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 0000000000000000000000000000000000000000..948aaccf83a0e0909ce0f374b044f00f51c0f054 --- /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 0000000000000000000000000000000000000000..753b6c16d49b31f3c61650e488e29f688e3a86af --- /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 0000000000000000000000000000000000000000..be216ed5b710d8cb193088b9f875b0b788d03434 --- /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 0000000000000000000000000000000000000000..a5728428ec029a93f5aa85a16031a36850ba3196 --- /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 0000000000000000000000000000000000000000..526fdccfb282dadccc00b3b4c958394984241fa1 --- /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 0000000000000000000000000000000000000000..16c6d1dfa8da6662a91de3287d8ed595a3414576 --- /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 0000000000000000000000000000000000000000..e10de1b3555a8bb6fb098552053c19c7947e1d11 --- /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 0000000000000000000000000000000000000000..4b5ac94c2d086150cf746071482cecd0609f6d44 --- /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 0000000000000000000000000000000000000000..843417daacd7c6e2b3f56759b32c041da0772f2c --- /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 0000000000000000000000000000000000000000..48f1bd05760af657988dc8b5cfddfb31268b41c3 --- /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 0000000000000000000000000000000000000000..ad031aaf25d4297a73b2d765f155704f94578348 --- /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 0000000000000000000000000000000000000000..8cfa572c1bb7ce31058d4255130405de0a68c87c --- /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 0000000000000000000000000000000000000000..952e8999629611289a9a0c74b20acf5298389fdb --- /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 0000000000000000000000000000000000000000..ed1ccd819d509052549cb117a803c63ba5b96cab --- /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 0000000000000000000000000000000000000000..ee21c65fb9a14df0f3176ebe9e4613e60d40c222 --- /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 0000000000000000000000000000000000000000..ef73e916c464051f1f78cd3ee029eb3a66c67a35 --- /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 0000000000000000000000000000000000000000..565cbc3a6cc26727e8b5afb5db30738d133934fc --- /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 0000000000000000000000000000000000000000..285c62c59be73d8906f10a2b94b53cfd1274c6e0 --- /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 0000000000000000000000000000000000000000..887253877dbac2a0d22070f8b21c9f242560be83 --- /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 0000000000000000000000000000000000000000..002403ce861b43598e57945eb6d0e96fd8ac44ac --- /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 0000000000000000000000000000000000000000..5a753c4ecf04132feb3072a61849f85dd3643911 --- /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 0000000000000000000000000000000000000000..5329a76e9c825709c39f6007deb91a1c3fb25a45 --- /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 0000000000000000000000000000000000000000..aea79fda426fc3c3d7e8290986b992e44f8be804 --- /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 0000000000000000000000000000000000000000..c46887a9a7388f22c98945811554ae5a6dbbe00f --- /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 0000000000000000000000000000000000000000..fbbe231056c3ad375e01987cf1e67f218f6f07fb --- /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 0000000000000000000000000000000000000000..9eae3ef325c299063426d9fd76a6b4e49030a1a5 --- /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 0000000000000000000000000000000000000000..93719583e0ac854b4cc905942b7ab5dfa4a7967f --- /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 0000000000000000000000000000000000000000..2201b8a49c75315a031e311ef0036ecb48786956 --- /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 0000000000000000000000000000000000000000..8d27d863b39b5a51e3cacbae90ab6f487a802f21 --- /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 0000000000000000000000000000000000000000..bb363ee1ccb9e0cef45a74fa7f0d2a8b696886b6 --- /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 0000000000000000000000000000000000000000..29795f4e87d7eadcc3bd6ddf836ae078b9bb78aa --- /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 0000000000000000000000000000000000000000..2665ea0d18f2e0e9bf2e7063cc5e91f73ce7206f --- /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 0000000000000000000000000000000000000000..4659c12bbe5a7886d25d9d3f8cb31803aa51719d --- /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 0000000000000000000000000000000000000000..04c70cf13969573a3968fb5397749c3499715efe --- /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 0000000000000000000000000000000000000000..45e3baf2f9d5b391a6af10089a0edea7f2245c1b --- /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 0000000000000000000000000000000000000000..3027595169ab24fc1abb6b799d5dbce0ca5ba8bc --- /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 0000000000000000000000000000000000000000..56f0930d3207a506fbd81b218cf1d66fff3d685d --- /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 0000000000000000000000000000000000000000..0c215e73f83416db835db88a55b069cd27538dce --- /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 0000000000000000000000000000000000000000..af9052b50daa11595c25b1f103233a63592169f0 --- /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 0000000000000000000000000000000000000000..cbf415d997bb2b0c29d9e1e1bd5d2955befd2bdd --- /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 0000000000000000000000000000000000000000..5b5edbea2c5a099a4886e4b8f6fce0b170f27362 --- /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 0000000000000000000000000000000000000000..862ea03609fb8da0bfebce60bf6163ec70d233b2 --- /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 0000000000000000000000000000000000000000..51c27180ebf62bd88e725e0c90449d76c1c8c1de --- /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 0000000000000000000000000000000000000000..d961c9e64cd89234cda13c31f35d0e8d05bc12a3 --- /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 0000000000000000000000000000000000000000..f0daad89dc291104011ee740a80041d014ac70a7 --- /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 0000000000000000000000000000000000000000..7ae4d8bc34c3e77c349765ce8bcc9e805c9f4ce2 --- /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 0000000000000000000000000000000000000000..8ed166d1597d69f66f0aafa6834d17d78798f3b2 --- /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 0000000000000000000000000000000000000000..ade597c7368147bb59a8aca123e66278c0299881 --- /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 0000000000000000000000000000000000000000..52739f70f481496553cdd3619c33a41fa9ea207a --- /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 0000000000000000000000000000000000000000..b573f7a187a30ee8fb4163de36042f8615beff01 --- /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 0000000000000000000000000000000000000000..5bbb74cef51a4eefde389d78ae161103dd59caa4 --- /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 0000000000000000000000000000000000000000..ca27791465a8d5147668544182c95eae94f036f1 --- /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 0000000000000000000000000000000000000000..07afbd58a41d73d732752018242d4c719374b4ac --- /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 0000000000000000000000000000000000000000..96d099bfc2e9dbbb18e830393bb8636de6b0b2b3 --- /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 0000000000000000000000000000000000000000..1198a7a62f3816a9d5a1908f88a1ce0647c8e7bf --- /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 0000000000000000000000000000000000000000..2a9185ffcc34085f6d64e1b7d450889799661bb2 --- /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 0000000000000000000000000000000000000000..53228ae93c4e2dbf2f9b38b44e1d8ab07e59aab8 --- /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 0000000000000000000000000000000000000000..d2790616216b31b152ca6e609d0ad7e637026e40 --- /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 0000000000000000000000000000000000000000..1166f839a86e2c8429a22a9e659fc6389e18e17d --- /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 0000000000000000000000000000000000000000..503c1ec0b30b8ec448528c27bbefaecdf73f761e --- /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 0000000000000000000000000000000000000000..d63b640d02215858eef3dcde70704a29a3e59db7 --- /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 0000000000000000000000000000000000000000..6eb70d1231054cf64e6a7375f770c260c7e28070 --- /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 0000000000000000000000000000000000000000..afaceb31f3602b5ebc914d7de25cfb4e97d9ac82 --- /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 0000000000000000000000000000000000000000..2c2b8f72d086c3b6c4bd0b64ead3107f77bfd94b --- /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 0000000000000000000000000000000000000000..ee5e81f23a4027d142963817b741a1be1d757633 --- /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 0000000000000000000000000000000000000000..cb4a69a574ab69cdba56cb776d18b73388a1752c --- /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 0000000000000000000000000000000000000000..b9be6f043f322700b04445de6f89644cb06f3e4e --- /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 0000000000000000000000000000000000000000..ea3be2253b4b8fb61e94678b1048d17f5e54b456 --- /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 0000000000000000000000000000000000000000..6417b7e199555dd69d8d8d9ab34389b86ddfe281 --- /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 0000000000000000000000000000000000000000..486267556de648e830b1957e42e0b820b0428798 --- /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 0000000000000000000000000000000000000000..33a3b70af5068f9068d38b9cde34eb43a02ba2bb --- /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 0000000000000000000000000000000000000000..4ffbe95a05bcaa39cedf8999a0d669890ec50f1b --- /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 0000000000000000000000000000000000000000..fd715c49617bb41863d8f58eaeef22759438e11f --- /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 0000000000000000000000000000000000000000..728cb1741f54d1b785b8dfdcd03336dcf35fe70b --- /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 0000000000000000000000000000000000000000..267ec527249c9121c8521faa96d140fc41bfee80 --- /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 0000000000000000000000000000000000000000..3031f19f9004aa4b644594032c142f6bff7325ce --- /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 0000000000000000000000000000000000000000..dbe15c23a84ebc7dd58fb91d2f4e3e780715cd66 --- /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 0000000000000000000000000000000000000000..68f8f5ddc7dfbc63de2a1b0d53a0c07bee4132ab --- /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 0000000000000000000000000000000000000000..8eaa595a7a2268976bb0c6e03e09663b94c21af4 --- /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 0000000000000000000000000000000000000000..132001eb6fbe9215908d7a43ee2ea4f81006d259 --- /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 0000000000000000000000000000000000000000..7ea813bc66817743464690052049802931ef7d26 --- /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 0000000000000000000000000000000000000000..9dc0ca89fa3c72c6e7f5e305105e5339c3c635d5 --- /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 0000000000000000000000000000000000000000..72ae48b5717d916276f727d0741c281023a40f21 --- /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 0000000000000000000000000000000000000000..dede0e402905adc80e8107edef59f0b472716594 --- /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 0000000000000000000000000000000000000000..db1ea0df29b2cbfff5123abf4e33f2654bb61cff --- /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 0000000000000000000000000000000000000000..a134ab1bbca4321fed6dba71d7011931b6f2bd6c --- /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 0000000000000000000000000000000000000000..494b1d93b8ac0feabec38db160a2c4fb8f88ada4 --- /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 0000000000000000000000000000000000000000..c12d00e87265c4a67ab2151d65f194cb546a4927 --- /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 0000000000000000000000000000000000000000..be835fe7e68a9688529da416616e219c9524e642 --- /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 0000000000000000000000000000000000000000..f6708324c1d31bdf361619ca22005f1cedf31f80 --- /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 0000000000000000000000000000000000000000..ab62cc9d96a4b48724c8892b324d880d6b8e0211 --- /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 0000000000000000000000000000000000000000..5a54d2780cd3699acb1f9b07ff6a182fe5c7a97d --- /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 0000000000000000000000000000000000000000..aaf040ba1889bf8f9267c95d6a2dfb50a8bf2e5f --- /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 0000000000000000000000000000000000000000..b572b8a4377560b7e101203a8c1fe5eb0d5b2a37 --- /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 0000000000000000000000000000000000000000..20093946f5132cb50ed8e376aa8d903a807ba463 --- /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 0000000000000000000000000000000000000000..94db64740b0b2d98547704c9c2037df2ca345b4e --- /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 0000000000000000000000000000000000000000..402fbd12715747b01baad86ef8bcfc9aeb715152 --- /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 0000000000000000000000000000000000000000..6826e0bb926d19436db288cdd11ea062d2af65bb --- /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 0000000000000000000000000000000000000000..2f52170a458366fb1ff9fbd809d26901f81d022d --- /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 0000000000000000000000000000000000000000..d3bd3f6593fc9e40e603412f5d095876054445e5 --- /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 0000000000000000000000000000000000000000..43a205e057a964f6c8406904d62a1fd579557b05 --- /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 0000000000000000000000000000000000000000..72d05af86d5eb54990fb3a8a82dc0dc4795920cf --- /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 0000000000000000000000000000000000000000..0dd368e4dfbd77129d7d59458c415426f9460461 --- /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 0000000000000000000000000000000000000000..0d2608b663623acd3e4e0935b5c72cbfa4970149 --- /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 0000000000000000000000000000000000000000..077e00dfd04571b1a46faa407f6839624aa6a37e --- /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 0000000000000000000000000000000000000000..1f428ee55fc42b0be477c43b54bc4c5abb262144 --- /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 0000000000000000000000000000000000000000..e57fd73e015e5a2ac85151c81e358d99d10bef33 --- /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 0000000000000000000000000000000000000000..7e860d94371598108fff5b644934cc361128b397 --- /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 0000000000000000000000000000000000000000..d9c170f8d83e4e254ce88edb7aa2bce897f13d77 --- /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 0000000000000000000000000000000000000000..dc5738a2e6913c8907bde293f60f2351163733b9 --- /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 0000000000000000000000000000000000000000..f022a1611f9650f305903692d40b8da1e7608338 --- /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 0000000000000000000000000000000000000000..b647d1788744f18318d932704a652c3a9ff38550 --- /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 0000000000000000000000000000000000000000..fc404cd72ce988f0939553401dcc70748877b000 --- /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 0000000000000000000000000000000000000000..7664036b3f3b94d568756894229007c9eeccfbf1 --- /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 0000000000000000000000000000000000000000..f9d4d6cc11a7938e856d7b7807929fa35d90d6d1 --- /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 0000000000000000000000000000000000000000..5baea0e53c3de8bad2fb3562ae2ba63184e0fd7f --- /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 0000000000000000000000000000000000000000..92135cd5fea3f282e4451332165a50aeeb80ee59 --- /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 0000000000000000000000000000000000000000..280cd667f2cf4816aaee45e885ae706ceaaa5a54 --- /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 0000000000000000000000000000000000000000..b24d5cb346511cf69d9368f7d6d26f4547ccc04d --- /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 0000000000000000000000000000000000000000..b9f01d8e2a4cac5e6e303c70d2d5f87484dd7409 --- /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 0000000000000000000000000000000000000000..1504a6f781e597838806306931e76f683abd7c54 --- /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 0000000000000000000000000000000000000000..4da96415ed2c4083e5b2daaaf76cac0ae4e945af --- /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 0000000000000000000000000000000000000000..0705dfb6d468548f63c0f200b8b2312302c8f9ff --- /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 0000000000000000000000000000000000000000..49c957b768758e331a5c6b8656914fba6d91808f --- /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 0000000000000000000000000000000000000000..cddd9335da6ea183961b106f9fe18bda2db15069 --- /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 0000000000000000000000000000000000000000..ae0d92671f530485cfa20f6f9494706f48cfffbf --- /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 0000000000000000000000000000000000000000..c5b6d8366eeb1085b649f0a3cb7acdda70761732 --- /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 0000000000000000000000000000000000000000..f38c553aeba13d7304d64ae7a6ba9d9816c130b8 --- /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 0000000000000000000000000000000000000000..1d3611e5d26a9fe0c45a13a0e5f9126481f66d35 --- /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 0000000000000000000000000000000000000000..952e6f471d9de362522e47bfe4e8078b53cf25ef --- /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 0000000000000000000000000000000000000000..b36dba45540524676b5ef8500203979b6ff3ee54 --- /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 0000000000000000000000000000000000000000..bbbdef555acbb240f996c7aa6fb448e77fdf890a --- /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 0000000000000000000000000000000000000000..a2e9d94ce5c90e07dba2fbdb0b7ff58370257ef3 --- /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 0000000000000000000000000000000000000000..df009b5d7d38348d147561aa0d257dd67c25484f --- /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 0000000000000000000000000000000000000000..136c7c9e9a0f4668461021d7a16fdd39cd3d51ec --- /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 0000000000000000000000000000000000000000..e004469f034a1b3e68cefa0282072e1122a7d35d --- /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 0000000000000000000000000000000000000000..29fa4daaeef4c729b656bd3b296d1d39b9466633 --- /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 0000000000000000000000000000000000000000..598a8f0e6c2da426c75f5f374a981602c0d674fb --- /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 0000000000000000000000000000000000000000..6fff9522942f44b3945ab22510709e04ef7d5bcb --- /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 0000000000000000000000000000000000000000..6a8b9218c456f9f67accb26768ef73429164e599 --- /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 0000000000000000000000000000000000000000..00626b912e343b9fd826cd0fc255205f22993698 --- /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 0000000000000000000000000000000000000000..91eb00fa3ad8c928caac74496150da82ed66ab99 --- /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 0000000000000000000000000000000000000000..f629ded3b42df9a6a98ddda042bbec0ae4c28488 --- /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 0000000000000000000000000000000000000000..87691900a2b5ed0dd111c18a2ff8ba8e1b35dc0d --- /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 0000000000000000000000000000000000000000..9d700717b35055e9eaa8b089a0b038b65cd9a124 --- /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 0000000000000000000000000000000000000000..2c45456aac7b8c871527ff8d2ecdd8c6ce108a73 --- /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 0000000000000000000000000000000000000000..02afa31681716e1a11461c6c05ca4d2b6d4350d2 --- /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 0000000000000000000000000000000000000000..ae9839145cdb7b0ae5898195473131190c8f6277 --- /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 0000000000000000000000000000000000000000..7413b75525a03e9a689c44ef93dda94415c295ab --- /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 0000000000000000000000000000000000000000..29c2835e71226d6e0edc5238f766e2717735aeee --- /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 0000000000000000000000000000000000000000..b1a2435bd7976adf09bd5ea9787444ec1856157f --- /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 0000000000000000000000000000000000000000..4f7c2928a8ac0618b1ecd1e1b541aefc1f202814 --- /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 0000000000000000000000000000000000000000..fa59a3d38d99037c1d8b056ce0cc3256dd842675 --- /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 0000000000000000000000000000000000000000..4857ec4eb4ab4bf227ba6644333c39d636b4d071 --- /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 0000000000000000000000000000000000000000..e6cb1d0323ab84bf38c8696a2eb491395ca84172 --- /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 0000000000000000000000000000000000000000..aac17012ebe048c4ea932833b99384d567391026 --- /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 0000000000000000000000000000000000000000..5e9cf90d501f196dc298914cee0692010e36c53d --- /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 0000000000000000000000000000000000000000..dcd23ab4c94ba48288b606a5efb0e7a1fbbc7520 --- /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 0000000000000000000000000000000000000000..848986f9233deb872b8ddfdb4a7c159cd3839f47 --- /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 0000000000000000000000000000000000000000..37a2e5ed9ed623653d5c5a199c0f23a746edbc92 --- /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 0000000000000000000000000000000000000000..7b6f60e04314c116dc931878af1f35c9c90cd397 --- /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 0000000000000000000000000000000000000000..0fe5c267be6eefd8cb04fd2e36f531ce8c67cb6c --- /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 0000000000000000000000000000000000000000..a9cb01d65282e6309099982c16272cbcee21a2a6 --- /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 0000000000000000000000000000000000000000..93834a73837b2d44e2497f87e6f99af4978571ff --- /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 0000000000000000000000000000000000000000..437012ed4aebd08e5a4807a1fb82097c183a0988 --- /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 0000000000000000000000000000000000000000..376620e98abf37fc1cd5c84d7d4f066533f2f6a6 --- /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 0000000000000000000000000000000000000000..8a4930cc7515426c7318b4af2327702318cb1589 --- /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 0000000000000000000000000000000000000000..870f499041175fc75d3d240802948f19519e9a0b --- /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 0000000000000000000000000000000000000000..f6d20c5d98a4f60f8a52b8ee80e55b6b3b56ebf9 --- /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 0000000000000000000000000000000000000000..dfdaf864bdbfcb2dea6c6669fb7cb01dfc5698df --- /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 0000000000000000000000000000000000000000..e6f01cbc921360dc2d5ef1fa09ca51e67e6dece1 --- /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 0000000000000000000000000000000000000000..61f497e79a0569dfd80739a939d49db90201d8b0 --- /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 0000000000000000000000000000000000000000..cba261b8285394a80c7d4d36abaa4fb0b613acf4 --- /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 0000000000000000000000000000000000000000..3861f8b6513ca5cc939ae501fd8e72a752a821f9 --- /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 0000000000000000000000000000000000000000..e45260948c1390aeb0c2f96b0a6d1ce7433bb571 --- /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 0000000000000000000000000000000000000000..1254b945d800e83138ed6797538394111d692788 --- /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 0000000000000000000000000000000000000000..1886dd3ee32b79b03db3da3f8745438f8dca9f46 --- /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 0000000000000000000000000000000000000000..2ae5236bfa086f29b86deba8e29b4f65da9b50ea --- /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 0000000000000000000000000000000000000000..df9239ee249b54805f31b760ed3535157d2b44b3 --- /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 0000000000000000000000000000000000000000..a35a73ce824a846954e6987dbbd9f4349aeed505 --- /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 0000000000000000000000000000000000000000..a04ba53f5387be88f22806912596d3af4996d56b --- /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 0000000000000000000000000000000000000000..aad4859ebb2aa86779e91cf4d7bab024e99d947f --- /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 0000000000000000000000000000000000000000..14f6d619e4bf9a0fd8b11f238b35e6382f6bf970 --- /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 0000000000000000000000000000000000000000..f306e035c9d4d14fef4f37a21f823881abf09a28 --- /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 0000000000000000000000000000000000000000..c11714c18690e37a5fd005380934762a22a0f9e2 --- /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 0000000000000000000000000000000000000000..20cb62b00d2972fea443371b88429d624e52d181 --- /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 0000000000000000000000000000000000000000..5eaafdcdba352adebbe814e1504ca83ed3270511 --- /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 0000000000000000000000000000000000000000..0ca942024418c0201a21190c9204cd649552c510 --- /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 0000000000000000000000000000000000000000..0733e1376b60a515cbd69e9d6db75831ad2fe2b1 --- /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 0000000000000000000000000000000000000000..7688b8050d6eab9511d5ec513cea3a12c09b1c6b --- /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 0000000000000000000000000000000000000000..6f406ddabf24a6b86741f31de885ddd426703e62 --- /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 0000000000000000000000000000000000000000..a73134bfe7a7f9916a3da7a2df15b4d0cade79fa --- /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 0000000000000000000000000000000000000000..a564036804e97757d9914295dda7d93cddf7aada --- /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 0000000000000000000000000000000000000000..bb9efc4cb9b61b21243b5b6a02555d2c622ef0dd --- /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 0000000000000000000000000000000000000000..7f58e87944a41a4c589813a238333e1a6c6572fc --- /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 0000000000000000000000000000000000000000..fbd9dd0fc818760375d6c79487275243c1bb9480 --- /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 0000000000000000000000000000000000000000..1fccdf61fed08d667a5f74cc61b5233e9af41923 --- /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 0000000000000000000000000000000000000000..cc16474e1e67362062cee05dbb1f9d3af585b356 --- /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 0000000000000000000000000000000000000000..073a56a83025ce7627577ea499ee115dc63abd9e --- /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 0000000000000000000000000000000000000000..3cfeed6ab6fef3119d9bc65fdab0e4f64f289d06 --- /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 0000000000000000000000000000000000000000..9baabc68b8c759a9c06e08a7ae0ea83bb5b2cd34 --- /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 0000000000000000000000000000000000000000..986b0673ba883f8fb641deecb002664a3c004a3c --- /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 0000000000000000000000000000000000000000..27a28a53c09e6c9c9e622c352f67d32e4b2f0467 --- /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 0000000000000000000000000000000000000000..9ea8f53669d10972f69eeb7895b1f68339482b71 --- /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 0000000000000000000000000000000000000000..9410a5cc98fa34220d7fbef02b7bc33ff0652fd3 --- /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 0000000000000000000000000000000000000000..5050accff19ce15e0e789ab3e61ba2f16c13aa35 --- /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 0000000000000000000000000000000000000000..3c97bad4cd5d4e53a4fab8a9166885fe2bfd5b26 --- /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 0000000000000000000000000000000000000000..b12c3b74f4b08194ab5e1be362dbc7d51a5aee92 --- /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 0000000000000000000000000000000000000000..86ca38d2e982f45907a62bc1589c1da98f8d12fb --- /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 0000000000000000000000000000000000000000..c190c33f976ae6cc38439c1f6d32c13164ee9346 --- /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 0000000000000000000000000000000000000000..91f141342bbe92b2129e1ff7c35f9e8a0d323c06 --- /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 0000000000000000000000000000000000000000..5fee12cb8f799c14958f4fecb0d35e263869c2bd --- /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 0000000000000000000000000000000000000000..416e04ac6d9bc99c19df86c276beadb6f03c2904 --- /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 0000000000000000000000000000000000000000..814b60d17ae383be69f10c45b97a8ee52ce203e0 --- /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 0000000000000000000000000000000000000000..8863ef2e1cf5e83c73696fce1386a8f66b6e84d3 --- /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 0000000000000000000000000000000000000000..ccfaf145912ce7f219dd5368c5a652656ec7f882 --- /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 0000000000000000000000000000000000000000..50ac23fcf912901c0aeca61d2389092ee0574b98 --- /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 0000000000000000000000000000000000000000..2d5e63b5510a77ca68d7618c16afd06670081602 --- /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 0000000000000000000000000000000000000000..3027e74943bc9f22da3e1674dab8a73ecc714fcc --- /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 0000000000000000000000000000000000000000..91f5c4e7c05743ae6c7d34295fafea414554a4ff --- /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 0000000000000000000000000000000000000000..bea6f70c5afa0789f394540cf631c60b4192e795 --- /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 0000000000000000000000000000000000000000..908939bba742b16a5dc2bf2d84e6c77268437792 --- /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 0000000000000000000000000000000000000000..b6a2e9dbbeccbd72fc3e7f68665252c720cb04ff --- /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 0000000000000000000000000000000000000000..cddbf1e3dc653bdb8064f25751d3d7b13efdd75c --- /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 0000000000000000000000000000000000000000..9d0648ccc3a802d387c1b90fbd24f55a20bb8c7b --- /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 0000000000000000000000000000000000000000..ad2ecdc3014fdfe30336f9ce1c2d9f37c9f31753 --- /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 0000000000000000000000000000000000000000..85a6cbc3daafc39852e63f40f8206eec8a9e5d5d --- /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 4038f619b6a75b6e28b75700455d382845eeaec6..e07e11d0b2f1c5bc5d0b67b0ca1e138a07147227 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 ce65c09bf1f31a1214be8ab75ed207896afea2d3..001c80b77b253ea6395084f99cd7eae71ee1baa3 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 5cc05ce92cff61b76d701a3fe495c11c73638078..59408f5444a7bb65bd98f7e14651823441ff0d67 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",